|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.transjvm.Frame
public class Frame
Class representing a stack frame.
Constructor Summary | |
---|---|
Frame(boolean _static,
TypeID... parameterTypes)
Constructs a Frame object |
|
Frame(TypeID[] parameterTypes,
boolean _static)
Constructs a Frame object |
Method Summary | |
---|---|
Variable |
_this()
Returns a Variable for this . |
void |
free(Variable var)
Frees a frame variable, allowing it to be reallocated. |
int |
maxLocals()
|
Statement |
name(Variable var,
java.lang.String name,
Statement s)
Assigns a name to a variable from this Frame, for debugging purposes. |
Variable |
parameter(int n)
Returns a variable for parameter n. |
Variable |
variable(TypeID type)
Allocates a new variable from this Frame. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Frame(boolean _static, TypeID... parameterTypes)
_static
- True if the method is static.parameterTypes
- The parameters for method of this stack frame.public Frame(TypeID[] parameterTypes, boolean _static)
parameterTypes
- The parameters for method of this stack frame._static
- True if the method is static.Method Detail |
---|
public int maxLocals()
public final Variable _this()
this
.
this
, null if a static method.public final Variable parameter(int n)
n
- Index of the parameter
IndexOutofBoundsException
- If n < 0 or n >= number of parameters.public void free(Variable var)
var
- Variable to be freed.
java.lang.IllegalArgumentException
- if var
does not belong to
this Frame.public Variable variable(TypeID type)
type
- The type of the new Variable.
public Statement name(Variable var, java.lang.String name, Statement s)
s
and names var
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |