# Uses of Class
org.eclipse.jdt.core.dom.Statement

Packages that use Statement
Package
Description
org.eclipse.jdt.core.dom
The Java DOM/AST is the set of classes that model the source code of a Java program as a structured document.

## Uses of Statement in org.eclipse.jdt.core.dom

Subclasses of Statement in org.eclipse.jdt.core.dom
Modifier and Type
Class
Description
`class`
`AssertStatement`
Assert statement AST node type.
`class`
`Block`
Block statement AST node type.
`class`
`BreakStatement`
Break statement AST node type.
`class`
`ConstructorInvocation`
Alternate constructor invocation statement AST node type.
`class`
`ContinueStatement`
Continue statement AST node type.
`class`
`DoStatement`
Do statement AST node type.
`class`
`EmptyStatement`
Null statement AST node type.
`class`
`EnhancedForStatement`
Enhanced For statement AST node type (added in JLS3 API).
`class`
`EnhancedForWithRecordPattern`
Enhanced For statement AST node type with record pattern(added in JLS20 API).
`class`
`ExpressionStatement`
Expression statement AST node type.
`class`
`ForStatement`
For statement AST node type.
`class`
`IfStatement`
If statement AST node type.
`class`
`LabeledStatement`
Labeled statement AST node type.
`class`
`ReturnStatement`
Return statement AST node type.
`class`
`SuperConstructorInvocation`
Super constructor invocation statement AST node type.
`class`
`SwitchCase`
Switch case AST node type.
`class`
`SwitchStatement`
Switch statement AST node type.
`class`
`SynchronizedStatement`
Synchronized statement AST node type.
`class`
`ThrowStatement`
Throw statement AST node type.
`class`
`TryStatement`
Try statement AST node type.
`class`
`TypeDeclarationStatement`
Local type declaration statement AST node type.
`class`
`VariableDeclarationStatement`
Local variable declaration statement AST node type.
`class`
`WhileStatement`
While statement AST node type.
`class`
`YieldStatement`
Yield statement AST node type.
Methods in org.eclipse.jdt.core.dom that return Statement
Modifier and Type
Method
Description
`Statement`
DoStatement.`getBody()`
Returns the body of this do statement.
`Statement`
EnhancedForStatement.`getBody()`
Returns the body of this enchanced for statement.
`Statement`
EnhancedForWithRecordPattern.`getBody()`
Returns the body of this enchanced for statement.
`Statement`
ForStatement.`getBody()`
Returns the body of this for statement.
`Statement`
LabeledStatement.`getBody()`
Returns the body of this labeled statement.
`Statement`
WhileStatement.`getBody()`
Returns the body of this while statement.
`Statement`
IfStatement.`getElseStatement()`
Returns the "else" part of this if statement, or `null` if this if statement has no "else" part.
`Statement`
IfStatement.`getThenStatement()`
Returns the "then" part of this if statement.
Methods in org.eclipse.jdt.core.dom with parameters of type Statement
Modifier and Type
Method
Description
`void`
DoStatement.`setBody(Statement statement)`
Sets the body of this do statement.
`void`
EnhancedForStatement.`setBody(Statement statement)`
Sets the body of this enhanced for statement.
`void`
EnhancedForWithRecordPattern.`setBody(Statement statement)`
Sets the body of this enhanced for statement.
`void`
ForStatement.`setBody(Statement statement)`
Sets the body of this for statement.
`void`
LabeledStatement.`setBody(Statement statement)`
Sets the body of this labeled statement.
`void`
WhileStatement.`setBody(Statement statement)`
Sets the body of this while statement.
`void`
IfStatement.`setElseStatement(Statement statement)`
Sets or clears the "else" part of this if statement.
`void`
IfStatement.`setThenStatement(Statement statement)`
Sets the "then" part of this if statement.