|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objecthw3.ReflectiveVisitor
hw3.NodeVisitor
CodeGenVisitor
| Field Summary |
| Fields inherited from class hw3.NodeVisitor |
level, ps |
| Fields inherited from class hw3.ReflectiveVisitor |
debug |
| Constructor Summary | |
CodeGenVisitor()
|
|
| Method Summary | |
void |
defaultVisit(java.lang.Object o)
Default visitation if nothing suitable is found |
static ReflectiveVisitor |
getCodeGenVisitor()
Change this method to return the visitor you want for code generation. |
static ReflectiveVisitor |
getTypeSetVisitor()
|
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 |
| 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 |
public CodeGenVisitor()
| Method Detail |
public static ReflectiveVisitor getCodeGenVisitor()
public static ReflectiveVisitor getTypeSetVisitor()
public void visit(ClassDeclaring c)
public void defaultVisit(java.lang.Object o)
NodeVisitor
defaultVisit in class NodeVisitor
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||