|
|||||||||
| 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.Type
|
+--scale.clef.type.VoidType
This class represents the void type in C and is used to represent the absence of a type.
$Id: VoidType.java,v 1.27 2002/01/03 21:44:15 burrill Exp $
Copyright 2002 by the Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
| Field Summary | |
static VoidType |
type
There is only one void type. |
| Fields inherited from interface scale.common.DisplayNode |
ANNO, CLEF, DD, DEFUSE, DOM, EXPR, MAYUSE, TYPE |
| Method Summary | |
int |
alignment(Machine machine)
Calculate the alignment needed for this data type. |
boolean |
equivalent(Type t)
Return true because all void types are equivalent. |
protected void |
finalize()
Keep the count of instances up-to-date. |
boolean |
isVoidType()
Return true if type represents no type. |
int |
memorySize(Machine machine)
Calculate how many addressable memory units are needed to represent the type. |
static int |
number()
Return the current number of instances of this class. |
java.lang.String |
toString()
|
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.type.Type |
getCompleteType, getCoreType, getDisplayColorHint, getDisplayShapeHint, getDisplayText, getPointedTo, getTag, getType, isAddressType, isAggregateType, isArrayType, isAtomicType, isAttributeSet, isComplexType, isCompositeType, isConst, isIntegerType, isNamedType, isNumericType, isPointerType, isRealType, isSigned, isVolatile, nextVisit, setTag, setVisited, toStringShort, visited |
| Methods inherited from class scale.clef.Node |
createChildren, getChildren, getDecl, getParent, setAnnotationLevel, setParent, setReportLevel, toString, toStringChildren |
| Methods inherited from class scale.common.Root |
addAnnotation, allAnnotations, allMatchingAnnotations, getAnnotation, getDisplayName, getDisplayString, getNodeCount, getNodeID, hasAnnotation, hasEqualAnnotation, hashCode, removeAnnotation, removeAnnotations, toStringAnnotations, toStringClass |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final VoidType type
| Method Detail |
protected void finalize()
throws java.lang.Throwable
finalize in class Typejava.lang.Throwable - [needs description]public static int number()
public boolean isVoidType()
isVoidType in class Typepublic java.lang.String toString()
toString in class Typepublic java.lang.String toStringSpecial()
RoottoStringSpecial in class Nodepublic void visit(Predicate p)
Nodevisit in class Typepublic boolean equivalent(Type t)
equivalent in class Typepublic int memorySize(Machine machine)
memorySize in class Typemachine - is the machine-specific data machinepublic int alignment(Machine machine)
alignment in class Type
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||