Package: org.codehaus.groovy.ast.stmt

## [Java] Class ThrowStatement

- org.codehaus.groovy.ast.stmt.ThrowStatement

-     public class ThrowStatement
      extends Statement

  Represents a throw statement

- - ### Constructor Summary

    Constructors
    Constructor and description
    `ThrowStatement(Expression expression)`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public Expression` | `getExpression()`
    `` | `public String` | `getText()`
    `` | `public void` | `setExpression(Expression expression)`
    `` | `public void` | `visit(GroovyCodeVisitor visitor)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Statement` | `addStatementLabel, copyStatementLabels, getStatementLabel, getStatementLabels, isEmpty, setStatementLabel`
    `class ASTNode` | `copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getText, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePosition, visit`

- - ### Constructor Detail

    - #### public ThrowStatement(Expression expression)

  - ### Method Detail

    - #### public Expression getExpression()

    - #### @Override
      public String getText()

    - #### public void setExpression(Expression expression)

    - #### @Override
      public void visit(GroovyCodeVisitor visitor)