Package jminusminus
Class LocalVariableDefn
java.lang.Object
jminusminus.LocalVariableDefn
- All Implemented Interfaces:
- IDefn
The definition for a local variable (including formal parameters). All local variables are
 allocated on the stack at fixed offsets from the base of the stack frame and all have types.
 Some local variables have initializations.
- 
Constructor SummaryConstructorsConstructorDescriptionLocalVariableDefn(Type type, int offset) Constructs a local variable definition for a local variable.
- 
Method Summary
- 
Constructor Details- 
LocalVariableDefnConstructs a local variable definition for a local variable.- Parameters:
- type- the variable's type.
- offset- the variable's offset from the base of the current stack frame (allocated for each method invocation).
 
 
- 
- 
Method Details- 
typeReturns the type for this variable.
- 
offsetpublic int offset()Returns the offset of this variable on the stack frame.- Returns:
- the offset.
 
- 
initializepublic void initialize()Initializes this local variable.
- 
isInitializedpublic boolean isInitialized()Returns true if this local variable has been initialized, and false otherwise.
 
-