Class LocalVariableTableEntry


  • public class LocalVariableTableEntry
    extends Object
    Represents an entry in the LocalVariableTable attribute.
    • Constructor Detail

      • LocalVariableTableEntry

        public LocalVariableTableEntry​(ConstPool constPool,
                                       int startPc,
                                       int lengthPc,
                                       int nameIndex,
                                       int descriptorIndex,
                                       int index)
        Constructs a local variable table entry.
        Parameters:
        constPool - the constant pool for resolving references
        startPc - the bytecode offset where the variable scope begins
        lengthPc - the length of the variable scope in bytecode
        nameIndex - constant pool index of the variable name
        descriptorIndex - constant pool index of the variable type descriptor
        index - the local variable index in the frame
    • Method Detail

      • getStartPc

        public int getStartPc()
        Returns:
        the start pc
      • getLengthPc

        public int getLengthPc()
        Returns:
        the length pc
      • getNameIndex

        public int getNameIndex()
        Returns:
        the name index
      • getDescriptorIndex

        public int getDescriptorIndex()
        Returns:
        the descriptor index
      • getIndex

        public int getIndex()
        Returns:
        the index