public class AstSequenceType extends AbstractAstNode implements AstType
AstNode.AbstractVisitor<C,R>, AstNode.Visitor<C,R>
Modifier and Type | Field and Description |
---|---|
AstType |
elementType
The type of elements in this sequence.
|
Constructor and Description |
---|
AstSequenceType(Region region,
AstType elementType)
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 AstType elementType
public AstSequenceType(Region region, AstType elementType)
region
- the region of this node on the enclosing script, or null
if unknownelementType
- the type of elements in this sequenceIllegalArgumentException
- 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.