Package org.openjdk.asmtools.jasm
Class LocVarData
java.lang.Object
org.openjdk.asmtools.jasm.LocVarData
- All Implemented Interfaces:
DataWriter
4.7.13. The LocalVariableTable Entry: local_variable_table[i]
LocalVariableTable_attribute { ... { u2 start_pc; u2 length; u2 name_index; u2 descriptor_index; u2 index; } ... }
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLocVarData
(short index, short curPC, ConstCell nameCell, ConstCell descriptorCell) Creates an entry of Local Variable Table -
Method Summary
Modifier and TypeMethodDescriptionshort
getIndex()
int
int
void
setLength
(int CurrentPC) void
setStartPc
(short start_pc) void
-
Field Details
-
index
private final short index -
fieldType
FieldType fieldType -
start_pc
private short start_pc -
length
private short length -
nameCell
-
descriptorCell
-
-
Constructor Details
-
LocVarData
Creates an entry of Local Variable Table- Parameters:
index
- The value of the index item must be a valid index into the local variable array of the current frame. The given local variable is at index in the local variable array of the current frame var is presented in the form: var index (#)name(_index):(#)descriptor(_index);
-
-
Method Details
-
getFieldType
-
getSlotsCount
public int getSlotsCount() -
getIndex
public short getIndex() -
getLength
public int getLength()- Specified by:
getLength
in interfaceDataWriter
-
setLength
public void setLength(int CurrentPC) -
write
- Specified by:
write
in interfaceDataWriter
- Throws:
IOException
-
setStartPc
public void setStartPc(short start_pc)
-