## Uses of Interface
org.eclipse.cdt.core.dom.ast.IASTStatement

Packages that use IASTStatement
org.eclipse.cdt.core.dom.ast
org.eclipse.cdt.core.dom.ast.cpp
org.eclipse.cdt.core.dom.ast.gnu

### Uses of IASTStatement in org.eclipse.cdt.core.dom.ast

Subinterfaces of IASTStatement in org.eclipse.cdt.core.dom.ast
`interface` `IASTBreakStatement` This is the break clause in a loop.
`interface` `IASTCaseStatement` This is a case in a switch statement.
`interface` `IASTCompoundStatement` This represents a block of statements.
`interface` `IASTContinueStatement` This is the continue clause in a loop.
`interface` `IASTDeclarationStatement` A declaration statement that introduces a declaration.
`interface` `IASTDefaultStatement` This is the default clause in the switch statement.
`interface` `IASTDoStatement` Ye ol' do statement.
`interface` `IASTExpressionStatement` Expression statement.
`interface` `IASTForStatement` The 'for' statement.
`interface` `IASTGotoStatement` Represents a goto statement.
`interface` `IASTIfStatement` The 'if' statement including the optional else clause.
`interface` `IASTLabelStatement` Represents a label statement.
`interface` `IASTNullStatement` This node represents a null statement, ';'
`interface` `IASTProblemStatement` This interface represents a parse problem where we tried to match against a statement.
`interface` `IASTReturnStatement`
`interface` `IASTSwitchStatement` The switch statement.
`interface` `IASTWhileStatement` Ye ol' while statement.

Fields in org.eclipse.cdt.core.dom.ast declared as IASTStatement
`static IASTStatement[]` IASTLabelStatement.`EMPTY_LABEL_STATEMENT_ARRAY` Deprecated. use `IASTLabelStatement.EMPTY_ARRAY` instead
`static IASTStatement[]` IASTStatement.`EMPTY_STATEMENT_ARRAY`

Methods in org.eclipse.cdt.core.dom.ast that return IASTStatement
`IASTStatement` IASTStatement.`copy()`
`IASTStatement` IASTStatement.`copy(IASTNode.CopyStyle style)`
`IASTStatement` IASTWhileStatement.`getBody()` The body of the loop.
`IASTStatement` IASTSwitchStatement.`getBody()` Returns the body of the switch statement.
`IASTStatement` IASTFunctionDefinition.`getBody()` Returns the body of the function.
`IASTStatement` IASTForStatement.`getBody()` Returns the statements that this for loop controls.
`IASTStatement` IASTDoStatement.`getBody()` Returns the body of the loop.
`IASTStatement` IASTIfStatement.`getElseClause()` Returns the statement that is executed if the condition is false.
`IASTStatement` IASTForStatement.`getInitializerStatement()` Returns the initializer statement.
`IASTStatement` IASTLabelStatement.`getNestedStatement()` Returns the statement following the label.
`IASTStatement[]` IASTCompoundStatement.`getStatements()` Returns the statements in this block.
`IASTStatement` IASTIfStatement.`getThenClause()` Returns the statement that is executed if the condition is true.
`IASTStatement` INodeFactory.`newGotoStatement(IASTExpression expression)`

Methods in org.eclipse.cdt.core.dom.ast with parameters of type IASTStatement
`void` IASTCompoundStatement.`addStatement(IASTStatement statement)` Adds a statement to the compound block.
`int` ASTVisitor.`leave(IASTStatement statement)`
`int` ASTGenericVisitor.`leave(IASTStatement statement)`
`IASTDoStatement` INodeFactory.`newDoStatement(IASTStatement body, IASTExpression condition)`
`IASTForStatement` INodeFactory.`newForStatement(IASTStatement init, IASTExpression condition, IASTExpression iterationExpression, IASTStatement body)`
`IASTFunctionDefinition` INodeFactory.`newFunctionDefinition(IASTDeclSpecifier declSpecifier, IASTFunctionDeclarator declarator, IASTStatement bodyStatement)`
`IASTIfStatement` INodeFactory.`newIfStatement(IASTExpression condition, IASTStatement then, IASTStatement elseClause)`
`IASTLabelStatement` INodeFactory.`newLabelStatement(IASTName name, IASTStatement nestedStatement)`
`IASTSwitchStatement` INodeFactory.`newSwitchStatement(IASTExpression controller, IASTStatement body)`
`IASTWhileStatement` INodeFactory.`newWhileStatement(IASTExpression condition, IASTStatement body)`
`void` IASTWhileStatement.`setBody(IASTStatement body)` Sets the body of the while loop.
`void` IASTSwitchStatement.`setBody(IASTStatement body)` Set the body for the switch statement.
`void` IASTFunctionDefinition.`setBody(IASTStatement statement)` Sets the body of the function.
`void` IASTForStatement.`setBody(IASTStatement statement)` Sets the body of the for loop.
`void` IASTDoStatement.`setBody(IASTStatement body)` Sets the body of the loop.
`void` IASTIfStatement.`setElseClause(IASTStatement elseClause)` Sets the else clause.
`void` IASTForStatement.`setInitializerStatement(IASTStatement statement)`
`void` IASTLabelStatement.`setNestedStatement(IASTStatement statement)` Sets the statement following the label.
`void` IASTIfStatement.`setThenClause(IASTStatement thenClause)` Sets the statement that is executed if the condition is true.
`int` ASTVisitor.`visit(IASTStatement statement)`
`int` ASTGenericVisitor.`visit(IASTStatement statement)`

