public class InjectionNodes extends java.util.ArrayList<InjectionNodes.InjectionNode>
Target method which are
targetted by various types of injector. This collection is populated during
the first injector pass and allows injectors to keep track of their targets
even when the target method is being manipulated by other injectors.| Modifier and Type | Class and Description |
|---|---|
static class |
InjectionNodes.InjectionNode
A node targetted by one or more injectors.
|
| Constructor and Description |
|---|
InjectionNodes() |
| Modifier and Type | Method and Description |
|---|---|
InjectionNodes.InjectionNode |
add(org.spongepowered.asm.lib.tree.AbstractInsnNode node)
Add a tracked node to this collection if it does not already exist
|
boolean |
contains(org.spongepowered.asm.lib.tree.AbstractInsnNode node)
Get whether this collection contains a mapping for the specified insn
|
InjectionNodes.InjectionNode |
get(org.spongepowered.asm.lib.tree.AbstractInsnNode node)
Get a tracked node from this collection if it already exists, returns
null if the node is not tracked
|
void |
remove(org.spongepowered.asm.lib.tree.AbstractInsnNode node)
Mark the specified node as removed, does not update the wrapper if no
wrapper exists
|
void |
replace(org.spongepowered.asm.lib.tree.AbstractInsnNode oldNode,
org.spongepowered.asm.lib.tree.AbstractInsnNode newNode)
Replace the specified node with the new node, does not update the wrapper
if no wrapper exists for oldNode
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizepublic InjectionNodes.InjectionNode add(org.spongepowered.asm.lib.tree.AbstractInsnNode node)
node - Instruction node to addpublic InjectionNodes.InjectionNode get(org.spongepowered.asm.lib.tree.AbstractInsnNode node)
node - instruction nodepublic boolean contains(org.spongepowered.asm.lib.tree.AbstractInsnNode node)
node - instruction node to checkpublic void replace(org.spongepowered.asm.lib.tree.AbstractInsnNode oldNode,
org.spongepowered.asm.lib.tree.AbstractInsnNode newNode)
oldNode - node being replacednewNode - node to replace withpublic void remove(org.spongepowered.asm.lib.tree.AbstractInsnNode node)
node - node being removed