|
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.Name
javafe.ast.SimpleName
| Field Summary | |
Identifier |
id
|
int |
loc
|
| Fields inherited from class javafe.ast.Name |
emptyStringArray |
| Fields inherited from class javafe.ast.ASTNode |
bogusField, dotCounter, dotId |
| Constructor Summary | |
protected |
SimpleName(Identifier id,
int loc)
|
| Method Summary | |
void |
accept(Visitor v)
Accept a visit from v. |
java.lang.Object |
accept(VisitorArgResult v,
java.lang.Object o)
|
void |
check()
|
java.lang.Object |
childAt(int index)
Return the first-but-ith child of a node. |
int |
childCount()
Return the number of children a node has. |
boolean |
equals(java.lang.Object other)
Return true if other is a Name that
is component-wise equal to this. |
int |
getStartLoc()
|
int |
getTag()
Return the tag of a node. |
int |
hashCode()
Return a hash code for this such that two
Names that are equals have the same hash
code. |
Identifier |
identifierAt(int i)
Return the ith identifier of this. |
int |
locDotAfter(int i)
Return the location of the dot after the ith identifier of this. |
int |
locIdAt(int i)
Return the location of the ith identifier of this. |
static SimpleName |
make(Identifier id,
int loc)
|
Name |
prefix(int len)
Return a Name consisting of the first
len identifiers of this. |
java.lang.String |
printName()
Return our printname, which will be of one of the forms X, X.Y, X.Y.Z, ... |
int |
size()
Return the number of identifiers in this. |
java.lang.String |
toString()
Return a string representation of this.
|
java.lang.String[] |
toStrings(int len)
Return the first len identifiers in
this in an array. |
| Methods inherited from class javafe.ast.Name |
getEndLoc, make, make, toStrings |
| Methods inherited from class javafe.ast.ASTNode |
clone, clone, getDecorations, isInternal, setDecorations |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public Identifier id
public int loc
| Constructor Detail |
protected SimpleName(Identifier id,
int loc)
| Method Detail |
public java.lang.String printName()
Name
printName in class Namethis in Java's
syntax.public boolean equals(java.lang.Object other)
Nameother is a Name that
is component-wise equal to this.
equals in class Namepublic Name prefix(int len)
NameName consisting of the first
len identifiers of this. Requires
that len is greater than zero and less than or
equal to the length of this.
prefix in class Namepublic int hashCode()
this such that two
Names that are equals have the same hash
code.
hashCode in class Namepublic java.lang.String[] toStrings(int len)
Namelen identifiers in
this in an array. Requires that len
be between 0 and length of this inclusive.
toStrings in class Namelen identifiers in
this in an array. Requires that len be
between 0 and length of this inclusive.public int size()
this.
size in class Namepublic Identifier identifierAt(int i)
this.
identifierAt in class Namepublic int locIdAt(int i)
this.
locIdAt in class Namepublic int locDotAfter(int i)
this.
locDotAfter in class Namepublic int getStartLoc()
getStartLoc in class ASTNodepublic final int childCount()
ASTNode
childCount in class ASTNodepublic final java.lang.Object childAt(int index)
ASTNode
childAt in class ASTNodepublic final java.lang.String toString()
ASTNodethis.
Meant for debugging use only, not for presentation.
toString in class ASTNodepublic final int getTag()
ASTNode
getTag in class ASTNodepublic final void accept(Visitor v)
ASTNodev. This method simply
calls the method of v corresponding to the
allocated type of this, passing this
as the argument. See the design patterns book.
accept in class ASTNode
public final java.lang.Object accept(VisitorArgResult v,
java.lang.Object o)
accept in class ASTNodepublic void check()
check in class Name
public static SimpleName make(Identifier id,
int loc)
|
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 | ||||||||||