Class Java.LocalVariableSlot
java.lang.Object
org.codehaus.janino.Java.LocalVariableSlot
- Enclosing class:
Java
All local variables have a slot number; local variables that get written into the "local variable table"
also have a start and end offset that defines the variable's extent in the bytecode. If the name is null,
or variable debugging is not on, then the variable won't be written into the LocalVariableTable and the
offsets can be ignored.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CodeContext.Offsetprivate Stringprivate shortprivate CodeContext.Offsetprivate final IType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEnd()getName()shortgetStart()getType()voidsetEnd(CodeContext.Offset end) voidvoidsetSlotIndex(short slotIndex) voidsetStart(CodeContext.Offset start) toString()
-
Field Details
-
slotIndex
private short slotIndex -
name
-
type
-
start
-
end
-
-
Constructor Details
-
LocalVariableSlot
-
-
Method Details
-
toString
-
getSlotIndex
public short getSlotIndex()- Returns:
- The "local variable index" associated with this local variable (two slots for LONG and DOUBLE local variables)
-
setSlotIndex
public void setSlotIndex(short slotIndex) - Parameters:
slotIndex- The "local variable index" to associate with this local variable
-
getName
-
setName
- Parameters:
name- The name of this local variable
-
getStart
- Returns:
- The
CodeContext.Offsetfrom which this local variable is visible
-
setStart
- Parameters:
start- TheCodeContext.Offsetfrom which this local variable is visible
-
getEnd
- Returns:
- The
CodeContext.Offsetup to which this local variable is visible
-
setEnd
- Parameters:
end- TheCodeContext.Offsetup to which this local variable is visible
-
getType
- Returns:
- the resolved type of this local variable
-