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 availablegetMixin()Get the mixin target context for this annotated methodfinal 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, 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
-
getMixin
Get the mixin target context for this annotated method- Specified by:
getMixinin interfaceISelectorContext- Overrides:
getMixinin classAnnotatedMethodInfo- Returns:
- the target context
-