|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--comp.Node
|
+--comp.BlockNode
A sequence of statements.
| Field Summary |
| Fields inherited from class comp.Node |
asm, globalScope, labelCount, strings |
| Constructor Summary | |
(package private) |
BlockNode()
|
| Method Summary | |
void |
add(Node n)
Add a statement to the end of this block. |
void |
addDefs(Scope s)
Add any variable definitions made by this node to the given scope. |
void |
asHTML(java.io.PrintStream out)
Process each of the body statements. |
java.lang.String |
codeGen(Scope scope,
RegBank bank)
Just codeGen each statement I contain. |
java.util.Iterator |
getStatements()
Answer an iterator for the statements. |
java.lang.String |
toString()
|
| Methods inherited from class comp.Node |
addString, getLabel, lvalue, reset, rvalue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
BlockNode()
| Method Detail |
public java.lang.String toString()
toString in class java.lang.Object
public java.lang.String codeGen(Scope scope,
RegBank bank)
codeGen in class Nodepublic void add(Node n)
public java.util.Iterator getStatements()
public void addDefs(Scope s)
Node
addDefs in class Nodepublic void asHTML(java.io.PrintStream out)
asHTML in class Node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||