public class AstIterVisitor<T> extends ExprMapVisitor implements AstVisitor<T>
Modifier and Type | Field and Description |
---|---|
protected java.util.function.BinaryOperator<T> |
combine |
protected T |
defaultVal |
protected ExprVisitorAdapter<T> |
eva |
protected ExprVisitor<T> |
exprVisitor |
Constructor and Description |
---|
AstIterVisitor(ExprVisitor<T> exprVisitor,
java.util.function.BinaryOperator<T> combine,
T defaultVal) |
Modifier and Type | Method and Description |
---|---|
T |
visit(ArrayLengthInstruction c) |
T |
visit(ArrayLoadInstruction c) |
T |
visit(ArrayStoreInstruction c) |
T |
visit(AssignmentStmt a) |
T |
visit(CheckCastInstruction c) |
T |
visit(CompositionStmt a) |
T |
visit(GetInstruction c) |
T |
visit(IfThenElseStmt a) |
T |
visit(InstanceOfInstruction c) |
T |
visit(InvokeInstruction c) |
T |
visit(NewInstruction c) |
T |
visit(PhiInstruction c) |
T |
visit(PutInstruction c) |
T |
visit(ReturnInstruction c) |
T |
visit(SkipStmt a) |
T |
visit(SPFCaseStmt c) |
T |
visit(SwitchInstruction c) |
T |
visit(ThrowInstruction c) |
protected final ExprVisitor<T> exprVisitor
protected final java.util.function.BinaryOperator<T> combine
protected final T defaultVal
protected final ExprVisitorAdapter<T> eva
public AstIterVisitor(ExprVisitor<T> exprVisitor, java.util.function.BinaryOperator<T> combine, T defaultVal)
public T visit(AssignmentStmt a)
visit
in interface AstVisitor<T>
public T visit(CompositionStmt a)
visit
in interface AstVisitor<T>
public T visit(IfThenElseStmt a)
visit
in interface AstVisitor<T>
public T visit(SkipStmt a)
visit
in interface AstVisitor<T>
public T visit(SPFCaseStmt c)
visit
in interface AstVisitor<T>
public T visit(ArrayLoadInstruction c)
visit
in interface AstVisitor<T>
public T visit(ArrayStoreInstruction c)
visit
in interface AstVisitor<T>
public T visit(SwitchInstruction c)
visit
in interface AstVisitor<T>
public T visit(ReturnInstruction c)
visit
in interface AstVisitor<T>
public T visit(GetInstruction c)
visit
in interface AstVisitor<T>
public T visit(PutInstruction c)
visit
in interface AstVisitor<T>
public T visit(NewInstruction c)
visit
in interface AstVisitor<T>
public T visit(InvokeInstruction c)
visit
in interface AstVisitor<T>
public T visit(ArrayLengthInstruction c)
visit
in interface AstVisitor<T>
public T visit(ThrowInstruction c)
visit
in interface AstVisitor<T>
public T visit(CheckCastInstruction c)
visit
in interface AstVisitor<T>
public T visit(InstanceOfInstruction c)
visit
in interface AstVisitor<T>
public T visit(PhiInstruction c)
visit
in interface AstVisitor<T>