| Package | Description |
|---|---|
| jdk7u.jaxp.org.apache.bcel.external.generic |
This package contains the "generic" part of the
Byte Code Engineering
Library, i.e., classes to dynamically modify class objects and
byte code instructions.
|
| jdk7u.jaxp.org.apache.xalan.external.xsltc.compiler.util |
| Modifier and Type | Method and Description |
|---|---|
LocalVariableGen |
MethodGen.addLocalVariable(String name,
Type type,
InstructionHandle start,
InstructionHandle end)
Adds a local variable to this method and assigns an index automatically.
|
LocalVariableGen |
MethodGen.addLocalVariable(String name,
Type type,
int slot,
InstructionHandle start,
InstructionHandle end)
Adds a local variable to this method.
|
LocalVariableGen[] |
MethodGen.getLocalVariables() |
| Modifier and Type | Method and Description |
|---|---|
void |
InstructionList.redirectLocalVariables(LocalVariableGen[] lg,
InstructionHandle old_target,
InstructionHandle new_target)
Redirect all references of local variables from old_target to new_target.
|
void |
MethodGen.removeLocalVariable(LocalVariableGen l)
Remove a local variable, its slot will not be reused, if you do not use addLocalVariable
with an explicit index argument.
|
| Modifier and Type | Method and Description |
|---|---|
LocalVariableGen |
MethodGenerator.addLocalVariable(String name,
Type type,
InstructionHandle start,
InstructionHandle end)
Allocates a local variable.
|
LocalVariableGen |
MethodGenerator.addLocalVariable2(String name,
Type type,
InstructionHandle start) |
protected LocalVariableGen[] |
MethodGenerator.LocalVariableRegistry.getLocals(boolean includeRemoved)
Gets all
LocalVariableGen objects for this method. |
LocalVariableGen |
MethodGenerator.getLocalVariable(String name) |
protected LocalVariableGen |
MethodGenerator.LocalVariableRegistry.lookUpByName(String name)
Given the name of a variable, finds a
LocalVariableGen
corresponding to it. |
protected LocalVariableGen |
MethodGenerator.LocalVariableRegistry.lookupRegisteredLocalVariable(int slot,
int offset)
Find which
LocalVariableGen, if any, is registered for a
particular JVM local stack frame slot at a particular position in the
byte code for the method. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
MethodGenerator.LocalVariableRegistry.registerByName(LocalVariableGen lvg)
Set up a mapping of the name of the specified
LocalVariableGen object to the LocalVariableGen
itself. |
protected void |
MethodGenerator.LocalVariableRegistry.registerLocalVariable(LocalVariableGen lvg)
Registers a
org.apache.bcel.generic.LocalVariableGen
for this method. |
protected void |
MethodGenerator.LocalVariableRegistry.removeByNameTracking(LocalVariableGen lvg)
Remove the mapping from the name of the specified
LocalVariableGen to itself. |
void |
MethodGenerator.removeLocalVariable(LocalVariableGen lvg) |
Copyright © 2018–2021 mhoffrogge. All rights reserved.