public class AggregateExpressionImpl extends Object implements AggregateExpression
AggregateExpression.StandardMethod| Constructor and Description |
|---|
AggregateExpressionImpl() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
accept(ExpressionVisitor<T> visitor)
Method
VisitableExpression.accept(ExpressionVisitor) is called when traversing the expression tree. |
void |
addDynamicProperty(String name)
Adds the dynamic property for aggregation expression.
|
AggregateExpressionImpl |
addFrom(AggregateExpression from) |
String |
getAlias()
Gets the name of the aggregate if an alias name has been set.
|
FullQualifiedName |
getCustomMethod()
Gets the name of the custom aggregation method if used.
|
Set<String> |
getDynamicProperties()
Gets the dynamic properties for aggregation expression.
|
Expression |
getExpression()
Gets the common expression to be aggregated.
|
List<AggregateExpression> |
getFrom()
Gets the aggregate expressions for
from. |
AggregateExpression |
getInlineAggregateExpression()
Gets the inline aggregation expression to be applied to the target of the path if used.
|
List<UriResource> |
getPath()
Gets the path prefix and the path segment.
|
AggregateExpression.StandardMethod |
getStandardMethod()
Gets the standard aggregation method if used.
|
AggregateExpressionImpl |
setAlias(String alias) |
AggregateExpressionImpl |
setCustomMethod(FullQualifiedName customMethod) |
AggregateExpressionImpl |
setExpression(Expression expression) |
AggregateExpressionImpl |
setInlineAggregateExpression(AggregateExpression aggregateExpression) |
AggregateExpressionImpl |
setPath(UriInfo uriInfo) |
AggregateExpressionImpl |
setStandardMethod(AggregateExpression.StandardMethod standardMethod) |
public List<UriResource> getPath()
AggregateExpressiongetPath in interface AggregateExpressionnull)public AggregateExpressionImpl setPath(UriInfo uriInfo)
public Expression getExpression()
AggregateExpressiongetExpression in interface AggregateExpressionExpression that could be nullpublic AggregateExpressionImpl setExpression(Expression expression)
public AggregateExpression.StandardMethod getStandardMethod()
AggregateExpressiongetStandardMethod in interface AggregateExpressionAggregateExpression.StandardMethod or nullAggregateExpression.getCustomMethod()public AggregateExpressionImpl setStandardMethod(AggregateExpression.StandardMethod standardMethod)
public FullQualifiedName getCustomMethod()
AggregateExpressiongetCustomMethod in interface AggregateExpressionFullQualifiedName or nullAggregateExpression.getStandardMethod()public AggregateExpressionImpl setCustomMethod(FullQualifiedName customMethod)
public AggregateExpression getInlineAggregateExpression()
AggregateExpressiongetInlineAggregateExpression in interface AggregateExpressionnullAggregateExpression.getPath()public AggregateExpressionImpl setInlineAggregateExpression(AggregateExpression aggregateExpression)
public List<AggregateExpression> getFrom()
AggregateExpressionfrom.getFrom in interface AggregateExpressionnull)public AggregateExpressionImpl addFrom(AggregateExpression from)
public String getAlias()
AggregateExpressiongetAlias in interface AggregateExpressionnullpublic AggregateExpressionImpl setAlias(String alias)
public <T> T accept(ExpressionVisitor<T> visitor) throws ExpressionVisitException, ODataApplicationException
VisitableExpressionVisitableExpression.accept(ExpressionVisitor) is called when traversing the expression tree. This method is invoked on
each expression used as node in an expression tree. The implementations should
behave as follows:
ExpressionVisitor instance and provide the stored return objects
to that instance
accept in interface VisitableExpressionvisitor - Visitor object (implementing ExpressionVisitor) whose methods are called during traversing a
expression node of the expression tree.ExpressionVisitException - Exception occurred in the OData library while traversing the treeODataApplicationException - Exception thrown by the application who implemented the visitorpublic Set<String> getDynamicProperties()
AggregateExpressiongetDynamicProperties in interface AggregateExpressionpublic void addDynamicProperty(String name)
AggregateExpressionaddDynamicProperty in interface AggregateExpressionname - an identifierCopyright © 2023. All rights reserved.