ESC/Java2
© 2003,2004,2005,2006 David Cok and Joseph Kiniry
© 2005,2006 UCD Dublin
© 2003,2004 Radboud University Nijmegen
© 1999,2000 Compaq Computer Corporation
© 1997,1998,1999 Digital Equipment Corporation
All Rights Reserved

javafe.ast
Class PrimitiveType

java.lang.Object
  extended byjavafe.ast.ASTNode
      extended byjavafe.ast.Type
          extended byjavafe.ast.PrimitiveType
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
EscPrimitiveType, JavafePrimitiveType

public abstract class PrimitiveType
extends Type

Represents a PrimitiveType syntactic unit. Subtypes determing the range of a valid tags

Warning:
This AST node has associated locations only if syntax is true. for backwards compatibility, the PrimitiveType makers make calls to the JavafePrimitiveType

Field Summary
 int loc
           
 int tag
           
 
Fields inherited from class javafe.ast.Type
tmodifiers
 
Fields inherited from class javafe.ast.ASTNode
bogusField, dotCounter, dotId
 
Constructor Summary
protected PrimitiveType()
           
protected PrimitiveType(TypeModifierPragmaVec tmodifiers, int tag, int loc)
           
 
Method Summary
 void check()
           
 int getStartLoc()
           
 int getTag()
          Return the tag of a node.
abstract  boolean isValidTag()
           
 
Methods inherited from class javafe.ast.ASTNode
accept, accept, childAt, childCount, clone, clone, getDecorations, getEndLoc, isInternal, setDecorations, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

tag

public int tag

loc

public int loc
Constructor Detail

PrimitiveType

protected PrimitiveType()

PrimitiveType

protected PrimitiveType(TypeModifierPragmaVec tmodifiers,
                        int tag,
                        int loc)
Method Detail

isValidTag

public abstract boolean isValidTag()

getTag

public final int getTag()
Description copied from class: ASTNode
Return the tag of a node.

Specified by:
getTag in class ASTNode

getStartLoc

public int getStartLoc()
Specified by:
getStartLoc in class ASTNode

check

public void check()
Overrides:
check in class Type

ESC/Java2
© 2003,2004,2005,2006 David Cok and Joseph Kiniry
© 2005,2006 UCD Dublin
© 2003,2004 Radboud University Nijmegen
© 1999,2000 Compaq Computer Corporation
© 1997,1998,1999 Digital Equipment Corporation
All Rights Reserved

The ESC/Java2 Project Homepage