public class AstBasicType extends AbstractAstNode implements AstType
AstNode.AbstractVisitor<C,R>, AstNode.Visitor<C,R>
Modifier and Type | Field and Description |
---|---|
BasicTypeKind |
kind
The kind of this type.
|
Constructor and Description |
---|
AstBasicType(Region region,
BasicTypeKind kind)
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() |
String |
toString() |
public final BasicTypeKind kind
public AstBasicType(Region region, BasicTypeKind kind)
region
- the region of this node on the enclosing script, or null
if unknownkind
- the type kindIllegalArgumentException
- 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.