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
,ISelectorContext
,IMessageSink
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, selectors, slices, targetCount, targetNodes, targets
Fields inherited from class org.spongepowered.asm.mixin.struct.SpecialMethodInfo
annotationType, classNode, methodName, mixin
Fields inherited from class org.spongepowered.asm.mixin.struct.AnnotatedMethodInfo
annotation, method
-
Constructor Summary
ConstructorsConstructorDescriptionModifyConstantInjectionInfo
(MixinTargetContext mixin, org.objectweb.asm.tree.MethodNode method, org.objectweb.asm.tree.AnnotationNode annotation) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getSliceId
(String id) Return the mapped slice id for the specified ID.protected void
parseInjectionPoints
(List<org.objectweb.asm.tree.AnnotationNode> ats) protected Injector
parseInjector
(org.objectweb.asm.tree.AnnotationNode injectAnnotation) protected List<org.objectweb.asm.tree.AnnotationNode>
Methods inherited from class org.spongepowered.asm.mixin.injection.struct.InjectionInfo
addCallbackInvocation, addMessage, addMethod, checkTarget, findTargets, getDynamicInfo, getInjectedCallbackCount, getInjectorAnnotation, getInjectorPrefix, getMessages, getRegisteredAnnotations, getSlice, getTargetCount, inject, isValid, notifyInjected, parse, parseRequirements, parseSelectors, postInject, preInject, prepare, readAnnotation, register, toString, validateTargets
Methods inherited from class org.spongepowered.asm.mixin.struct.SpecialMethodInfo
getClassInfo, getClassNode, getMethodName
Methods inherited from class org.spongepowered.asm.mixin.struct.AnnotatedMethodInfo
getAnnotation, getAnnotationNode, getMethod, getMixin, getParent, getSelectorAnnotation, getSelectorCoordinate, remap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.spongepowered.asm.mixin.injection.IInjectionPointContext
getAnnotationNode, getMethod
Methods inherited from interface org.spongepowered.asm.mixin.injection.selectors.ISelectorContext
getAnnotation, getMixin, getParent, getSelectorAnnotation, getSelectorCoordinate, remap
-
Constructor Details
-
ModifyConstantInjectionInfo
public ModifyConstantInjectionInfo(MixinTargetContext mixin, org.objectweb.asm.tree.MethodNode method, org.objectweb.asm.tree.AnnotationNode annotation)
-
-
Method Details
-
readInjectionPoints
- Overrides:
readInjectionPoints
in classInjectionInfo
-
parseInjectionPoints
- Overrides:
parseInjectionPoints
in classInjectionInfo
-
parseInjector
- Specified by:
parseInjector
in classInjectionInfo
-
getDescription
- Overrides:
getDescription
in classInjectionInfo
-
getSliceId
Description copied from class:InjectionInfo
Return 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:
getSliceId
in classInjectionInfo
- Parameters:
id
- slice id- Returns:
- mapped id
-