public class AstDescription extends AbstractAstNode
AstNode.AbstractVisitor<C,R>, AstNode.Visitor<C,R>
Modifier and Type | Field and Description |
---|---|
String |
token
The original token of this description.
|
Constructor and Description |
---|
AstDescription(Region region,
String token)
Creates and returns 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) |
Region |
getRegion()
Returns the region of this node.
|
String |
getText()
Returns the string value of this description.
|
int |
hashCode() |
public final String token
public AstDescription(Region region, String token)
region
- the region of this node on the enclosing script, or null
if unknowntoken
- the token that represents this descriptionIllegalArgumentException
- if some parameters were null
public Region getRegion()
AstNode
null
if unknownpublic String getText()
IllegalStateException
- if this is not a quated stringpublic <C,R> R accept(C context, AstNode.Visitor<C,R> visitor)
AstNode
C
- type of visitor contextR
- type of visitor resultcontext
- the visitor contextvisitor
- the visitor to call backCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.