coursesolutions
Class CourseCodeGenVisitor

java.lang.Object
  extended by lab7.ReflectiveVisitor
      extended by lab7.NodeVisitor
          extended by coursesolutions.CourseCodeGenVisitor

public class CourseCodeGenVisitor
extends NodeVisitor


Field Summary
 
Fields inherited from class lab7.ReflectiveVisitor
debug
 
Constructor Summary
CourseCodeGenVisitor()
           
 
Method Summary
 void defaultVisit(java.lang.Object o)
          Default visitation if nothing suitable is found
 void visit(AssignIsh a)
           
 void visit(ClassDeclaring c)
          This outputs a standard prelude, with the class extending Object, a dummy method for main(String[] args) that calls main431 Thus, your test file must have a static main431 to kick things off
 void visit(ComputeIsh c)
           
 void visit(ConstantInt ci)
           
 void visit(MethodDeclaring m)
           
 
Methods inherited from class lab7.NodeVisitor
err, err, out, out, setPrintStream
 
Methods inherited from class lab7.ReflectiveVisitor
dispatch, perform, performVisit
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CourseCodeGenVisitor

public CourseCodeGenVisitor()
Method Detail

visit

public void visit(ClassDeclaring c)
This outputs a standard prelude, with the class extending Object, a dummy method for main(String[] args) that calls main431 Thus, your test file must have a static main431 to kick things off


visit

public void visit(AssignIsh a)

visit

public void visit(ConstantInt ci)

visit

public void visit(ComputeIsh c)

visit

public void visit(MethodDeclaring m)

defaultVisit

public void defaultVisit(java.lang.Object o)
Description copied from class: NodeVisitor
Default visitation if nothing suitable is found

Overrides:
defaultVisit in class NodeVisitor