Class GroupExpression

All Implemented Interfaces:
GroovydocHolder<AnnotatedNode>, DataSourceHolder, NodeMetaDataHandler

public class GroupExpression extends ProcessExpression
Represents group by expression
Since:
4.0.0
  • Constructor Details

    • GroupExpression

      public GroupExpression(Expression classifierExpr)
      Creates a groupby clause.
      Parameters:
      classifierExpr - the grouping classifier
  • Method Details

    • accept

      public <R> R accept(GinqAstVisitor<R> visitor)
      Accepts a visitor for this clause.
      Specified by:
      accept in class AbstractGinqExpression
      Type Parameters:
      R - the visit result type
      Parameters:
      visitor - the visitor to accept
      Returns:
      the visit result
    • getClassifierExpr

      public Expression getClassifierExpr()
      Returns the grouping classifier.
      Returns:
      the grouping classifier
    • getHavingExpression

      public HavingExpression getHavingExpression()
      Returns the optional having clause.
      Returns:
      the having clause, or null
    • setHavingExpression

      public void setHavingExpression(HavingExpression havingExpression)
      Sets the optional having clause.
      Parameters:
      havingExpression - the clause to set
    • getIntoAlias

      public String getIntoAlias()
      Returns the into alias.
      Returns:
      the alias, or null
      Since:
      6.0.0
    • setIntoAlias

      public void setIntoAlias(String intoAlias)
      Sets the into alias.
      Parameters:
      intoAlias - the alias to set
      Since:
      6.0.0
    • getText

      public String getText()
      Returns the textual GINQ form of this clause.
      Overrides:
      getText in class ASTNode
      Returns:
      the clause text
    • toString

      public String toString()
      Returns the textual form of this clause.
      Overrides:
      toString in class Object
      Returns:
      the clause text