coursesolutions
Class CourseCodeGenVisitor

java.lang.Object
  extended byhw3.ReflectiveVisitor
      extended byhw3.NodeVisitor
          extended bycoursesolutions.CourseCodeGenVisitor

public class CourseCodeGenVisitor
extends NodeVisitor


Field Summary
 
Fields inherited from class hw3.NodeVisitor
level, ps
 
Fields inherited from class hw3.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 hw3.NodeVisitor
err, err, out, out, setPrintStream, visitChildren
 
Methods inherited from class hw3.ReflectiveVisitor
dispatch, getBestMethodFor, perform, performVisit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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