cs132.vapor.ast
Class VInstr.VisitorR<R,E extends Throwable>
java.lang.Object
cs132.vapor.ast.VInstr.VisitorR<R,E>
- Type Parameters:
R
- The type of the value returned 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.VisitorR<R,E extends Throwable>
- extends Object
Visitor for instruction nodes, where each visitor function returns a value.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VInstr.VisitorR
public VInstr.VisitorR()
visit
public abstract R visit(VAssign a)
throws E extends Throwable
- Throws:
E extends Throwable
visit
public abstract R visit(VCall c)
throws E extends Throwable
- Throws:
E extends Throwable
visit
public abstract R visit(VBuiltIn c)
throws E extends Throwable
- Throws:
E extends Throwable
visit
public abstract R visit(VMemWrite w)
throws E extends Throwable
- Throws:
E extends Throwable
visit
public abstract R visit(VMemRead r)
throws E extends Throwable
- Throws:
E extends Throwable
visit
public abstract R visit(VBranch b)
throws E extends Throwable
- Throws:
E extends Throwable
visit
public abstract R visit(VGoto g)
throws E extends Throwable
- Throws:
E extends Throwable
visit
public abstract R visit(VReturn r)
throws E extends Throwable
- Throws:
E extends Throwable