Class LimitExpression

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

public class LimitExpression extends ProcessExpression
Represents limit expression
Since:
4.0.0
  • Constructor Details

    • LimitExpression

      public LimitExpression(Expression offsetAndSizeExpr)
      Creates a limit clause.
      Parameters:
      offsetAndSizeExpr - the limit expression
  • 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
    • getOffsetAndSizeExpr

      public Expression getOffsetAndSizeExpr()
      Returns the offset-and-size expression.
      Returns:
      the limit expression
    • 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