Target.Extension| Constructor and Description |
|---|
Constructor(ClassInfo classInfo,
org.objectweb.asm.tree.ClassNode classNode,
org.objectweb.asm.tree.MethodNode method) |
| Modifier and Type | Method and Description |
|---|---|
Bytecode.DelegateInitialiser |
findDelegateInitNode()
Find the call to super() or this() in a constructor.
|
org.objectweb.asm.tree.AbstractInsnNode |
findFirstBodyInsn()
Find the injection point
|
org.objectweb.asm.tree.AbstractInsnNode |
findInitialiserInjectionPoint(Initialiser.InjectionMode mode)
Find the injection point for injected initialiser insns in the target
ctor.
|
static InsnRange |
getRange(org.objectweb.asm.tree.MethodNode ctor)
Identifies line numbers in the supplied ctor which correspond to the
start and end of the method body.
|
void |
inspect(Initialiser initialiser)
Inspect an incoming initialiser to determine which fields are touched by
the mixin.
|
boolean |
isInjectable()
Get whether this constructor should have mixin initialisers injected into
it based on whether a delegate initialiser call is absent or is a call to
super()
|
addInjectionNode, addLocalVariable, addLocalVariable, allocateLocal, allocateLocals, compareTo, extendLocals, extendStack, findInitNodeFor, findInitNodeFor, generateArgMap, generateArgMap, get, getArgIndices, getCallbackDescriptor, getCallbackDescriptor, getCallbackInfoClass, getCurrentMaxLocals, getCurrentMaxStack, getDesc, getInjectionNode, getMaxLocals, getMaxStack, getName, getSignature, getSimpleCallbackDescriptor, indexOf, indexOf, insert, insert, insert, insert, insertBefore, insertBefore, insertBefore, insertBefore, iterator, of, removeNode, replaceNode, replaceNode, replaceNode, toString, wrapNodepublic Constructor(ClassInfo classInfo, org.objectweb.asm.tree.ClassNode classNode, org.objectweb.asm.tree.MethodNode method)
public Bytecode.DelegateInitialiser findDelegateInitNode()
public boolean isInjectable()
public void inspect(Initialiser initialiser)
findInitialiserInjectionPoint(org.spongepowered.asm.mixin.transformer.struct.Initialiser.InjectionMode) to
determine the instruction after which the mixin initialisers will be
placedinitialiser - the initialiser to inspectpublic org.objectweb.asm.tree.AbstractInsnNode findInitialiserInjectionPoint(Initialiser.InjectionMode mode)
mode - Injection mode for this specific environmentpublic org.objectweb.asm.tree.AbstractInsnNode findFirstBodyInsn()
public static InsnRange getRange(org.objectweb.asm.tree.MethodNode ctor)
ctor - constructor to scan