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, setLocationclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetLocation, setLocationpublic IrDocSimpleName(String identifier)
identifier - the identifierIllegalArgumentException - if the parameter is nullIllegalArgumentException - if the string is not suitable for Java identifierspublic IrDocElementKind getKind()
IrDocElementpublic String getIdentifier()
public void setIdentifier(String identifier)
identifier - the identifierIllegalArgumentException - if the parameter is nullIllegalArgumentException - if the string is not suitable for Java identifierspublic String asString()
IrDocNamepublic List<IrDocSimpleName> asSimpleNameList()
IrDocNameasSimpleNameList in class IrDocNamepublic <R,P> R accept(IrDocElementVisitor<R,P> visitor, P context)
IrDocElementR - type of visitor resultP - type of visitor contextvisitor - the visitor to call backcontext - the visitor contextCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.