Package org.codehaus.groovy.ast.stmt

# Class ContinueStatement

java.lang.Object
org.codehaus.groovy.ast.ASTNode
org.codehaus.groovy.ast.stmt.Statement
org.codehaus.groovy.ast.stmt.ContinueStatement

All Implemented Interfaces:
  `NodeMetaDataHandler`

public class ContinueStatement extends Statement
Represents a continue statement that skips the remainder of the current loop iteration. When a continue statement is encountered, control flow jumps to the next iteration of the innermost enclosing loop. Labeled continue statements can skip to the next iteration of an outer loop.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ContinueStatement()`
  Constructs an unlabeled continue statement that continues the innermost enclosing loop.
  `ContinueStatement(String label)`
  Constructs a labeled continue statement that continues the enclosing loop with the given label.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getLabel()`
  Returns the label associated with this continue statement.
  `void`
  `visit(GroovyCodeVisitor visitor)`
  Accepts a code visitor for AST traversal and transformation.

  ### Methods inherited from class org.codehaus.groovy.ast.stmt.Statement

  `addStatementAnnotation, addStatementLabel, copyStatementLabels, getStatementAnnotations, getStatementLabel, getStatementLabels, isEmpty, setStatementLabel`

  ### Methods inherited from class org.codehaus.groovy.ast.ASTNode

  `copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getText, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePosition`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

  ### Methods inherited from interface org.codehaus.groovy.ast.NodeMetaDataHandler

  `copyNodeMetaData, getNodeMetaData, getNodeMetaData, getNodeMetaData, newMetaDataMap, putNodeMetaData, removeNodeMetaData, setNodeMetaData`

- ## Constructor Details

  - ### ContinueStatement

    public ContinueStatement()
    Constructs an unlabeled continue statement that continues the innermost enclosing loop.

  - ### ContinueStatement

    public ContinueStatement(String label)
    Constructs a labeled continue statement that continues the enclosing loop with the given label.
    Parameters:
      `label` - the name of the label to continue to, or null for an unlabeled continue

- ## Method Details

  - ### getLabel

    public String getLabel()
    Returns the label associated with this continue statement.
    Returns:
      the label name, or null if this is an unlabeled continue statement

  - ### visit

    public void visit(GroovyCodeVisitor visitor)
    Description copied from class: `ASTNode`
    Accepts a code visitor for AST traversal and transformation. Subclasses must implement this method to support visitor pattern-based processing. The visitor pattern enables decoupling of AST structure from processing logic.
    Overrides:
      `visit` in class `ASTNode`
    Parameters:
      `visitor` - the `GroovyCodeVisitor` to process this node