cs132.vapor.ast
Class VInstr.VisitorP<P,E extends Throwable>
java.lang.Object
cs132.vapor.ast.VInstr.VisitorP<P,E>
- Type Parameters:
P
- The type of the extra parameter taken by each visitor function.E
- The exception type that each node is allowed to throw. If you don't want checked
exceptions here, use RuntimeException
.
- Enclosing class:
- VInstr
public abstract static class VInstr.VisitorP<P,E extends Throwable>
- extends Object
Visitor for instruction nodes, where each visitor function takes a parameter.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VInstr.VisitorP
public VInstr.VisitorP()
visit
public abstract void visit(P p,
VAssign a)
throws E extends Throwable
- Throws:
E extends Throwable
visit
public abstract void visit(P p,
VCall c)
throws E extends Throwable
- Throws:
E extends Throwable
visit
public abstract void visit(P p,
VBuiltIn c)
throws E extends Throwable
- Throws:
E extends Throwable
visit
public abstract void visit(P p,
VMemWrite w)
throws E extends Throwable
- Throws:
E extends Throwable
visit
public abstract void visit(P p,
VMemRead r)
throws E extends Throwable
- Throws:
E extends Throwable
visit
public abstract void visit(P p,
VBranch b)
throws E extends Throwable
- Throws:
E extends Throwable
visit
public abstract void visit(P p,
VGoto g)
throws E extends Throwable
- Throws:
E extends Throwable
visit
public abstract void visit(P p,
VReturn r)
throws E extends Throwable
- Throws:
E extends Throwable