public class AstToGreenVisitor extends java.lang.Object implements AstVisitor<za.ac.sun.cs.green.expr.Expression>
Modifier and Type | Field and Description |
---|---|
(package private) ExprVisitorAdapter<za.ac.sun.cs.green.expr.Expression> |
eva |
(package private) AstToGreenExprVisitor |
exprVisitor |
java.util.ArrayList<za.ac.sun.cs.green.expr.Expression> |
greenList |
java.util.ArrayList<Stmt> |
stmtList |
Constructor and Description |
---|
AstToGreenVisitor() |
Modifier and Type | Method and Description |
---|---|
za.ac.sun.cs.green.expr.Expression |
assignStmt(AssignmentStmt stmt) |
za.ac.sun.cs.green.expr.Expression |
bad(java.lang.Object obj) |
za.ac.sun.cs.green.expr.Expression |
compositionStmt(CompositionStmt stmt)
Transform a composition statement into a conjunction in green.
|
static DynamicRegion |
execute(DynamicRegion dynRegion) |
za.ac.sun.cs.green.expr.Expression |
transform(Stmt stmt) |
za.ac.sun.cs.green.expr.Expression |
visit(ArrayLengthInstruction c) |
za.ac.sun.cs.green.expr.Expression |
visit(ArrayLoadInstruction c) |
za.ac.sun.cs.green.expr.Expression |
visit(ArrayStoreInstruction c) |
za.ac.sun.cs.green.expr.Expression |
visit(AssignmentStmt a) |
za.ac.sun.cs.green.expr.Expression |
visit(CheckCastInstruction c) |
za.ac.sun.cs.green.expr.Expression |
visit(CompositionStmt a) |
za.ac.sun.cs.green.expr.Expression |
visit(GetInstruction c) |
za.ac.sun.cs.green.expr.Expression |
visit(IfThenElseStmt a) |
za.ac.sun.cs.green.expr.Expression |
visit(InstanceOfInstruction c) |
za.ac.sun.cs.green.expr.Expression |
visit(InvokeInstruction c) |
za.ac.sun.cs.green.expr.Expression |
visit(NewInstruction c) |
za.ac.sun.cs.green.expr.Expression |
visit(PhiInstruction c) |
za.ac.sun.cs.green.expr.Expression |
visit(PutInstruction c) |
za.ac.sun.cs.green.expr.Expression |
visit(ReturnInstruction c) |
za.ac.sun.cs.green.expr.Expression |
visit(SkipStmt a) |
za.ac.sun.cs.green.expr.Expression |
visit(SPFCaseStmt c) |
za.ac.sun.cs.green.expr.Expression |
visit(SwitchInstruction c) |
za.ac.sun.cs.green.expr.Expression |
visit(ThrowInstruction c) |
public final java.util.ArrayList<za.ac.sun.cs.green.expr.Expression> greenList
public final java.util.ArrayList<Stmt> stmtList
ExprVisitorAdapter<za.ac.sun.cs.green.expr.Expression> eva
AstToGreenExprVisitor exprVisitor
public za.ac.sun.cs.green.expr.Expression bad(java.lang.Object obj)
public za.ac.sun.cs.green.expr.Expression assignStmt(AssignmentStmt stmt)
public za.ac.sun.cs.green.expr.Expression compositionStmt(CompositionStmt stmt)
stmt
- The composition statement to be translated.public za.ac.sun.cs.green.expr.Expression transform(Stmt stmt)
public za.ac.sun.cs.green.expr.Expression visit(SkipStmt a)
visit
in interface AstVisitor<za.ac.sun.cs.green.expr.Expression>
public za.ac.sun.cs.green.expr.Expression visit(AssignmentStmt a)
visit
in interface AstVisitor<za.ac.sun.cs.green.expr.Expression>
public za.ac.sun.cs.green.expr.Expression visit(CompositionStmt a)
visit
in interface AstVisitor<za.ac.sun.cs.green.expr.Expression>
public za.ac.sun.cs.green.expr.Expression visit(IfThenElseStmt a)
visit
in interface AstVisitor<za.ac.sun.cs.green.expr.Expression>
public za.ac.sun.cs.green.expr.Expression visit(SPFCaseStmt c)
visit
in interface AstVisitor<za.ac.sun.cs.green.expr.Expression>
public za.ac.sun.cs.green.expr.Expression visit(ArrayLoadInstruction c)
visit
in interface AstVisitor<za.ac.sun.cs.green.expr.Expression>
public za.ac.sun.cs.green.expr.Expression visit(ArrayStoreInstruction c)
visit
in interface AstVisitor<za.ac.sun.cs.green.expr.Expression>
public za.ac.sun.cs.green.expr.Expression visit(SwitchInstruction c)
visit
in interface AstVisitor<za.ac.sun.cs.green.expr.Expression>
public za.ac.sun.cs.green.expr.Expression visit(ReturnInstruction c)
visit
in interface AstVisitor<za.ac.sun.cs.green.expr.Expression>
public za.ac.sun.cs.green.expr.Expression visit(GetInstruction c)
visit
in interface AstVisitor<za.ac.sun.cs.green.expr.Expression>
public za.ac.sun.cs.green.expr.Expression visit(PutInstruction c)
visit
in interface AstVisitor<za.ac.sun.cs.green.expr.Expression>
public za.ac.sun.cs.green.expr.Expression visit(NewInstruction c)
visit
in interface AstVisitor<za.ac.sun.cs.green.expr.Expression>
public za.ac.sun.cs.green.expr.Expression visit(InvokeInstruction c)
visit
in interface AstVisitor<za.ac.sun.cs.green.expr.Expression>
public za.ac.sun.cs.green.expr.Expression visit(ArrayLengthInstruction c)
visit
in interface AstVisitor<za.ac.sun.cs.green.expr.Expression>
public za.ac.sun.cs.green.expr.Expression visit(ThrowInstruction c)
visit
in interface AstVisitor<za.ac.sun.cs.green.expr.Expression>
public za.ac.sun.cs.green.expr.Expression visit(CheckCastInstruction c)
visit
in interface AstVisitor<za.ac.sun.cs.green.expr.Expression>
public za.ac.sun.cs.green.expr.Expression visit(InstanceOfInstruction c)
visit
in interface AstVisitor<za.ac.sun.cs.green.expr.Expression>
public za.ac.sun.cs.green.expr.Expression visit(PhiInstruction c)
visit
in interface AstVisitor<za.ac.sun.cs.green.expr.Expression>
public static DynamicRegion execute(DynamicRegion dynRegion) throws za.ac.sun.cs.green.expr.VisitorException
za.ac.sun.cs.green.expr.VisitorException