Class MixinOverwriteAnnotation
- java.lang.Object
-
- org.stianloader.micromixin.transform.internal.annotation.MixinAnnotation<T>
-
- org.stianloader.micromixin.transform.internal.annotation.AbstractOverlayAnnotation<MixinMethodStub>
-
- org.stianloader.micromixin.transform.internal.annotation.MixinOverwriteAnnotation
-
- All Implemented Interfaces:
java.lang.Comparable<MixinAnnotation<MixinMethodStub>>
public final class MixinOverwriteAnnotation extends AbstractOverlayAnnotation<MixinMethodStub>
-
-
Field Summary
-
Fields inherited from class org.stianloader.micromixin.transform.internal.annotation.AbstractOverlayAnnotation
logger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MixinOverwriteAnnotationgenerateImplicit(org.objectweb.asm.tree.ClassNode node, org.objectweb.asm.tree.MethodNode method, MixinLoggingFacade logger)java.lang.StringgetDesiredName(MixinMethodStub source, org.objectweb.asm.tree.ClassNode target, SimpleRemapper remapper, java.lang.StringBuilder sharedBuilder)booleanhandleCollision(MixinMethodStub source, org.objectweb.asm.tree.ClassNode target, int access)Method that is called if the source collides with an already existing member.static MixinOverwriteAnnotationparse(org.objectweb.asm.tree.ClassNode node, org.objectweb.asm.tree.MethodNode method, org.objectweb.asm.tree.AnnotationNode annot, MixinLoggingFacade logger)-
Methods inherited from class org.stianloader.micromixin.transform.internal.annotation.AbstractOverlayAnnotation
apply, collectMappings
-
Methods inherited from class org.stianloader.micromixin.transform.internal.annotation.MixinAnnotation
compareTo, isCompatible, validateMixin
-
-
-
-
Method Detail
-
generateImplicit
@NotNull public static MixinOverwriteAnnotation generateImplicit(@NotNull org.objectweb.asm.tree.ClassNode node, @NotNull org.objectweb.asm.tree.MethodNode method, @NotNull MixinLoggingFacade logger) throws MixinParseException
- Throws:
MixinParseException
-
parse
@NotNull public static MixinOverwriteAnnotation parse(@NotNull org.objectweb.asm.tree.ClassNode node, @NotNull org.objectweb.asm.tree.MethodNode method, @NotNull org.objectweb.asm.tree.AnnotationNode annot, @NotNull MixinLoggingFacade logger) throws MixinParseException
- Throws:
MixinParseException
-
handleCollision
public boolean handleCollision(@NotNull MixinMethodStub source, @NotNull org.objectweb.asm.tree.ClassNode target, int access)Description copied from class:AbstractOverlayAnnotationMethod that is called if the source collides with an already existing member.- Specified by:
handleCollisionin classAbstractOverlayAnnotation<MixinMethodStub>- Parameters:
source- The source handlertarget- The target classaccess- The access modifiers of the member that already exists.- Returns:
- True to overwrite the member, false to abort overlaying.
-
getDesiredName
@NotNull public java.lang.String getDesiredName(@NotNull MixinMethodStub source, @NotNull org.objectweb.asm.tree.ClassNode target, @NotNull SimpleRemapper remapper, @NotNull java.lang.StringBuilder sharedBuilder)- Specified by:
getDesiredNamein classAbstractOverlayAnnotation<MixinMethodStub>
-
-