cs132.vapor.ast
Class VInstr.VisitorR<R,E extends Throwable>

java.lang.Object
  extended by 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.


Constructor Summary
VInstr.VisitorR()
           
 
Method Summary
abstract  R visit(VAssign a)
           
abstract  R visit(VBranch b)
           
abstract  R visit(VBuiltIn c)
           
abstract  R visit(VCall c)
           
abstract  R visit(VGoto g)
           
abstract  R visit(VMemRead r)
           
abstract  R visit(VMemWrite w)
           
abstract  R visit(VReturn r)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VInstr.VisitorR

public VInstr.VisitorR()
Method Detail

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