avrora.core.isdl.ast
Class CodeRebuilder.DepthFirst
java.lang.Object
avrora.core.isdl.ast.CodeRebuilder.DepthFirst
- All Implemented Interfaces:
- CodeRebuilder
- Direct Known Subclasses:
- StmtRebuilder.DepthFirst
- Enclosing class:
- CodeRebuilder
- public static class CodeRebuilder.DepthFirst
- extends java.lang.Object
- implements CodeRebuilder
The DepthFirst
class is a base implementation of the CodeVisitor
interface
that visits the tree in depth-first order.
Method Summary |
Expr |
visit(Arith.AddExpr e,
java.lang.Object env)
|
Expr |
visit(Arith.AndExpr e,
java.lang.Object env)
|
Expr |
visit(Arith.CompExpr e,
java.lang.Object env)
|
Expr |
visit(Arith.DivExpr e,
java.lang.Object env)
|
Expr |
visit(Arith.MulExpr e,
java.lang.Object env)
|
Expr |
visit(Arith.NegExpr e,
java.lang.Object env)
|
Expr |
visit(Arith.OrExpr e,
java.lang.Object env)
|
Expr |
visit(Arith.ShiftLeftExpr e,
java.lang.Object env)
|
Expr |
visit(Arith.ShiftRightExpr e,
java.lang.Object env)
|
Expr |
visit(Arith.SubExpr e,
java.lang.Object env)
|
Expr |
visit(Arith.XorExpr e,
java.lang.Object env)
|
Expr |
visit(BitExpr e,
java.lang.Object env)
|
Expr |
visit(BitRangeExpr e,
java.lang.Object env)
|
Expr |
visit(CallExpr e,
java.lang.Object env)
|
Expr |
visit(ConversionExpr e,
java.lang.Object env)
|
Expr |
visit(Literal.BoolExpr e,
java.lang.Object env)
|
Expr |
visit(Literal.IntExpr e,
java.lang.Object env)
|
Expr |
visit(Logical.AndExpr e,
java.lang.Object env)
|
Expr |
visit(Logical.EquExpr e,
java.lang.Object env)
|
Expr |
visit(Logical.GreaterEquExpr e,
java.lang.Object env)
|
Expr |
visit(Logical.GreaterExpr e,
java.lang.Object env)
|
Expr |
visit(Logical.LessEquExpr e,
java.lang.Object env)
|
Expr |
visit(Logical.LessExpr e,
java.lang.Object env)
|
Expr |
visit(Logical.NequExpr e,
java.lang.Object env)
|
Expr |
visit(Logical.NotExpr e,
java.lang.Object env)
|
Expr |
visit(Logical.OrExpr e,
java.lang.Object env)
|
Expr |
visit(Logical.XorExpr e,
java.lang.Object env)
|
Expr |
visit(MapExpr e,
java.lang.Object env)
|
Expr |
visit(VarExpr e,
java.lang.Object env)
|
java.util.List |
visitExprList(java.util.List l,
java.lang.Object env)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CodeRebuilder.DepthFirst
public CodeRebuilder.DepthFirst()
visit
public Expr visit(Arith.AddExpr e,
java.lang.Object env)
- Specified by:
visit
in interface CodeRebuilder
visit
public Expr visit(Arith.AndExpr e,
java.lang.Object env)
- Specified by:
visit
in interface CodeRebuilder
visit
public Expr visit(Arith.CompExpr e,
java.lang.Object env)
- Specified by:
visit
in interface CodeRebuilder
visit
public Expr visit(Arith.DivExpr e,
java.lang.Object env)
- Specified by:
visit
in interface CodeRebuilder
visit
public Expr visit(Arith.MulExpr e,
java.lang.Object env)
- Specified by:
visit
in interface CodeRebuilder
visit
public Expr visit(Arith.NegExpr e,
java.lang.Object env)
- Specified by:
visit
in interface CodeRebuilder
visit
public Expr visit(Arith.OrExpr e,
java.lang.Object env)
- Specified by:
visit
in interface CodeRebuilder
visit
public Expr visit(Arith.ShiftLeftExpr e,
java.lang.Object env)
- Specified by:
visit
in interface CodeRebuilder
visit
public Expr visit(Arith.ShiftRightExpr e,
java.lang.Object env)
- Specified by:
visit
in interface CodeRebuilder
visit
public Expr visit(Arith.SubExpr e,
java.lang.Object env)
- Specified by:
visit
in interface CodeRebuilder
visit
public Expr visit(Arith.XorExpr e,
java.lang.Object env)
- Specified by:
visit
in interface CodeRebuilder
visit
public Expr visit(BitExpr e,
java.lang.Object env)
- Specified by:
visit
in interface CodeRebuilder
visit
public Expr visit(BitRangeExpr e,
java.lang.Object env)
- Specified by:
visit
in interface CodeRebuilder
visitExprList
public java.util.List visitExprList(java.util.List l,
java.lang.Object env)
visit
public Expr visit(CallExpr e,
java.lang.Object env)
- Specified by:
visit
in interface CodeRebuilder
visit
public Expr visit(ConversionExpr e,
java.lang.Object env)
- Specified by:
visit
in interface CodeRebuilder
visit
public Expr visit(Literal.BoolExpr e,
java.lang.Object env)
- Specified by:
visit
in interface CodeRebuilder
visit
public Expr visit(Literal.IntExpr e,
java.lang.Object env)
- Specified by:
visit
in interface CodeRebuilder
visit
public Expr visit(Logical.AndExpr e,
java.lang.Object env)
- Specified by:
visit
in interface CodeRebuilder
visit
public Expr visit(Logical.EquExpr e,
java.lang.Object env)
- Specified by:
visit
in interface CodeRebuilder
visit
public Expr visit(Logical.GreaterEquExpr e,
java.lang.Object env)
- Specified by:
visit
in interface CodeRebuilder
visit
public Expr visit(Logical.GreaterExpr e,
java.lang.Object env)
- Specified by:
visit
in interface CodeRebuilder
visit
public Expr visit(Logical.LessEquExpr e,
java.lang.Object env)
- Specified by:
visit
in interface CodeRebuilder
visit
public Expr visit(Logical.LessExpr e,
java.lang.Object env)
- Specified by:
visit
in interface CodeRebuilder
visit
public Expr visit(Logical.NequExpr e,
java.lang.Object env)
- Specified by:
visit
in interface CodeRebuilder
visit
public Expr visit(Logical.NotExpr e,
java.lang.Object env)
- Specified by:
visit
in interface CodeRebuilder
visit
public Expr visit(Logical.OrExpr e,
java.lang.Object env)
- Specified by:
visit
in interface CodeRebuilder
visit
public Expr visit(Logical.XorExpr e,
java.lang.Object env)
- Specified by:
visit
in interface CodeRebuilder
visit
public Expr visit(MapExpr e,
java.lang.Object env)
- Specified by:
visit
in interface CodeRebuilder
visit
public Expr visit(VarExpr e,
java.lang.Object env)
- Specified by:
visit
in interface CodeRebuilder