Package serp.bytecode

Class LocalVariable

  • All Implemented Interfaces:
    BCEntity, InstructionPtr

    public class LocalVariable
    extends Local
    A local variable contains the name, description, index and scope of a local used in opcodes.
    • Method Detail

      • getLocalVariableTable

        public LocalVariableTable getLocalVariableTable()
        The owning table.
      • getType

        public java.lang.Class getType()
        Return the type of this local. If the type has not been set, this method will return null.
      • getTypeBC

        public BCClass getTypeBC()
        Return the type of this local. If the type has not been set, this method will return null.
      • setType

        public void setType​(java.lang.Class type)
        Set the type of this local.
      • setType

        public void setType​(BCClass type)
        Set the type of this local.
      • acceptVisit

        public void acceptVisit​(BCVisitor visit)