Modifier and Type | Field and Description |
---|---|
Identifier[] |
idents |
Modifier and Type | Method and Description |
---|---|
void |
accept(ASTVisitor visitor)
Accept visitor for a visit.
|
void |
accept(ASTVisitorOld visitor)
Accept visitor for a visit.
|
void |
acceptChildren(ASTVisitor visitor)
Accept visitor for a visit.
|
static Name |
construct(Identifier ident)
Construct name.
|
static Name |
construct(Identifier[] idents)
Construct name.
|
static Name |
construct(Name prefix,
Identifier ident)
Construct name.
|
static Name |
construct(java.util.Vector<Identifier> idents)
Construct name.
|
boolean |
equals(Name name)
Compare names for equality.
|
Identifier |
getBase()
Get the base identifier of the name.
|
int |
getLength()
Get the length of the name.
|
Name |
getPostfix()
Get the postfix of the name.
|
Name |
getPrefix()
Get the prefix of the name.
|
Name |
getPrefix(int n)
Get prefix of first n identifiers of name.
|
Symbol |
getSymbol()
Get symbol identified by (last part of) name.
|
public final Identifier[] idents
public static Name construct(Name prefix, Identifier ident)
prefix
- the prefix of the name.ident
- the base identifier of the name.public static Name construct(java.util.Vector<Identifier> idents)
idents
- the sequence of identifiers of which the name is composed.public static Name construct(Identifier ident)
ident
- a single identifier making up the namepublic static Name construct(Identifier[] idents)
idents
- the sequence of identifiers of which the name is composed.public int getLength()
public Identifier getBase()
public Name getPrefix()
public Name getPostfix()
public Name getPrefix(int n)
n
- the number of identifiers.public void accept(ASTVisitorOld visitor)
public void accept(ASTVisitor visitor)
public void acceptChildren(ASTVisitor visitor)
acceptChildren
in interface AST
acceptChildren
in class ASTBase
visitor
- the visitor who is accepted by this node.public boolean equals(Name name)
name
- the name with which this name is compared.public Symbol getSymbol()