coursesolutions
Class CourseCodeGenVisitor
java.lang.Object
lab7.ReflectiveVisitor
lab7.NodeVisitor
coursesolutions.CourseCodeGenVisitor
public class CourseCodeGenVisitor
- extends NodeVisitor
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CourseCodeGenVisitor
public CourseCodeGenVisitor()
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