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
public class SpecialMethodInfo extends AnnotatedMethodInfo
Information about a special mixin method such as an injector or accessor
-
-
Field Summary
Fields Modifier and Type Field Description protected org.objectweb.asm.tree.ClassNodeclassNodeTarget class nodeprotected MixinTargetContextmixinMixin data-
Fields inherited from class org.spongepowered.asm.mixin.struct.AnnotatedMethodInfo
annotation, annotationType, method, methodName
-
-
Constructor Summary
Constructors Constructor Description SpecialMethodInfo(MixinTargetContext mixin, org.objectweb.asm.tree.MethodNode method, org.objectweb.asm.tree.AnnotationNode annotation)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ClassInfogetClassInfo()Get the class metadata for the mixinorg.objectweb.asm.tree.ClassNodegetClassNode()Deprecated.use getTargetClassNode insteadjava.lang.StringgetMethodName()Get the original name of the method, if availableClassInfogetTargetClassInfo()Get the class metadata for the target classorg.objectweb.asm.tree.ClassNodegetTargetClassNode()Get the target class node for this injection-
Methods inherited from class org.spongepowered.asm.mixin.struct.AnnotatedMethodInfo
addMessage, getAnnotation, getAnnotationNode, getDynamicInfo, getDynamicInfo, getDynamicInfo, getElementDescription, getMethod, getMixin, getParent, getSelectorAnnotation, getSelectorCoordinate, remap
-
-
-
-
Field Detail
-
classNode
protected final org.objectweb.asm.tree.ClassNode classNode
Target class node
-
mixin
protected final MixinTargetContext mixin
Mixin data
-
-
Constructor Detail
-
SpecialMethodInfo
public SpecialMethodInfo(MixinTargetContext mixin, org.objectweb.asm.tree.MethodNode method, org.objectweb.asm.tree.AnnotationNode annotation)
-
-
Method Detail
-
getClassNode
@Deprecated public final org.objectweb.asm.tree.ClassNode 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
public final ClassInfo getTargetClassInfo()
Get the class metadata for the target class
-
getClassInfo
public final ClassInfo getClassInfo()
Get the class metadata for the mixin
-
getMethodName
public java.lang.String getMethodName()
Get the original name of the method, if available- Overrides:
getMethodNamein classAnnotatedMethodInfo
-
-