Class LocVarData

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

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

    • index

      private final short index
    • fieldType

      FieldType fieldType
    • start_pc

      private short start_pc
    • length

      private short length
    • nameCell

      private ConstCell nameCell
    • descriptorCell

      private ConstCell descriptorCell
  • Constructor Details

    • LocVarData

      public LocVarData(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);
  • Method Details

    • getFieldType

      public FieldType getFieldType()
    • getSlotsCount

      public int getSlotsCount()
    • getIndex

      public short getIndex()
    • getLength

      public int getLength()
      Specified by:
      getLength in interface DataWriter
    • setLength

      public void setLength(int CurrentPC)
    • write

      public void write(CheckedDataOutputStream out) throws IOException
      Specified by:
      write in interface DataWriter
      Throws:
      IOException
    • setStartPc

      public void setStartPc(short start_pc)