Class ModifyConstantInjectionInfo
java.lang.Object
org.spongepowered.asm.mixin.struct.AnnotatedMethodInfo
org.spongepowered.asm.mixin.struct.SpecialMethodInfo
org.spongepowered.asm.mixin.injection.struct.InjectionInfo
org.spongepowered.asm.mixin.injection.struct.ModifyConstantInjectionInfo
- All Implemented Interfaces:
ISliceContext,IInjectionPointContext,IMessageSink
public class ModifyConstantInjectionInfo extends InjectionInfo
Information about a constant modifier injector
-
Nested Class Summary
Nested classes/interfaces inherited from class org.spongepowered.asm.mixin.injection.struct.InjectionInfo
InjectionInfo.AnnotationType, InjectionInfo.HandlerPrefix -
Field Summary
Fields inherited from class org.spongepowered.asm.mixin.injection.struct.InjectionInfo
atKey, DEFAULT_PREFIX, group, injectionPoints, injector, isStatic, slices, targetCount, targetNodes, targetsFields inherited from class org.spongepowered.asm.mixin.struct.SpecialMethodInfo
annotationType, classNode, methodName, mixinFields inherited from class org.spongepowered.asm.mixin.struct.AnnotatedMethodInfo
annotation, logger, method -
Constructor Summary
Constructors Constructor Description ModifyConstantInjectionInfo(MixinTargetContext mixin, org.objectweb.asm.tree.MethodNode method, org.objectweb.asm.tree.AnnotationNode annotation) -
Method Summary
Modifier and Type Method Description protected java.lang.StringgetDescription()java.lang.StringgetSliceId(java.lang.String id)Return the mapped slice id for the specified ID.protected voidparseInjectionPoints(java.util.List<org.objectweb.asm.tree.AnnotationNode> ats)protected InjectorparseInjector(org.objectweb.asm.tree.AnnotationNode injectAnnotation)protected java.util.List<org.objectweb.asm.tree.AnnotationNode>readInjectionPoints()Methods inherited from class org.spongepowered.asm.mixin.injection.struct.InjectionInfo
addCallbackInvocation, addMessage, addMethod, getDynamicInfo, getInjectedCallbackCount, getInjectorAnnotation, getInjectorPrefix, getMessages, getRegisteredAnnotations, getSlice, getTargets, inject, isValid, notifyInjected, parse, parseRequirements, parseTargets, postInject, prepare, readAnnotation, register, toStringMethods inherited from class org.spongepowered.asm.mixin.struct.SpecialMethodInfo
getClassInfo, getClassNode, getMethodNameMethods inherited from class org.spongepowered.asm.mixin.struct.AnnotatedMethodInfo
getAnnotation, getContext, getMethodMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.spongepowered.asm.mixin.injection.IInjectionPointContext
getAnnotation, getContext, getMethod
-
Constructor Details
-
ModifyConstantInjectionInfo
public ModifyConstantInjectionInfo(MixinTargetContext mixin, org.objectweb.asm.tree.MethodNode method, org.objectweb.asm.tree.AnnotationNode annotation)
-
-
Method Details
-
readInjectionPoints
protected java.util.List<org.objectweb.asm.tree.AnnotationNode> readInjectionPoints()- Overrides:
readInjectionPointsin classInjectionInfo
-
parseInjectionPoints
protected void parseInjectionPoints(java.util.List<org.objectweb.asm.tree.AnnotationNode> ats)- Overrides:
parseInjectionPointsin classInjectionInfo
-
parseInjector
- Specified by:
parseInjectorin classInjectionInfo
-
getDescription
protected java.lang.String getDescription()- Overrides:
getDescriptionin classInjectionInfo
-
getSliceId
public java.lang.String getSliceId(java.lang.String id)Description copied from class:InjectionInfoReturn the mapped slice id for the specified ID. Injectors which only support use of a single slice will always return the default id (an empty string)- Overrides:
getSliceIdin classInjectionInfo- Parameters:
id- slice id- Returns:
- mapped id
-