public class IrDocText extends AbstractIrDocElement implements IrDocFragment
IrDocComment.| Constructor and Description |
|---|
IrDocText(String content)
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.
|
boolean |
equals(Object obj) |
String |
getContent()
Returns the contents.
|
IrDocElementKind |
getKind()
Returns the element kind.
|
int |
hashCode() |
void |
setContent(String content)
Sets the contents.
|
String |
toString() |
getLocation, setLocationclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetLocation, setLocationpublic IrDocText(String content)
content - the contentsIllegalArgumentException - if the string contains comment delimiters (/*)public IrDocElementKind getKind()
IrDocElementgetKind in interface IrDocElementpublic String getContent()
public void setContent(String content)
content - the contentsIllegalArgumentException - if the parameter is nullIllegalArgumentException - if the string contains comment delimiters (/*)public <R,P> R accept(IrDocElementVisitor<R,P> visitor, P context)
IrDocElementaccept in interface 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.