Class LocalVariableData
java.lang.Object
org.openjdk.asmtools.jasm.LocalVariableData
- All Implemented Interfaces:
DataWriter
Class for entries: local_variable_table[i], local_variable_type_table[i]
4.7.13. The LocalVariableTable Entry: local_variable_table[i]
LocalVariableTable_attribute { u2 attribute_name_index; u4 attribute_length; u2 local_variable_table_length; { u2 start_pc; u2 length; u2 name_index; u2 descriptor_index; u2 index; } local_variable_table[local_variable_table_length]; }
4.7.13. The LocalVariableTypeTable Entry: local_variable_type_table[i] LocalVariableTypeTable_attribute { u2 attribute_name_index; u4 attribute_length; u2 local_variable_type_table_length; { u2 start_pc; u2 length; u2 name_index; u2 signature_index; u2 index; } local_variable_type_table[local_variable_type_table_length]; }
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ConstCell(package private) Signature<ToolLogger> (package private) FieldTypeprivate final shortprivate shortprivate ConstCellprivate short -
Constructor Summary
ConstructorsConstructorDescriptionLocalVariableData(short start_pc, short length, short slot, ConstCell nameCell, ConstCell descriptorCell) LocalVariableData(short index, short curPC, ConstCell nameCell, ConstCell descriptorCell) Creates an entry of Local Variable Table -
Method Summary
Modifier and TypeMethodDescriptionshortgetIndex()intgetSignature(ToolLogger logger) intsetFieldSignature(Signature<ToolLogger> fieldSignature) setFieldType(FieldType fieldType) voidsetLength(int CurrentPC) voidsetStartPc(short start_pc) voidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DataWriter
isCountable
-
Field Details
-
index
private final short index -
fieldType
FieldType fieldType -
fieldSignature
Signature<ToolLogger> fieldSignature -
start_pc
private short start_pc -
length
private short length -
nameCell
-
descriptorCell
-
-
Constructor Details
-
LocalVariableData
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);
-
LocalVariableData
-
-
Method Details
-
getFieldType
-
setFieldType
-
getSignature
-
setFieldSignature
-
getSlotsCount
public int getSlotsCount() -
getIndex
public short getIndex() -
getLength
public int getLength()- Specified by:
getLengthin interfaceDataWriter
-
setLength
public void setLength(int CurrentPC) -
write
- Specified by:
writein interfaceDataWriter- Throws:
IOException
-
setStartPc
public void setStartPc(short start_pc)
-