|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectTreeNode
Class_
class_
CgenNode
| Field Summary | |
(package private) static int |
Basic
Indicates a basic class |
private int |
basic_status
Does this node correspond to a basic class? |
private java.util.Vector |
children
The children of this node in the inheritance tree |
Features |
features
|
AbstractSymbol |
filename
|
protected int |
lineNumber
line in the source file from which this node came. |
AbstractSymbol |
name
|
(package private) static int |
NotBasic
Indicates a class that came from a Cool program |
private CgenNode |
parent
The parent of this node in the inheritance tree |
| Constructor Summary | |
(package private) |
CgenNode(Class_ c,
int basic_status,
CgenClassTable table)
Constructs a new CgenNode to represent class "c". |
| Method Summary | |
(package private) void |
addChild(CgenNode child)
|
(package private) boolean |
basic()
Returns true is this is a basic class. |
protected AbstractSymbol |
copy_AbstractSymbol(AbstractSymbol sym)
Copies an AbstractSymbol value. |
protected java.lang.Boolean |
copy_Boolean(java.lang.Boolean b)
Copies a boolean value. |
TreeNode |
copy()
Creates a copy of this node. |
protected void |
dump_AbstractSymbol(java.io.PrintStream out,
int n,
AbstractSymbol sym)
Dumps a printable representation of an AbstactSymbol value. |
protected void |
dump_Boolean(java.io.PrintStream out,
int n,
java.lang.Boolean b)
Dumps a printable representation of a boolean value. |
protected void |
dump_line(java.io.PrintStream out,
int n)
Dumps a printable representation of current line number This method is used internally by the generated AST classes |
void |
dump_with_types(java.io.PrintStream out,
int n)
|
void |
dump(java.io.PrintStream out,
int n)
Pretty-prints this node to this output stream. |
(package private) java.util.Enumeration |
getChildren()
Gets the children of this class |
Features |
getFeatures()
|
AbstractSymbol |
getFilename()
|
int |
getLineNumber()
Retreives the line number from which this node came. |
AbstractSymbol |
getName()
|
AbstractSymbol |
getParent()
|
(package private) CgenNode |
getParentNd()
Gets the parent of this class |
TreeNode |
set(TreeNode other)
Sets the values of this node object to the values of a given node. |
(package private) void |
setParentNd(CgenNode parent)
Sets the parent of this class. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private CgenNode parent
private java.util.Vector children
static final int Basic
static final int NotBasic
private int basic_status
public AbstractSymbol name
public Features features
public AbstractSymbol filename
protected int lineNumber
| Constructor Detail |
CgenNode(Class_ c,
int basic_status,
CgenClassTable table)
c - the classbasic_status - is this class basic or nottable - the class table| Method Detail |
void addChild(CgenNode child)
java.util.Enumeration getChildren()
void setParentNd(CgenNode parent)
parent - the parentCgenNode getParentNd()
boolean basic()
public TreeNode copy()
TreeNode
copy in class TreeNode
public void dump(java.io.PrintStream out,
int n)
TreeNode
dump in class TreeNodeout - the output streamn - the number of spaces to indent the output
public void dump_with_types(java.io.PrintStream out,
int n)
dump_with_types in class Class_public AbstractSymbol getName()
getName in class Class_public AbstractSymbol getParent()
getParent in class Class_public AbstractSymbol getFilename()
getFilename in class Class_public Features getFeatures()
getFeatures in class Class_public TreeNode set(TreeNode other)
other - the other node
public int getLineNumber()
protected java.lang.Boolean copy_Boolean(java.lang.Boolean b)
protected AbstractSymbol copy_AbstractSymbol(AbstractSymbol sym)
protected void dump_Boolean(java.io.PrintStream out,
int n,
java.lang.Boolean b)
protected void dump_AbstractSymbol(java.io.PrintStream out,
int n,
AbstractSymbol sym)
protected void dump_line(java.io.PrintStream out,
int n)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||