T
- the type of model structure unitpublic class AstUnionExpression<T extends AstTerm<T>> extends AbstractAstNode implements AstExpression<T>
AstNode.AbstractVisitor<C,R>, AstNode.Visitor<C,R>
Modifier and Type | Field and Description |
---|---|
List<T> |
terms
The model structure expressions to union.
|
Constructor and Description |
---|
AstUnionExpression(Region region,
List<? extends T> terms)
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 AstUnionExpression(Region region, List<? extends T> terms)
region
- the region of this node on the enclosing script, or null
if unknownterms
- to unionIllegalArgumentException
- if some parameters were null
public Region getRegion()
AstNode
public <C,R> R accept(C context, AstNode.Visitor<C,R> visitor)
AstNode
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.