public final class StackTypes extends Object
| Constructor and Description |
|---|
StackTypes(org.apache.bcel.generic.MethodGen mg)
Create a record of the types on the stack at each instruction in a method.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.bcel.verifier.structurals.OperandStack |
get(@IndexFor(value={"loc_arr","os_arr"}) int offset)
Returns the stack contents at the specified offset.
|
void |
set(@IndexFor(value={"loc_arr","os_arr"}) int offset,
org.apache.bcel.verifier.structurals.Frame f)
Sets the stack for the instruction at the specified offset to a copy of the information in the
given frame.
|
String |
toString() |
String |
toString(org.apache.bcel.verifier.structurals.LocalVariables lv)
Return a printed representation of the given LocalVariables.
|
String |
toString(org.apache.bcel.verifier.structurals.OperandStack os)
Return a printed representation of the given OperandStack.
|
public StackTypes(org.apache.bcel.generic.MethodGen mg)
mg - the methodpublic void set(@IndexFor(value={"loc_arr","os_arr"}) int offset,
org.apache.bcel.verifier.structurals.Frame f)
offset - the offset at which the instruction appearsf - the stack frame to use for the instructionpublic org.apache.bcel.verifier.structurals.OperandStack get(@IndexFor(value={"loc_arr","os_arr"}) int offset)
offset - the offset to which to get the stack contents@SideEffectFree public String toString(@GuardSatisfied StackTypes this)
@SideEffectFree public String toString(@GuardSatisfied StackTypes this, org.apache.bcel.verifier.structurals.OperandStack os)
os - the OperandStack to printos@SideEffectFree public String toString(@GuardSatisfied StackTypes this, org.apache.bcel.verifier.structurals.LocalVariables lv)
lv - the LocalVariablesStack to printlv