public interface AstNode
Modifier and Type | Interface and Description |
---|---|
static class |
AstNode.AbstractVisitor<C,R>
Default implementation of
AstNode.Visitor ,
which all declared methods returns just null . |
static interface |
AstNode.Visitor<C,R>
Visitor of
AstNode . |
Modifier and Type | Method and Description |
---|---|
<C,R> R |
accept(C context,
AstNode.Visitor<C,R> visitor)
Accepts and calls back the visitor.
|
Region |
getRegion()
Returns the region of this node.
|
Region getRegion()
null
if unknown<C,R> R accept(C context, AstNode.Visitor<C,R> visitor)
C
- type of visitor contextR
- type of visitor resultcontext
- the visitor contextvisitor
- the visitor to call backIllegalArgumentException
- if visitor
was null
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.