### Uses of IASTStatement in org.eclipse.cdt.core.dom.ast.cpp

Subinterfaces of IASTStatement in org.eclipse.cdt.core.dom.ast.cpp
`interface` `ICPPASTCatchHandler` Catch handler used for try block statements or for functions with try block.
`interface` `ICPPASTCompoundStatement` Represents a block of statements in C++.
`interface` `ICPPASTForStatement` The C++ 'for' statement.
`interface` `ICPPASTIfStatement` The 'if' statement including the optional else clause.
`interface` `ICPPASTRangeBasedForStatement` Represents a range-based 'for' loop.
`interface` `ICPPASTSwitchStatement`
`interface` `ICPPASTTryBlockStatement` This interface represents the try block statement. try { //body } catch (Exc e) { // handler } catch ( ... ) { }
`interface` `ICPPASTWhileStatement` This interface accommodates C++ allows for broader while loop syntax.

Methods in org.eclipse.cdt.core.dom.ast.cpp that return IASTStatement
`IASTStatement` ICPPASTRangeBasedForStatement.`getBody()` Returns the statement of this for-loop.
`IASTStatement` ICPPASTCatchHandler.`getCatchBody()` Returns the catch body.
`IASTStatement` ICPPASTTryBlockStatement.`getTryBody()` Returns the try body.

Methods in org.eclipse.cdt.core.dom.ast.cpp with parameters of type IASTStatement
`ICPPASTCatchHandler` ICPPNodeFactory.`newCatchHandler(IASTDeclaration decl, IASTStatement body)`
`ICPPASTForStatement` ICPPNodeFactory.`newForStatement(IASTStatement init, IASTDeclaration condition, IASTExpression iterationExpression, IASTStatement body)`
`ICPPASTForStatement` ICPPNodeFactory.`newForStatement(IASTStatement init, IASTExpression condition, IASTExpression iterationExpression, IASTStatement body)`
`ICPPASTFunctionDefinition` ICPPNodeFactory.`newFunctionDefinition(IASTDeclSpecifier declSpecifier, IASTFunctionDeclarator declarator, IASTStatement bodyStatement)`
`ICPPASTFunctionWithTryBlock` ICPPNodeFactory.`newFunctionTryBlock(IASTDeclSpecifier declSpecifier, IASTFunctionDeclarator declarator, IASTStatement bodyStatement)`
`ICPPASTIfStatement` ICPPNodeFactory.`newIfStatement(IASTDeclaration condition, IASTStatement then, IASTStatement elseClause)`
`ICPPASTIfStatement` ICPPNodeFactory.`newIfStatement(IASTExpression condition, IASTStatement then, IASTStatement elseClause)`
`ICPPASTSwitchStatement` ICPPNodeFactory.`newSwitchStatement(IASTDeclaration controller, IASTStatement body)`
`ICPPASTSwitchStatement` ICPPNodeFactory.`newSwitchStatement(IASTExpression controlloer, IASTStatement body)`
`ICPPASTTryBlockStatement` ICPPNodeFactory.`newTryBlockStatement(IASTStatement body)`
`ICPPASTWhileStatement` ICPPNodeFactory.`newWhileStatement(IASTDeclaration condition, IASTStatement body)`
`ICPPASTWhileStatement` ICPPNodeFactory.`newWhileStatement(IASTExpression condition, IASTStatement body)`
`void` ICPPASTRangeBasedForStatement.`setBody(IASTStatement statement)` Not allowed on frozen AST.
`void` ICPPASTCatchHandler.`setCatchBody(IASTStatement compoundStatement)` Sets the catch body.
`void` ICPPASTTryBlockStatement.`setTryBody(IASTStatement tryBlock)` Sets the try body.

### Uses of IASTStatement in org.eclipse.cdt.core.dom.ast.gnu

Subinterfaces of IASTStatement in org.eclipse.cdt.core.dom.ast.gnu
`interface` `IGNUASTGotoStatement` Represents a GNU goto expression.