Class Java.LocalVariableSlot

  • Enclosing class:
    Java

    public static class Java.LocalVariableSlot
    extends java.lang.Object
    All local variables have a slot number; local variables that get written into the 'localvariabletable' also have a start and end offset that defines the variable's extent in the bytecode. If the name is null, or variable debugging is not on, then the variable won't be written into the localvariabletable and the offsets can be ignored.
    • Constructor Detail

      • LocalVariableSlot

        public LocalVariableSlot​(java.lang.String name,
                                 short slotNumber,
                                 IClass type)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getSlotIndex

        public short getSlotIndex()
        Returns:
        The 'local variable index' associated with this local variable
      • setSlotIndex

        public void setSlotIndex​(short slotIndex)
        Parameters:
        slotIndex - The 'local variable index' to associate with this local variable
      • getName

        public java.lang.String getName()
        Returns:
        The name of this local variable
      • setName

        public void setName​(java.lang.String name)
        Parameters:
        name - The name of this local variable
      • getType

        public IClass getType()
        Returns:
        the resolved type of this local variable