|
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.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
VarDecl
s 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 |
decorations |
Constructor Summary | |
protected |
GenericVarDecl()
Construct a raw GenericVarDecl whose class invariant(s) have not yet been established. |
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, 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()
Method Detail |
public int getStartLoc()
getStartLoc
in class ASTNode
public int getEndLoc()
getEndLoc
in class ASTNode
public int getModifiers()
public void setModifiers(int m)
public void check()
check
in class ASTNode
|
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 |