Skip navigation links
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.
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 |
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.
Skip navigation links
Copyright © 1997, 2012, Oracle. All rights reserved.