|
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 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavafe.ast.ASTNode
javafe.ast.GenericVarDecl
Represents all variable declarations, including field declarations,
local variables and formal arguments.
We 'unroll' field and variable decls,
so "int x,y;" becomes "int x; int y;".
This unrolling can be detected by looking for sequential
VarDecls whose Type fields have the same
starting location.
| Field Summary | |
Identifier |
id
|
int |
locId
|
int |
modifiers
|
ModifierPragmaVec |
pmodifiers
|
Type |
type
|
| Fields inherited from class javafe.ast.ASTNode |
bogusField, dotCounter, dotId |
| Constructor Summary | |
protected |
GenericVarDecl(int modifiers,
ModifierPragmaVec pmodifiers,
Identifier id,
Type type)
|
protected |
GenericVarDecl(int modifiers,
ModifierPragmaVec pmodifiers,
Identifier id,
Type type,
int locId)
|
| Method Summary | |
void |
check()
|
int |
getEndLoc()
|
int |
getModifiers()
|
int |
getStartLoc()
|
void |
setModifiers(int m)
|
| Methods inherited from class javafe.ast.ASTNode |
accept, accept, childAt, childCount, clone, clone, getDecorations, getTag, isInternal, setDecorations, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public int modifiers
public ModifierPragmaVec pmodifiers
public Identifier id
public Type type
public int locId
| Constructor Detail |
protected GenericVarDecl(int modifiers,
ModifierPragmaVec pmodifiers,
Identifier id,
Type type)
protected GenericVarDecl(int modifiers,
ModifierPragmaVec pmodifiers,
Identifier id,
Type type,
int locId)
| Method Detail |
public int getStartLoc()
getStartLoc in class ASTNodepublic int getEndLoc()
getEndLoc in class ASTNodepublic int getModifiers()
public void setModifiers(int m)
public void check()
check in class ASTNode
|
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 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||