public class AstModelReference extends AbstractAstNode implements AstRecord
AstNode.AbstractVisitor<C,R>, AstNode.Visitor<C,R>
Modifier and Type | Field and Description |
---|---|
AstSimpleName |
name
The name of the target model.
|
Constructor and Description |
---|
AstModelReference(Region region,
AstSimpleName name)
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 AstSimpleName name
public AstModelReference(Region region, AstSimpleName name)
region
- the region of this node on the enclosing script, or null
if unknownname
- the name of the target modelIllegalArgumentException
- 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.