Class AnnotatedMethodInfo
java.lang.Object
org.spongepowered.asm.mixin.struct.AnnotatedMethodInfo
- All Implemented Interfaces:
IInjectionPointContext,IMessageSink
- Direct Known Subclasses:
SpecialMethodInfo
public class AnnotatedMethodInfo extends java.lang.Object implements IInjectionPointContext
Data bundle for an annotated method in a mixin
-
Field Summary
Fields Modifier and Type Field Description protected org.objectweb.asm.tree.AnnotationNodeannotationAnnotation on the methodprotected static org.apache.logging.log4j.LoggerloggerLog more thingsprotected org.objectweb.asm.tree.MethodNodemethodAnnotated method -
Constructor Summary
Constructors Constructor Description AnnotatedMethodInfo(IMixinContext mixin, org.objectweb.asm.tree.MethodNode method, org.objectweb.asm.tree.AnnotationNode annotation) -
Method Summary
Modifier and Type Method Description voidaddMessage(java.lang.String format, java.lang.Object... args)Add a new messageorg.objectweb.asm.tree.AnnotationNodegetAnnotation()Get the annotation which this InjectionInfo was created fromIMixinContextgetContext()Get the mixin target context for this annotated methodorg.objectweb.asm.tree.MethodNodegetMethod()Get method being calledMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
logger
protected static final org.apache.logging.log4j.Logger loggerLog more things -
method
protected final org.objectweb.asm.tree.MethodNode methodAnnotated method -
annotation
protected final org.objectweb.asm.tree.AnnotationNode annotationAnnotation on the method
-
-
Constructor Details
-
AnnotatedMethodInfo
public AnnotatedMethodInfo(IMixinContext mixin, org.objectweb.asm.tree.MethodNode method, org.objectweb.asm.tree.AnnotationNode annotation)
-
-
Method Details
-
getContext
Get the mixin target context for this annotated method- Specified by:
getContextin interfaceIInjectionPointContext- Returns:
- the target context
-
getMethod
public final org.objectweb.asm.tree.MethodNode getMethod()Get method being called- Specified by:
getMethodin interfaceIInjectionPointContext- Returns:
- injector method
-
getAnnotation
public final org.objectweb.asm.tree.AnnotationNode getAnnotation()Get the annotation which this InjectionInfo was created from- Specified by:
getAnnotationin interfaceIInjectionPointContext- Returns:
- The annotation which this InjectionInfo was created from
-
addMessage
public void addMessage(java.lang.String format, java.lang.Object... args)Description copied from interface:IMessageSinkAdd a new message- Specified by:
addMessagein interfaceIMessageSink- Parameters:
format- Message formatargs- Message args
-