Class SpecialMethodInfo
java.lang.Object
org.spongepowered.asm.mixin.struct.AnnotatedMethodInfo
org.spongepowered.asm.mixin.struct.SpecialMethodInfo
- All Implemented Interfaces:
IInjectionPointContext,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 java.lang.StringannotationTypeHuman-readable annotation typeprotected org.objectweb.asm.tree.ClassNodeclassNodeClassprotected java.lang.StringmethodNameOriginal name of the method, if availableprotected MixinTargetContextmixinMixin dataFields inherited from class org.spongepowered.asm.mixin.struct.AnnotatedMethodInfo
annotation, logger, method -
Constructor Summary
Constructors Constructor Description SpecialMethodInfo(MixinTargetContext mixin, org.objectweb.asm.tree.MethodNode method, org.objectweb.asm.tree.AnnotationNode annotation) -
Method Summary
Modifier and Type Method Description ClassInfogetClassInfo()Get the class metadata for the mixinorg.objectweb.asm.tree.ClassNodegetClassNode()Get the class node for this injectionjava.lang.StringgetMethodName()Get the original name of the method, if availableMethods inherited from class org.spongepowered.asm.mixin.struct.AnnotatedMethodInfo
addMessage, getAnnotation, getContext, getMethodMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
annotationType
protected final java.lang.String annotationTypeHuman-readable annotation type -
classNode
protected final org.objectweb.asm.tree.ClassNode classNodeClass -
methodName
protected final java.lang.String methodNameOriginal 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
public java.lang.String getMethodName()Get the original name of the method, if available
-