public class AstCollectionType extends AbstractAstNode implements AstType
Modifier and Type | Class and Description |
---|---|
static class |
AstCollectionType.CollectionKind
Represents a kind of collection.
|
AstNode.AbstractVisitor<C,R>, AstNode.Visitor<C,R>
Modifier and Type | Field and Description |
---|---|
AstType |
elementType
The element type.
|
AstCollectionType.CollectionKind |
kind
The kind of collection.
|
Constructor and Description |
---|
AstCollectionType(Region region,
AstCollectionType.CollectionKind kind,
AstType elementType)
Creates 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() |
String |
toString() |
public final AstCollectionType.CollectionKind kind
public final AstType elementType
public AstCollectionType(Region region, AstCollectionType.CollectionKind kind, AstType elementType)
region
- the region of this node on the enclosing script, or null
if unknownkind
- the collection kindelementType
- the element typepublic 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.