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 org.objectweb.asm.tree.ClassNodeTarget class nodeprotected final MixinTargetContextMixin dataFields inherited from class org.spongepowered.asm.mixin.struct.AnnotatedMethodInfo
annotation, annotationType, method, methodName -
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.ClassNodeDeprecated.use getTargetClassNode insteadGet the original name of the method, if availablefinal ClassInfoGet the class metadata for the target classfinal org.objectweb.asm.tree.ClassNodeGet the target class node for this injectionMethods inherited from class org.spongepowered.asm.mixin.struct.AnnotatedMethodInfo
addMessage, getAnnotation, getAnnotationNode, getDynamicInfo, getDynamicInfo, getDynamicInfo, getElementDescription, getMethod, getMixin, getParent, getSelectorAnnotation, getSelectorCoordinate, remap
-
Field Details
-
classNode
protected final org.objectweb.asm.tree.ClassNode classNodeTarget class node -
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
Deprecated.use getTargetClassNode insteadGet the class node for this injection- Returns:
- the class containing the injector and the target
-
getTargetClassNode
public final org.objectweb.asm.tree.ClassNode getTargetClassNode()Get the target class node for this injection- Returns:
- the class containing the injector and the target
-
getTargetClassInfo
Get the class metadata for the target class -
getClassInfo
Get the class metadata for the mixin -
getMethodName
Get the original name of the method, if available- Overrides:
getMethodNamein classAnnotatedMethodInfo
-