Package: org.apache.groovy.ginq.dsl.expression

## [Java] Class ShutdownExpression

- org.apache.groovy.ginq.dsl.expression.ShutdownExpression

-     public class ShutdownExpression
      extends AbstractGinqExpression

  Represent the shutdown expression

  Since:
    4.0.0

- - Inherited fields
    Fields inherited from class | Fields
    --- | ---
    `class Expression` | `EMPTY_ARRAY`

  - ### Constructor Summary

    Constructors
    Constructor and description
    `ShutdownExpression(Expression expr, int mode)` Creates a shutdown expression.

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `<R>` | `public R` | `accept(GinqAstVisitor<R> visitor)` Accepts a visitor for this expression.
    `` | `public Expression` | `getExpr()` Returns the original shutdown expression.
    `` | `public int` | `getMode()` Returns the shutdown mode.
    `` | `public String` | `getText()` Returns the textual form of the shutdown expression.
    `` | `public String` | `toString()` Returns the textual form of this expression.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class AbstractGinqExpression` | `accept, transformExpression, visit`
    `class Expression` | `getType, setType, transformExpression, transformExpressions, transformExpressions`
    `class AnnotatedNode` | `addAnnotation, addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, getGroovydoc, getInstance, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic`
    `class ASTNode` | `copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getText, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePosition, visit`

- - ### Constructor Detail

    - #### public ShutdownExpression(Expression expr, int mode)

      Creates a shutdown expression.

      Parameters:
        `expr` - the original shutdown expression
        `mode` - the shutdown mode

  - ### Method Detail

    - #### <R> public R accept(GinqAstVisitor<R> visitor)

      Accepts a visitor for this expression.

      Parameters:
        `visitor` - the visitor to accept
      Type Parameters:
        `R` - the visit result type
      Returns:
        the visit result

    - #### public Expression getExpr()

      Returns the original shutdown expression.

      Returns:
        the original expression

    - #### public int getMode()

      Returns the shutdown mode.

      Returns:
        the shutdown mode

    - #### public String getText()

      Returns the textual form of the shutdown expression.

      Returns:
        the expression text

    - #### public String toString()

      Returns the textual form of this expression.

      Returns:
        the expression text