Skip navigation links
javax.ide.model.java.source.tree
Interface SimpleStatementT
- All Superinterfaces:
- BlockElementT, StatementT, Tree
- All Known Subinterfaces:
- AssertStatementT, BreakStatementT, ContinueStatementT, EmptyStatementT, ExpressionStatementT, ReturnStatementT, ThrowStatementT
-
public interface SimpleStatementT
- extends StatementT
Common supertype for statements that have no child statement but may optionally have expressions. This includes the following types of statements: empty, expression, break, continue, return, throw, assert.
Methods inherited from interface javax.ide.model.java.source.tree.Tree |
accept, addSelf, addSelf, addSelfAfter, addSelfBefore, clearProperty, cloneSelf, getChildren, getOwningFile, getParent, getPosition, getProperty, getSiblingAfter, getSiblingBefore, getSiblings, getTreeKind, isSynthetic, removeSelf, replaceSelf, setProperty |
getExpressionName
NameT getExpressionName()
- Valid for "break" and "continue" statements.
-
- Returns:
- The name of the target label. Null if none.
getExpression
ExpressionT getExpression()
- Valid for "return", "throw", and "assert" statements and for "case" labels.
-
- Returns:
- the ExpressionT for this expression symbol. Null if this is an empty expression statement.
Skip navigation links
Copyright © 1997, 2013, Oracle. All rights reserved.