Package serp.bytecode

Class LocalVariable

java.lang.Object
serp.bytecode.Local
serp.bytecode.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.
  • Constructor Details

  • Method Details

    • getLocalVariableTable

      public LocalVariableTable getLocalVariableTable()
      The owning table.
    • getType

      public 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(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)