public class AstToGreenExprVisitor extends java.lang.Object implements ExprVisitor<za.ac.sun.cs.green.expr.Expression>
Modifier and Type | Field and Description |
---|---|
(package private) za.ac.sun.cs.green.expr.Expression |
currentCondition |
DefUseVisit |
defUseVisit |
(package private) ExprVisitorAdapter<za.ac.sun.cs.green.expr.Expression> |
eva |
(package private) za.ac.sun.cs.green.expr.Expression |
toAssign |
Constructor and Description |
---|
AstToGreenExprVisitor() |
Modifier and Type | Method and Description |
---|---|
za.ac.sun.cs.green.expr.Expression |
assign(za.ac.sun.cs.green.expr.Expression e) |
static za.ac.sun.cs.green.expr.Expression |
bad(java.lang.Object obj) |
za.ac.sun.cs.green.expr.Expression |
ite(za.ac.sun.cs.green.expr.Expression cond,
za.ac.sun.cs.green.expr.Expression thenExpr,
za.ac.sun.cs.green.expr.Expression elseExpr)
Translates conditional expression to a corresponding Green expression.
|
void |
setAssign(za.ac.sun.cs.green.expr.Expression toAssign) |
za.ac.sun.cs.green.expr.Expression |
visit(ArrayRefVarExpr expr) |
za.ac.sun.cs.green.expr.Expression |
visit(AstVarExpr expr) |
za.ac.sun.cs.green.expr.Expression |
visit(FieldRefVarExpr expr) |
za.ac.sun.cs.green.expr.Expression |
visit(GammaVarExpr expr)
Translating a GammaExpression into an IfThenElseExpression
|
za.ac.sun.cs.green.expr.Expression |
visit(IfThenElseExpr expr)
Translating a TfThenElseExpr into an IfThenElseExpression
|
za.ac.sun.cs.green.expr.Expression |
visit(za.ac.sun.cs.green.expr.IntConstant expr) |
za.ac.sun.cs.green.expr.Expression |
visit(za.ac.sun.cs.green.expr.IntVariable expr) |
za.ac.sun.cs.green.expr.Expression |
visit(za.ac.sun.cs.green.expr.Operation expr) |
za.ac.sun.cs.green.expr.Expression |
visit(za.ac.sun.cs.green.expr.RealConstant expr) |
za.ac.sun.cs.green.expr.Expression |
visit(za.ac.sun.cs.green.expr.RealVariable expr) |
za.ac.sun.cs.green.expr.Expression |
visit(za.ac.sun.cs.green.expr.StringConstantGreen expr) |
za.ac.sun.cs.green.expr.Expression |
visit(za.ac.sun.cs.green.expr.StringVariable expr) |
za.ac.sun.cs.green.expr.Expression |
visit(WalaVarExpr expr) |
za.ac.sun.cs.green.expr.Expression toAssign
za.ac.sun.cs.green.expr.Expression currentCondition
ExprVisitorAdapter<za.ac.sun.cs.green.expr.Expression> eva
public DefUseVisit defUseVisit
public void setAssign(za.ac.sun.cs.green.expr.Expression toAssign)
public static za.ac.sun.cs.green.expr.Expression bad(java.lang.Object obj)
public za.ac.sun.cs.green.expr.Expression assign(za.ac.sun.cs.green.expr.Expression e)
public za.ac.sun.cs.green.expr.Expression ite(za.ac.sun.cs.green.expr.Expression cond, za.ac.sun.cs.green.expr.Expression thenExpr, za.ac.sun.cs.green.expr.Expression elseExpr)
cond
- Condition inside the expression.thenExpr
- Expression in the then side.elseExpr
- Expression in the else side.public za.ac.sun.cs.green.expr.Expression visit(GammaVarExpr expr)
visit
in interface ExprVisitor<za.ac.sun.cs.green.expr.Expression>
expr
- A Gamma expression to be translated.public za.ac.sun.cs.green.expr.Expression visit(AstVarExpr expr)
visit
in interface ExprVisitor<za.ac.sun.cs.green.expr.Expression>
public za.ac.sun.cs.green.expr.Expression visit(IfThenElseExpr expr)
visit
in interface ExprVisitor<za.ac.sun.cs.green.expr.Expression>
expr
- A Gamma expression to be translated.public za.ac.sun.cs.green.expr.Expression visit(WalaVarExpr expr)
visit
in interface ExprVisitor<za.ac.sun.cs.green.expr.Expression>
public za.ac.sun.cs.green.expr.Expression visit(FieldRefVarExpr expr)
visit
in interface ExprVisitor<za.ac.sun.cs.green.expr.Expression>
public za.ac.sun.cs.green.expr.Expression visit(ArrayRefVarExpr expr)
visit
in interface ExprVisitor<za.ac.sun.cs.green.expr.Expression>
public za.ac.sun.cs.green.expr.Expression visit(za.ac.sun.cs.green.expr.IntConstant expr)
visit
in interface ExprVisitor<za.ac.sun.cs.green.expr.Expression>
public za.ac.sun.cs.green.expr.Expression visit(za.ac.sun.cs.green.expr.IntVariable expr)
visit
in interface ExprVisitor<za.ac.sun.cs.green.expr.Expression>
public za.ac.sun.cs.green.expr.Expression visit(za.ac.sun.cs.green.expr.Operation expr)
visit
in interface ExprVisitor<za.ac.sun.cs.green.expr.Expression>
public za.ac.sun.cs.green.expr.Expression visit(za.ac.sun.cs.green.expr.RealConstant expr)
visit
in interface ExprVisitor<za.ac.sun.cs.green.expr.Expression>
public za.ac.sun.cs.green.expr.Expression visit(za.ac.sun.cs.green.expr.RealVariable expr)
visit
in interface ExprVisitor<za.ac.sun.cs.green.expr.Expression>
public za.ac.sun.cs.green.expr.Expression visit(za.ac.sun.cs.green.expr.StringConstantGreen expr)
visit
in interface ExprVisitor<za.ac.sun.cs.green.expr.Expression>
public za.ac.sun.cs.green.expr.Expression visit(za.ac.sun.cs.green.expr.StringVariable expr)
visit
in interface ExprVisitor<za.ac.sun.cs.green.expr.Expression>