public class AstPropertyMapping extends AbstractAstNode
AstNode.AbstractVisitor<C,R>, AstNode.Visitor<C,R>| Modifier and Type | Field and Description |
|---|---|
List<AstAttribute> |
attributes
The attributes of the defining property.
|
AstDescription |
description
The description of the defining property, or
null if is omitted. |
AstSimpleName |
source
The property name from the source model.
|
AstSimpleName |
target
The target property name.
|
| Constructor and Description |
|---|
AstPropertyMapping(Region region,
AstDescription description,
List<AstAttribute> attributes,
AstSimpleName source,
AstSimpleName target)
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 AstDescription description
null if is omitted.public final List<AstAttribute> attributes
public final AstSimpleName source
public final AstSimpleName target
public AstPropertyMapping(Region region, AstDescription description, List<AstAttribute> attributes, AstSimpleName source, AstSimpleName target)
region - the region of this node on the enclosing script, or null if unknowndescription - the description of this property, or null if is omittedattributes - the attributes of this propertysource - the property name from the source modeltarget - the target property nameIllegalArgumentException - if some parameters were nullpublic Region getRegion()
AstNodenull if unknownpublic <C,R> R accept(C context,
AstNode.Visitor<C,R> visitor)
AstNodeC - type of visitor contextR - type of visitor resultcontext - the visitor contextvisitor - the visitor to call backCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.