public class AstRecordDefinition extends AbstractAstNode implements AstRecord
AstNode.AbstractVisitor<C,R>, AstNode.Visitor<C,R>
Modifier and Type | Field and Description |
---|---|
List<AstPropertyDefinition> |
properties
The property definitions.
|
Constructor and Description |
---|
AstRecordDefinition(Region region,
List<AstPropertyDefinition> properties)
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.
|
AstRecord |
getUnit()
Returns itself.
|
int |
hashCode() |
public final List<AstPropertyDefinition> properties
public AstRecordDefinition(Region region, List<AstPropertyDefinition> properties)
region
- the region of this node, or null
if unknownproperties
- the property definitionsIllegalArgumentException
- 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.