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, somethingChanged
exprVisitor
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, getFirstException
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
public 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 AstMapVisitor
public Stmt visit(IfThenElseStmt c)
visit
in interface AstVisitor<Stmt>
visit
in class AstMapVisitor
public Stmt visit(CheckCastInstruction c)
visit
in interface AstVisitor<Stmt>
visit
in class AstMapVisitor
public static DynamicTable<za.ac.sun.cs.green.expr.Expression> makeConstantsTableUnique(DynamicTable<za.ac.sun.cs.green.expr.Expression> constantsTable, int uniqueNum) throws StaticRegionException
StaticRegionException
public static SimplifyStmtVisitor create(DynamicRegion dynRegion)
public DynamicRegion execute()
execute
in class FixedPointAstMapVisitor