public class LocalVariables extends Object
| Constructor and Description |
|---|
LocalVariables(List<?> localVariableNodes,
org.objectweb.asm.tree.InsnList instructions)
Initialize the object
|
| Modifier and Type | Method and Description |
|---|---|
org.objectweb.asm.tree.LocalVariableNode |
getLoadVar(int variableIndex) |
org.objectweb.asm.tree.LocalVariableNode |
getStoreVar(int instructionIndex,
int localVariableIndex) |
void |
visitLabel(org.objectweb.asm.Label label) |
public LocalVariables(List<?> localVariableNodes, org.objectweb.asm.tree.InsnList instructions)
localVariableNodes - represent the local variables.instructions - is the list of instructions of the methodpublic void visitLabel(org.objectweb.asm.Label label)
label - Label object being visited
Update active variables from the given label.public org.objectweb.asm.tree.LocalVariableNode getLoadVar(int variableIndex)
variableIndex - of an existing LOAD instructionpublic org.objectweb.asm.tree.LocalVariableNode getStoreVar(int instructionIndex,
int localVariableIndex)
instructionIndex - index of the instruction for the Store instructionlocalVariableIndex - index of the local variable being storedCopyright © 2023. All rights reserved.