public final class IrDocSimpleName extends IrDocName
IrDocComment
.Constructor and Description |
---|
IrDocSimpleName(String identifier)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
<R,P> R |
accept(IrDocElementVisitor<R,P> visitor,
P context)
Accepts and calls back the visitor.
|
List<IrDocSimpleName> |
asSimpleNameList()
Returns this name as its simple name list.
|
String |
asString()
Returns this name as string.
|
boolean |
equals(Object obj) |
String |
getIdentifier()
Returns the identifier.
|
IrDocElementKind |
getKind()
Returns the element kind.
|
int |
hashCode() |
void |
setIdentifier(String identifier)
Sets the identifier.
|
String |
toString() |
getLocation, setLocation
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getLocation, setLocation
public IrDocSimpleName(String identifier)
identifier
- the identifierIllegalArgumentException
- if the parameter is null
IllegalArgumentException
- if the string is not suitable for Java identifierspublic IrDocElementKind getKind()
IrDocElement
public String getIdentifier()
public void setIdentifier(String identifier)
identifier
- the identifierIllegalArgumentException
- if the parameter is null
IllegalArgumentException
- if the string is not suitable for Java identifierspublic String asString()
IrDocName
public List<IrDocSimpleName> asSimpleNameList()
IrDocName
asSimpleNameList
in class IrDocName
public <R,P> R accept(IrDocElementVisitor<R,P> visitor, P context)
IrDocElement
R
- type of visitor resultP
- type of visitor contextvisitor
- the visitor to call backcontext
- the visitor contextCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.