public class AstScript extends AbstractAstNode
AstNode.AbstractVisitor<C,R>, AstNode.Visitor<C,R>
Modifier and Type | Field and Description |
---|---|
List<AstModelDefinition<?>> |
models
The model definition statements.
|
Constructor and Description |
---|
AstScript(Region region,
List<? extends AstModelDefinition<?>> models)
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.
|
int |
hashCode() |
public final List<AstModelDefinition<?>> models
public AstScript(Region region, List<? extends AstModelDefinition<?>> models)
region
- the region of this node, or null
if unknownmodels
- the model definition statementsIllegalArgumentException
- if some parameters were null
public Region getRegion()
AstNode
null
if unknownpublic <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.