public class InsnListEx extends InsnListReadOnly implements IInsnListEx
IInsnListExIInsnListEx.SpecialNodeType| Modifier and Type | Field and Description |
|---|---|
protected Target |
target
The target method
|
| Constructor and Description |
|---|
InsnListEx(Target target) |
| Modifier and Type | Method and Description |
|---|---|
<V> InsnListEx |
decorate(java.lang.String key,
V value)
Decorate this insn list with arbitrary metadata for use by
context-specific injection points
|
<V> V |
getDecoration(java.lang.String key)
Get the specified decoration
|
<V> V |
getDecoration(java.lang.String key,
V defaultValue)
Get the specified decoration or default value
|
org.objectweb.asm.tree.AbstractInsnNode |
getSpecialNode(IInsnListEx.SpecialNodeType type)
Get - if available - the specified special node from the target.
|
int |
getTargetAccess()
Get the access flags from the target method
|
java.lang.String |
getTargetDesc()
Get the descriptor of the target method
|
java.lang.String |
getTargetName()
Get the name of the target method
|
java.lang.String |
getTargetSignature()
Get the signature of the target method
|
boolean |
hasDecoration(java.lang.String key)
Get whether this list is decorated with the specified key
|
boolean |
isTargetConstructor()
Get whether the target method is a constructor
|
boolean |
isTargetStatic()
Get whether the target method is static
|
boolean |
isTargetStaticInitialiser()
Get whether the target method is a static initialiser
|
java.lang.String |
toString() |
InsnListEx |
undecorate()
Strip all decorations from this list
|
InsnListEx |
undecorate(java.lang.String key)
Strip a specific decoration from this list if the decoration exists
|
add, add, contains, get, getFirst, getLast, indexOf, insert, insert, insert, insert, insertBefore, insertBefore, iterator, iterator, remove, resetLabels, set, size, toArrayprotected final Target target
public InsnListEx(Target target)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getTargetName()
IInsnListExgetTargetName in interface IInsnListExpublic java.lang.String getTargetDesc()
IInsnListExgetTargetDesc in interface IInsnListExpublic java.lang.String getTargetSignature()
IInsnListExgetTargetSignature in interface IInsnListExpublic int getTargetAccess()
IInsnListExgetTargetAccess in interface IInsnListExpublic boolean isTargetStatic()
IInsnListExisTargetStatic in interface IInsnListExpublic boolean isTargetConstructor()
IInsnListExisTargetConstructor in interface IInsnListExpublic boolean isTargetStaticInitialiser()
IInsnListExisTargetStaticInitialiser in interface IInsnListExpublic org.objectweb.asm.tree.AbstractInsnNode getSpecialNode(IInsnListEx.SpecialNodeType type)
IInsnListExgetSpecialNode in interface IInsnListExtype - type of special node to fetchpublic <V> InsnListEx decorate(java.lang.String key, V value)
V - value typekey - meta keyvalue - meta valuepublic InsnListEx undecorate(java.lang.String key)
key - meta keypublic InsnListEx undecorate()
public boolean hasDecoration(java.lang.String key)
hasDecoration in interface IInsnListExkey - meta keypublic <V> V getDecoration(java.lang.String key)
getDecoration in interface IInsnListExV - value typekey - meta keypublic <V> V getDecoration(java.lang.String key,
V defaultValue)
getDecoration in interface IInsnListExV - value typekey - meta keydefaultValue - default value to return