public class ExpUniqueVisitor extends ExprMapVisitor implements ExprVisitor<za.ac.sun.cs.green.expr.Expression>
Modifier and Type | Field and Description |
---|---|
(package private) StaticRegionException |
sre |
(package private) int |
uniqueNum |
eva
Constructor and Description |
---|
ExpUniqueVisitor(int uniqueNum) |
Modifier and Type | Method and Description |
---|---|
za.ac.sun.cs.green.expr.Expression |
visit(ArrayRefVarExpr expr)
A visit to all ArrayRefVarExpr to create a new-unique object for the same var number.
|
za.ac.sun.cs.green.expr.Expression |
visit(AstVarExpr expr) |
za.ac.sun.cs.green.expr.Expression |
visit(FieldRefVarExpr expr)
A visit to all FieldRefVarExpr to create a new-unique object for the same var number.
|
za.ac.sun.cs.green.expr.Expression |
visit(WalaVarExpr expr)
A visit to all WalaVariables to create a new-unique object for the same var number.
|
visit, visit, visit, visit, visit, visit, visit, visit, visit
int uniqueNum
StaticRegionException sre
public za.ac.sun.cs.green.expr.Expression visit(WalaVarExpr expr)
visit
in interface ExprVisitor<za.ac.sun.cs.green.expr.Expression>
visit
in class ExprMapVisitor
expr
- WalaVariable that is visitedpublic za.ac.sun.cs.green.expr.Expression visit(AstVarExpr expr)
visit
in interface ExprVisitor<za.ac.sun.cs.green.expr.Expression>
visit
in class ExprMapVisitor
public za.ac.sun.cs.green.expr.Expression visit(FieldRefVarExpr expr)
visit
in interface ExprVisitor<za.ac.sun.cs.green.expr.Expression>
visit
in class ExprMapVisitor
expr
- FieldRefVarExpr that is visitedpublic za.ac.sun.cs.green.expr.Expression visit(ArrayRefVarExpr expr)
visit
in interface ExprVisitor<za.ac.sun.cs.green.expr.Expression>
visit
in class ExprMapVisitor
expr
- ArrayRefVarExpr that is visited