|
|||||||||
| 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
|
+--scale.clef.type.SuperType
This class represents a base class in the definition of a class.
$Id: SuperType.java,v 1.32 2002/01/03 21:44:14 burrill Exp $
Copyright 2002 by the Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
NOTE: Despite the name of this class, it is not a type node!
| Fields inherited from interface scale.common.DisplayNode |
ANNO, CLEF, DD, DEFUSE, DOM, EXPR, MAYUSE, TYPE |
| Constructor Summary | |
SuperType(Declaration d,
int a,
boolean isVirtual)
|
|
| Method Summary | |
int |
accessibility()
Return the declaration accessibility. |
Declaration |
getDecl()
Retun any Declaration associated with this Node. |
Node |
getParent()
Return my parent in the Clef tree if any. |
boolean |
isVirtual()
Return the field isVirtual which indicates if the base class has been declared virtual (virtual means that a single subobject of the virtual base class is shared by every base class that specifies the base class to be virtual. |
void |
setAccessibility(int accessibility)
Specify the accessibility of the declaration. |
protected void |
setClass(Declaration d)
|
void |
setParent(Node p)
Not all nodes have parents in the CLEF AST since it is really a DAG and not a tree structure. |
java.lang.String |
toStringSpecial()
Return any special information of a node that is not a child or annotation. |
void |
visit(Predicate p)
The visit() method is used to implement a visit 'pattern'. |
| Methods inherited from class scale.clef.Node |
createChildren, getChildren, getCoreType, getType, setAnnotationLevel, setReportLevel, toString, toString, toStringChildren |
| 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 SuperType(Declaration d,
int a,
boolean isVirtual)
| Method Detail |
public void setAccessibility(int accessibility)
accessibility - is the accessibility of the declarationDeclaration.cPublic,
Declaration.cProtected,
Declaration.cPrivatepublic int accessibility()
Declaration.cPublic,
Declaration.cProtected,
Declaration.cPrivatepublic final Node getParent()
getParent in class Nodescale.clef.Nodepublic void setParent(Node p)
NodesetParent in class Nodep - my parent in the Clef treepublic final Declaration getDecl()
NodegetDecl in class Nodepublic final boolean isVirtual()
public java.lang.String toStringSpecial()
RoottoStringSpecial in class Nodepublic void visit(Predicate p)
Nodevisit in class Nodeprotected final void setClass(Declaration d)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||