Class ShutdownExpression

All Implemented Interfaces:
GroovydocHolder<AnnotatedNode>, NodeMetaDataHandler

public class ShutdownExpression extends AbstractGinqExpression
Represent the shutdown expression
Since:
4.0.0
  • Constructor Details

    • ShutdownExpression

      public ShutdownExpression(Expression expr, int mode)
      Creates a shutdown expression.
      Parameters:
      expr - the original shutdown expression
      mode - the shutdown mode
  • Method Details

    • accept

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

      public Expression getExpr()
      Returns the original shutdown expression.
      Returns:
      the original expression
    • getMode

      public int getMode()
      Returns the shutdown mode.
      Returns:
      the shutdown mode
    • getText

      public String getText()
      Returns the textual form of the shutdown expression.
      Overrides:
      getText in class ASTNode
      Returns:
      the expression text
    • toString

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