|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--scale.common.Root
|
+--scale.clef.Node
The base class for the Clef representation.
$Id: Node.java,v 1.64 2002/01/03 21:42:34 burrill Exp $
Copyright 2002 by the Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
| Fields inherited from interface scale.common.DisplayNode |
ANNO, CLEF, DD, DEFUSE, DOM, EXPR, MAYUSE, TYPE |
| Constructor Summary | |
Node()
Constructor for a Clef node object. |
|
| Method Summary | |
protected Vector |
createChildren()
Create the list of children for the node - each node that has children must implement this method. |
Vector |
getChildren()
Return a list containing the node's children. |
Type |
getCoreType()
Return the actual Type associated with this Node. |
Declaration |
getDecl()
Retun any Declaration associated with this Node. |
Node |
getParent()
Return the parent in the AST of this node. |
Type |
getType()
Return the Type associated with this Node. |
static void |
setAnnotationLevel(int level)
Set the depth to which a node displays it's annotations. |
void |
setParent(Node n)
Not all nodes have parents in the CLEF AST since it is really a DAG and not a tree structure. |
static void |
setReportLevel(int level)
Set the depth to which a node displays it's children. |
java.lang.String |
toString()
|
java.lang.String |
toString(java.lang.String del1,
java.lang.String del2)
|
java.lang.String |
toStringChildren()
Convert children of this node to a string representation. |
java.lang.String |
toStringSpecial()
Return any special information of a node that is not a child or annotation. |
abstract void |
visit(Predicate p)
The visit() method is used to implement a visit 'pattern'. |
| Methods inherited from class scale.common.Root |
addAnnotation, allAnnotations, allMatchingAnnotations, getAnnotation, getDisplayColorHint, getDisplayName, getDisplayShapeHint, getDisplayString, getDisplayText, getNodeCount, getNodeID, hasAnnotation, hasEqualAnnotation, hashCode, removeAnnotation, removeAnnotations, toStringAnnotations, toStringClass |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Node()
| Method Detail |
public Node getParent()
public void setParent(Node n)
public abstract void visit(Predicate p)
public Type getType()
public Type getCoreType()
getType(),
RefTypepublic Declaration getDecl()
protected Vector createChildren()
public final Vector getChildren()
public final java.lang.String toStringChildren()
public static void setReportLevel(int level)
public static void setAnnotationLevel(int level)
public java.lang.String toString()
toString in class Root
public final java.lang.String toString(java.lang.String del1,
java.lang.String del2)
public java.lang.String toStringSpecial()
RoottoStringSpecial in class Root
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||