Class SpecialMethodInfo
java.lang.Object
org.spongepowered.asm.mixin.struct.AnnotatedMethodInfo
org.spongepowered.asm.mixin.struct.SpecialMethodInfo
- All Implemented Interfaces:
IInjectionPointContext,ISelectorContext,IMessageSink
- Direct Known Subclasses:
AccessorInfo,InjectionInfo
Information about a special mixin method such as an injector or accessor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final StringHuman-readable annotation typeprotected final org.objectweb.asm.tree.ClassNodeClassprotected final StringOriginal name of the method, if availableprotected final MixinTargetContextMixin dataFields inherited from class org.spongepowered.asm.mixin.struct.AnnotatedMethodInfo
annotation, method -
Constructor Summary
ConstructorsConstructorDescriptionSpecialMethodInfo(MixinTargetContext mixin, org.objectweb.asm.tree.MethodNode method, org.objectweb.asm.tree.AnnotationNode annotation) -
Method Summary
Modifier and TypeMethodDescriptionfinal ClassInfoGet the class metadata for the mixinfinal org.objectweb.asm.tree.ClassNodeGet the class node for this injectionGet the original name of the method, if availableMethods inherited from class org.spongepowered.asm.mixin.struct.AnnotatedMethodInfo
addMessage, getAnnotation, getAnnotationNode, getMethod, getMixin, getParent, getSelectorAnnotation, getSelectorCoordinate, remap
-
Field Details
-
annotationType
Human-readable annotation type -
classNode
protected final org.objectweb.asm.tree.ClassNode classNodeClass -
methodName
Original name of the method, if available -
mixin
Mixin data
-
-
Constructor Details
-
SpecialMethodInfo
public SpecialMethodInfo(MixinTargetContext mixin, org.objectweb.asm.tree.MethodNode method, org.objectweb.asm.tree.AnnotationNode annotation)
-
-
Method Details
-
getClassNode
public final org.objectweb.asm.tree.ClassNode getClassNode()Get the class node for this injection- Returns:
- the class containing the injector and the target
-
getClassInfo
Get the class metadata for the mixin -
getMethodName
Get the original name of the method, if available- Overrides:
getMethodNamein classAnnotatedMethodInfo
-