public class IrDocBlock extends AbstractIrDocElement implements IrDocFragment
IrDocComment
.Constructor and Description |
---|
IrDocBlock()
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) |
List<? extends IrDocFragment> |
getFragments()
Returns the element fragments.
|
IrDocElementKind |
getKind()
Returns the element kind.
|
String |
getTag()
Returns the block tag.
|
int |
hashCode() |
void |
setFragments(List<? extends IrDocFragment> fragments)
Sets the element fragments.
|
void |
setTag(String tag)
Sets the block tag.
|
String |
toString() |
getLocation, setLocation
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getLocation, setLocation
public IrDocElementKind getKind()
IrDocElement
getKind
in interface IrDocElement
public String getTag()
@
.@
), or null
if this block has no tagspublic void setTag(String tag)
tag
- the tag name (it may or may not start with @
),
or null
if this block has no tagspublic List<? extends IrDocFragment> getFragments()
public void setFragments(List<? extends IrDocFragment> fragments)
fragments
- the element fragmentsIllegalArgumentException
- if the parameter is null
public <R,P> R accept(IrDocElementVisitor<R,P> visitor, P context)
IrDocElement
accept
in interface 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.