Class LocalVariableData

java.lang.Object
org.openjdk.asmtools.jasm.LocalVariableData
All Implemented Interfaces:
DataWriter

class LocalVariableData extends Object implements 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 Details

    • index

      private final short index
    • fieldType

      FieldType fieldType
    • fieldSignature

      Signature<ToolLogger> fieldSignature
    • start_pc

      private short start_pc
    • length

      private short length
    • nameCell

      private ConstCell nameCell
    • descriptorCell

      private ConstCell descriptorCell
  • Constructor Details

    • LocalVariableData

      public LocalVariableData(short index, short curPC, ConstCell nameCell, ConstCell descriptorCell)
      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

      public LocalVariableData(short start_pc, short length, short slot, ConstCell nameCell, ConstCell descriptorCell)
  • Method Details