Class VarExpr

  • All Implemented Interfaces:
    java.lang.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:
    StackExpr, LocalExpr, DefExpr
    • Constructor Detail

      • 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 Detail

      • 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