Class VarExpr

All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
LocalExpr, StackExpr

public abstract class VarExpr extends MemExpr
VarExpr represents an expression that accesses a local variable or a variable on the stack.
See Also:
  • Constructor Details

    • VarExpr

      public VarExpr(int index, Type type)
      Constructor.
      Parameters:
      index - Index giving location of expression. For instance, the number local variable represented or the position of the stack variable represented.
      type - Type (descriptor) of this expression.
  • Method Details

    • setIndex

      public void setIndex(int index)
    • index

      public int index()
    • def

      public DefExpr def()
      Returns the expression that defines this expression.
      Overrides:
      def in class Expr