# Package org.codehaus.groovy.ast.stmt

package org.codehaus.groovy.ast.stmt

AST nodes for Groovy statements

- Related Packages
  Package
  Description
  org.codehaus.groovy.ast
  Groovy AST nodes for the syntax of the language
  org.codehaus.groovy.ast.builder
  DSL builders for programmatic AST construction.
  org.codehaus.groovy.ast.decompiled
  Tools for converting decompiled Java bytecode back into AST representation.
  org.codehaus.groovy.ast.expr
  AST nodes for Groovy expressions
  org.codehaus.groovy.ast.query
  A small, read-only fluent query API over the Groovy AST, intended as a declarative alternative to hand-written `ClassCodeVisitorSupport` subclasses for the common "find / collect / detect" cases that arise in AST transformations and compiler checks.
  org.codehaus.groovy.ast.tools
  AST manipulation and analysis utilities.
- Class
  Description
  AssertStatement
  Represents an assert statement that enforces a condition with an optional error message.
  BlockStatement
  Represents a compound statement consisting of an ordered sequence of `Statement`s within a specific `VariableScope`.
  BreakStatement
  Represents a break statement that terminates execution of a loop or switch statement.
  CaseStatement
  Represents a case arm of a `SwitchStatement` or a `SwitchExpression`.
  CatchStatement
  Represents a catch (Exception var) { } statement that handles exceptions in a try-catch block.
  ContinueStatement
  Represents a continue statement that skips the remainder of the current loop iteration.
  DoWhileStatement
  Represents a do { ...
  EmptyStatement
  Represents an empty statement that performs no operation.
  ExpressionStatement
  Represents an expression statement that executes an expression where the return value is ignored.
  ForStatement
  Represents a for loop in Groovy, supporting both for-in loops (with values and optional indices) and classic (C-style) for loops with initialization, condition, and update expressions.
  IfStatement
  Represents an if (condition) { then-block } else { else-block } conditional statement in Groovy.
  LoopingStatement
  This is an AST Node that provides some sort of looping mechanism.
  ReturnStatement
  Represents a return statement that terminates a method and optionally returns a value.
  Statement
  Base class for all statement nodes in the Groovy AST.
  SwitchStatement
  Represents a switch (object) { case value: ...
  SynchronizedStatement
  Represents a synchronized statement that provides mutual exclusion for a code block.
  ThrowStatement
  Represents a throw statement that raises an exception.
  TryCatchStatement
  Represents a try { ...
  WhileStatement
  Represents a while (condition) { ...
  YieldStatement
  Represents a `yield` statement that produces the value of an enclosing `SwitchExpression`.