|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthw3.ReflectiveVisitor
hw3.NodeVisitor
SymtabVisitor
public class SymtabVisitor
You must implement the visitor and the symbol table
| Field Summary |
|---|
| Fields inherited from class hw3.NodeVisitor |
|---|
level, ps |
| Fields inherited from class hw3.ReflectiveVisitor |
|---|
debug |
| Constructor Summary | |
|---|---|
SymtabVisitor(SymtabInterface sti)
|
|
| Method Summary | |
|---|---|
void |
defaultVisit(java.lang.Object o)
This method will cause the whole AST to be visited, but nothing will happen. |
static ReflectiveVisitor |
getVisitor()
This method lets us keep Main as-is before and after your implementation. |
| 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 SymtabVisitor(SymtabInterface sti)
| Method Detail |
|---|
public static ReflectiveVisitor getVisitor()
public void defaultVisit(java.lang.Object o)
defaultVisit in class NodeVisitor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||