|
ESC/Java2 © 2003,2004,2005 David Cok and Joseph Kiniry © 2005 UCD Dublin © 2003,2004 Radboud University Nijmegen © 1999,2000 Compaq Computer Corporation © 1997,1998,1999 Digital Equipment Corporation All Rights Reserved |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavafe.parser.ParseUtil
javafe.parser.ParseType
Parses Java types.
Extended by ParseExpr
.
ASTNode
,
ParseUtil
,
ParseExpr
Field Summary | |
private int[] |
nameDotLocs
|
private int[] |
nameIdLocs
The following private ivars are used in parseName. |
protected StackVector |
seqIdentifier
|
Fields inherited from class javafe.parser.ParseUtil |
modifierKeywords, modifierPragmas, seqModifierPragma |
Constructor Summary | |
ParseType()
|
Method Summary | |
boolean |
isPrimitiveKeywordTag(int tag)
|
Type |
parseBracketPairs(Lex l,
Type type)
Parse square bracket pairs. |
Identifier |
parseIdentifier(Lex l)
Parse an Identifier . |
Name |
parseName(Lex l)
Parse a Name .
|
PrimitiveType |
parsePrimitiveType(Lex l)
Parses a PrimitiveType . |
Type |
parsePrimitiveTypeOrTypeName(Lex l)
Parse a type, either a primitive type, a type name, but not an array type. |
Type |
parseType(Lex l)
Parse a Type , either a primitive type, a type name, or
an array type.
|
TypeModifierPragmaVec |
parseTypeModifierPragmas(Lex l)
|
TypeName |
parseTypeName(Lex l)
Parse a TypeName .
|
Methods inherited from class javafe.parser.ParseUtil |
arrayToString, error, expect, fail, getJavaModifier, isJavaModifier, operatorTokenToTag, parseModifierPragmas, parseModifiers, parseMoreModifierPragmas |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final StackVector seqIdentifier
private int[] nameIdLocs
private int[] nameDotLocs
Constructor Detail |
public ParseType()
Method Detail |
public Identifier parseIdentifier(Lex l)
Identifier
.
public Name parseName(Lex l)
Name
.
Name: Identifier ( . Identifier ) *
public TypeName parseTypeName(Lex l)
TypeName
.
TypeName: Name [TypeModifierPragmas]
public Type parseBracketPairs(Lex l, Type type)
type
in
ArrayType
objects accordingly.
BracketPairs: (LSQBRACKET RSQBRACKET)*
Warning: when this method sees "{'[' ']'}* {'[' not-']'}", it returns with "l" pointing to the '[' just before the not-']'.
public TypeModifierPragmaVec parseTypeModifierPragmas(Lex l)
public boolean isPrimitiveKeywordTag(int tag)
PrimitiveType
keyword?public PrimitiveType parsePrimitiveType(Lex l)
PrimitiveType
. Returns null
on
failure.
PrimitiveType: one of boolean byte short int long char float double void
public Type parsePrimitiveTypeOrTypeName(Lex l)
PrimitiveTypeOrTypeName: PrimitiveType TypeName
public Type parseType(Lex l)
Type
, either a primitive type, a type name, or
an array type.
Type: PrimitiveTypeOrTypeName BracketPairs
|
ESC/Java2 © 2003,2004,2005 David Cok and Joseph Kiniry © 2005 UCD Dublin © 2003,2004 Radboud University Nijmegen © 1999,2000 Compaq Computer Corporation © 1997,1998,1999 Digital Equipment Corporation All Rights Reserved |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |