|
CS 536 Fall 2007, Project 5 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectASTNode
public abstract class ASTNode
A node in an Abstract Syntax Tree for ada536.
Nested Class Summary | |
---|---|
(package private) static class |
ASTNode.Opcode
Operator codes. |
Constructor Summary | |
---|---|
ASTNode()
|
Method Summary | |
---|---|
protected void |
indent(PrintWriter p,
int level)
A handy utility for generating a newline followed by the indentation for the next line. |
abstract void |
resolveNames(SymbolTable symtab)
Resolves all applied uses of identifiers in the tree rooted at this node. |
abstract void |
resolveTypes(ProcDeclNode proc)
Fills in types for all Symbols bound to IdNodes. |
String |
toString()
Produces a string representation of this node, for debugging. |
abstract void |
unparse(PrintWriter p,
int level)
Prints a source representation of the tree rooted at this node on output stream p. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ASTNode()
Method Detail |
---|
public abstract void unparse(PrintWriter p, int level)
p
- the place to display the output.level
- the number of levels of indentation to use if the output
requires more than one line.public abstract void resolveNames(SymbolTable symtab)
symtab
- the symbol table to be used.public abstract void resolveTypes(ProcDeclNode proc)
proc
- the smallest enclosing procedure or function declaration.public String toString()
toString
in class Object
protected void indent(PrintWriter p, int level)
p
- the place to display the output.level
- the number of levels to indent.
|
CS 536 Fall 2007, Project 5 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |