public class AstPropertyFolding extends AbstractAstNode
AstNode.AbstractVisitor<C,R>, AstNode.Visitor<C,R>
Modifier and Type | Field and Description |
---|---|
AstName |
aggregator
The function name of the aggregator.
|
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 |
---|
AstPropertyFolding(Region region,
AstDescription description,
List<AstAttribute> attributes,
AstName aggregator,
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 AstName aggregator
public final AstSimpleName source
public final AstSimpleName target
public AstPropertyFolding(Region region, AstDescription description, List<AstAttribute> attributes, AstName aggregator, 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 propertyaggregator
- the function name of the aggregatorsource
- the property name from the source modeltarget
- the target property nameIllegalArgumentException
- if some parameters were null
public Region getRegion()
AstNode
null
if unknownpublic <C,R> R accept(C context, AstNode.Visitor<C,R> visitor)
AstNode
C
- type of visitor contextR
- type of visitor resultcontext
- the visitor contextvisitor
- the visitor to call backCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.