Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.javatools.parser.java.v2.model.statement
Interface SourceCompoundStatement

All Superinterfaces:
Element, SourceBlockElement, SourceElement, SourceStatement
All Known Subinterfaces:
SourceCatchClause, SourceConditionalStatement, SourceDoStatement, SourceElseClause, SourceFinallyClause, SourceForStatement, SourceIfStatement, SourceSwitchStatement, SourceSynchStatement, SourceTryStatement, SourceWhileStatement

public interface SourceCompoundStatement
extends SourceStatement

A CompoundStatement is a common base statement representing statements that have children statements.


Field Summary
 
Fields inherited from interface oracle.javatools.parser.java.v2.model.statement.SourceStatement
EMPTY_ARRAY
 
Fields inherited from interface oracle.javatools.parser.java.v2.model.SourceElement
CHILDREN_ALL, CHILDREN_BLANKLINES, CHILDREN_COMMENTS, CHILDREN_default, CHILDREN_none, CHILDREN_REGULAR, PRINT_ALL, REFORMAT_ALL, REFORMAT_INDENT
 
Method Summary
 SourceExpression getControlExpression()
          In a for statement, null is returned.
 SourceStatement getEndClause()
          In an if statement, this is the "else" clause.
 SourceStatement getPrimaryClause()
           
 
Methods inherited from interface oracle.javatools.parser.java.v2.model.statement.SourceStatement
getStatementLabels, getStatementToken
 
Methods inherited from interface oracle.javatools.parser.java.v2.model.SourceElement
addSelf, addSelf, addSelfAfter, addSelfBefore, adjustTextIndentation, clearBinding, cloneSelf, compile, getBinding, getChildren, getChildren, getCompiledObject, getContainedElements, getEndOffset, getOwningFile, getOwningSourceFile, getParent, getSiblingAfter, getSiblingBefore, getSiblings, getSiblings, getStartOffset, getSymbolKind, getText, hasErrors, print, print, reformatSelf, removeSelf, replaceSelf, resolve, setBinding, setContext, visitSelf
 

Method Detail

getControlExpression

SourceExpression getControlExpression()
In a for statement, null is returned.

Returns:
The nested (i.e. parenthesized) expression for this compound statement.

getPrimaryClause

SourceStatement getPrimaryClause()
Returns:
The primary clause.

getEndClause

SourceStatement getEndClause()
In an if statement, this is the "else" clause. In a try statement, this is the "finally" clause.

Returns:
The optional secondary clause.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

Copyright © 1997, 2011, Oracle. All rights reserved.