public class SpfToGreenVisitor 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 |
Constructor and Description |
---|
SpfToGreenVisitor() |
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.
|
private za.ac.sun.cs.green.expr.Expression |
earlyReturnToGreen(za.ac.sun.cs.green.expr.Expression earlyReturnExp,
DynamicRegion dynRegion) |
DynamicRegion |
execute(DynamicRegion dynRegion) |
private static SPFCaseStmt |
noVars(SPFCaseStmt spfCaseStmt,
DynamicRegion dynRegion) |
private static za.ac.sun.cs.green.expr.Expression |
toGreenSinglePredicate(SPFCaseList greenSPFCaseList) |
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) |
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 DynamicRegion execute(DynamicRegion dynRegion)
private za.ac.sun.cs.green.expr.Expression earlyReturnToGreen(za.ac.sun.cs.green.expr.Expression earlyReturnExp, DynamicRegion dynRegion)
private static za.ac.sun.cs.green.expr.Expression toGreenSinglePredicate(SPFCaseList greenSPFCaseList)
private static SPFCaseStmt noVars(SPFCaseStmt spfCaseStmt, DynamicRegion dynRegion)