public class CModifyConstantAnnotationHandler extends RemovingAnnotationHandler<CModifyConstant> implements IInjectionTarget
CModifyConstant annotation.| Constructor and Description |
|---|
CModifyConstantAnnotationHandler() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<org.objectweb.asm.tree.AbstractInsnNode> |
getTargets(java.util.Map<java.lang.String,IInjectionTarget> injectionTargets,
org.objectweb.asm.tree.MethodNode method,
CTarget target,
CSlice slice)
Get all matching target instructions.
|
void |
transform(CModifyConstant annotation,
TransformerManager transformerManager,
IClassProvider classProvider,
java.util.Map<java.lang.String,IInjectionTarget> injectionTargets,
org.objectweb.asm.tree.ClassNode transformedClass,
org.objectweb.asm.tree.ClassNode transformer,
org.objectweb.asm.tree.MethodNode transformerMethod)
Handle a transformer method of the transformer with the given annotation.
|
shouldExecute, transformgetAnnotation, getAnnotation, getAnnotation, getAnnotation, prepareForCopy, renameAndCopyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetShift, getSlicepublic void transform(CModifyConstant annotation, TransformerManager transformerManager, IClassProvider classProvider, java.util.Map<java.lang.String,IInjectionTarget> injectionTargets, org.objectweb.asm.tree.ClassNode transformedClass, org.objectweb.asm.tree.ClassNode transformer, org.objectweb.asm.tree.MethodNode transformerMethod)
RemovingAnnotationHandlertransform in class RemovingAnnotationHandler<CModifyConstant>annotation - The annotation of the transformer methodtransformerManager - The transformer managerclassProvider - The class providerinjectionTargets - The available injection targetstransformedClass - The target class nodetransformer - The transformer class nodetransformerMethod - The method node of the transformerpublic java.util.List<org.objectweb.asm.tree.AbstractInsnNode> getTargets(java.util.Map<java.lang.String,IInjectionTarget> injectionTargets, org.objectweb.asm.tree.MethodNode method, CTarget target, CSlice slice)
IInjectionTargetgetTargets in interface IInjectionTargetinjectionTargets - All existing injection targetsmethod - The method to search intarget - The CTarget annotationslice - The CSlice annotation