Class GroupExpression
java.lang.Object
org.codehaus.groovy.ast.ASTNode
org.codehaus.groovy.ast.AnnotatedNode
org.codehaus.groovy.ast.expr.Expression
org.apache.groovy.ginq.dsl.expression.AbstractGinqExpression
org.apache.groovy.ginq.dsl.expression.ProcessExpression
org.apache.groovy.ginq.dsl.expression.GroupExpression
- All Implemented Interfaces:
GroovydocHolder<AnnotatedNode>,DataSourceHolder,NodeMetaDataHandler
Represents group by expression
- Since:
- 4.0.0
-
Field Summary
Fields inherited from class org.codehaus.groovy.ast.expr.Expression
EMPTY_ARRAYFields inherited from interface groovy.lang.groovydoc.GroovydocHolder
DOC_COMMENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(GinqAstVisitor<R> visitor) Accepts a visitor for this clause.Returns the grouping classifier.Returns the optionalhavingclause.Returns theintoalias.getText()Returns the textual GINQ form of this clause.voidsetHavingExpression(HavingExpression havingExpression) Sets the optionalhavingclause.voidsetIntoAlias(String intoAlias) Sets theintoalias.toString()Returns the textual form of this clause.Methods inherited from class org.apache.groovy.ginq.dsl.expression.ProcessExpression
getDataSourceExpression, setDataSourceExpressionMethods inherited from class org.apache.groovy.ginq.dsl.expression.AbstractGinqExpression
transformExpression, visitMethods inherited from class org.codehaus.groovy.ast.expr.Expression
getType, setType, transformExpressions, transformExpressionsMethods inherited from class org.codehaus.groovy.ast.AnnotatedNode
addAnnotation, addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, getGroovydoc, getInstance, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSyntheticMethods inherited from class org.codehaus.groovy.ast.ASTNode
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePositionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.codehaus.groovy.ast.NodeMetaDataHandler
copyNodeMetaData, getMetaDataMap, getNodeMetaData, getNodeMetaData, getNodeMetaData, newMetaDataMap, putNodeMetaData, removeNodeMetaData, setMetaDataMap, setNodeMetaData
-
Constructor Details
-
GroupExpression
Creates agroupbyclause.- Parameters:
classifierExpr- the grouping classifier
-
-
Method Details
-
accept
Accepts a visitor for this clause.- Specified by:
acceptin classAbstractGinqExpression- Type Parameters:
R- the visit result type- Parameters:
visitor- the visitor to accept- Returns:
- the visit result
-
getClassifierExpr
Returns the grouping classifier.- Returns:
- the grouping classifier
-
getHavingExpression
Returns the optionalhavingclause.- Returns:
- the
havingclause, ornull
-
setHavingExpression
Sets the optionalhavingclause.- Parameters:
havingExpression- the clause to set
-
getIntoAlias
Returns theintoalias.- Returns:
- the alias, or
null - Since:
- 6.0.0
-
setIntoAlias
Sets theintoalias.- Parameters:
intoAlias- the alias to set- Since:
- 6.0.0
-
getText
Returns the textual GINQ form of this clause. -
toString
Returns the textual form of this clause.
-