public class AstSummarize extends AbstractAstNode implements AstTerm<AstSummarize>
AstNode.AbstractVisitor<C,R>, AstNode.Visitor<C,R>
Modifier and Type | Field and Description |
---|---|
AstModelFolding |
folding
The folding function how to convert summarize target to the result model.
|
AstGrouping |
grouping
The grouping properties for aggregation.
|
AstModelReference |
reference
The reference to the summarize target model.
|
Constructor and Description |
---|
AstSummarize(Region region,
AstModelReference reference,
AstModelFolding folding,
AstGrouping grouping)
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.
|
AstSummarize |
getUnit()
Returns itself.
|
int |
hashCode() |
public final AstModelReference reference
public final AstModelFolding folding
public final AstGrouping grouping
This can be null
if use total grouping.
public AstSummarize(Region region, AstModelReference reference, AstModelFolding folding, AstGrouping grouping)
region
- the region of this node on the enclosing script, or null
if unknownreference
- the reference to the summarize target modelfolding
- the folding functiongrouping
- the grouping properties, or null
on total groupingIllegalArgumentException
- if some parameters were null
public Region getRegion()
AstNode
public AstSummarize getUnit()
AstTerm
getUnit
in interface AstTerm<AstSummarize>
public <C,R> R accept(C context, AstNode.Visitor<C,R> visitor)
AstNode
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.