Class VirtualFieldOverlayAnnotation
- java.lang.Object
-
- org.stianloader.micromixin.transform.internal.annotation.MixinAnnotation<T>
-
- org.stianloader.micromixin.transform.internal.annotation.AbstractOverlayAnnotation<MixinFieldStub>
-
- org.stianloader.micromixin.transform.internal.annotation.VirtualFieldOverlayAnnotation
-
- All Implemented Interfaces:
java.lang.Comparable<MixinAnnotation<MixinFieldStub>>
public class VirtualFieldOverlayAnnotation extends AbstractOverlayAnnotation<MixinFieldStub>
-
-
Field Summary
-
Fields inherited from class org.stianloader.micromixin.transform.internal.annotation.AbstractOverlayAnnotation
logger
-
-
Constructor Summary
Constructors Constructor Description VirtualFieldOverlayAnnotation(MixinLoggingFacade logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDesiredName(MixinFieldStub source, org.objectweb.asm.tree.ClassNode target, SimpleRemapper remapper, java.lang.StringBuilder sharedBuilder)booleanhandleCollision(MixinFieldStub source, org.objectweb.asm.tree.ClassNode target, int collidedAccess)Method that is called if the source collides with an already existing member.-
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
-
-
-
-
Constructor Detail
-
VirtualFieldOverlayAnnotation
public VirtualFieldOverlayAnnotation(@NotNull MixinLoggingFacade logger)
-
-
Method Detail
-
getDesiredName
@NotNull public java.lang.String getDesiredName(@NotNull MixinFieldStub source, @NotNull org.objectweb.asm.tree.ClassNode target, @NotNull SimpleRemapper remapper, @NotNull java.lang.StringBuilder sharedBuilder)- Specified by:
getDesiredNamein classAbstractOverlayAnnotation<MixinFieldStub>
-
handleCollision
public boolean handleCollision(@NotNull MixinFieldStub source, @NotNull org.objectweb.asm.tree.ClassNode target, int collidedAccess)Description copied from class:AbstractOverlayAnnotationMethod that is called if the source collides with an already existing member.- Specified by:
handleCollisionin classAbstractOverlayAnnotation<MixinFieldStub>- Parameters:
source- The source handlertarget- The target classcollidedAccess- The access modifiers of the member that already exists.- Returns:
- True to overwrite the member, false to abort overlaying.
-
-