public class AstSimpleName extends AbstractAstNode implements AstName
AstNode.AbstractVisitor<C,R>, AstNode.Visitor<C,R>
Modifier and Type | Field and Description |
---|---|
String |
identifier
The identifier of this name.
|
Constructor and Description |
---|
AstSimpleName(Region region,
String identifier)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
<C,R> R |
accept(C context,
AstNode.Visitor<C,R> visitor)
Accepts and calls back the visitor.
|
boolean |
equals(Object obj) |
AstName |
getQualifier()
Returns the qualifier of this name.
|
Region |
getRegion()
Returns the region of this node.
|
AstSimpleName |
getSimpleName()
Returns the simple name of this name.
|
List<String> |
getWordList()
Returns the words in this name.
|
int |
hashCode() |
String |
toString() |
public final String identifier
public AstSimpleName(Region region, String identifier)
region
- the region of this node, or null
if unknownidentifier
- the identifier of this nameIllegalArgumentException
- if some parameters were null
public Region getRegion()
AstNode
public AstName getQualifier()
AstName
getQualifier
in interface AstName
null
if this represents a simple namepublic AstSimpleName getSimpleName()
AstName
getSimpleName
in interface AstName
public <C,R> R accept(C context, AstNode.Visitor<C,R> visitor)
AstNode
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.