public class SimplifyStmtVisitor extends FixedPointAstMapVisitor
| Modifier and Type | Field and Description |
|---|---|
DynamicTable<za.ac.sun.cs.green.expr.Expression> |
constantsTable |
private DynamicRegion |
dynRegion |
ExprVisitorAdapter<za.ac.sun.cs.green.expr.Expression> |
eva |
firstException, instantiatedRegion, somethingChangedexprVisitor| Constructor and Description |
|---|
SimplifyStmtVisitor(DynamicRegion dynRegion,
DynamicTable<za.ac.sun.cs.green.expr.Expression> constantsTable) |
| Modifier and Type | Method and Description |
|---|---|
static SimplifyStmtVisitor |
create(DynamicRegion dynRegion) |
DynamicRegion |
execute() |
java.lang.IllegalArgumentException |
getExprException() |
boolean |
getSomethingChanged() |
static DynamicTable<za.ac.sun.cs.green.expr.Expression> |
makeConstantsTableUnique(DynamicTable<za.ac.sun.cs.green.expr.Expression> constantsTable,
int uniqueNum) |
Stmt |
visit(AssignmentStmt a) |
Stmt |
visit(CheckCastInstruction c) |
Stmt |
visit(IfThenElseStmt c) |
getChange, getFirstExceptionvisit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitpublic ExprVisitorAdapter<za.ac.sun.cs.green.expr.Expression> eva
public DynamicTable<za.ac.sun.cs.green.expr.Expression> constantsTable
private DynamicRegion dynRegion
public SimplifyStmtVisitor(DynamicRegion dynRegion, DynamicTable<za.ac.sun.cs.green.expr.Expression> constantsTable)
public boolean getSomethingChanged()
public java.lang.IllegalArgumentException getExprException()
public Stmt visit(AssignmentStmt a)
visit in interface AstVisitor<Stmt>visit in class AstMapVisitorpublic Stmt visit(IfThenElseStmt c)
visit in interface AstVisitor<Stmt>visit in class AstMapVisitorpublic Stmt visit(CheckCastInstruction c)
visit in interface AstVisitor<Stmt>visit in class AstMapVisitorpublic static DynamicTable<za.ac.sun.cs.green.expr.Expression> makeConstantsTableUnique(DynamicTable<za.ac.sun.cs.green.expr.Expression> constantsTable, int uniqueNum) throws StaticRegionException
StaticRegionExceptionpublic static SimplifyStmtVisitor create(DynamicRegion dynRegion)
public DynamicRegion execute()
execute in class FixedPointAstMapVisitor