- 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, accept, addSelf, addSelf, addSelfAfter, addSelfBefore, clearProperty, cloneSelf, getChildren, getOwningFile, getParent, getPosition, getProperty, getSiblingAfter, getSiblingBefore, getSiblings, getTreeKind, isSynthetic, removeSelf, replaceSelf, setProperty |
getExpressionName
public NameT getExpressionName()
- Valid for "break" and "continue" statements.
getExpression
public ExpressionT getExpression()
- Valid for "return", "throw", and "assert" statements and for
"case" labels.
getOutputExpression
public ExpressionT getOutputExpression()
- Valid for "assert" statements.
Syntax is "assert boolean-expr: output-expr;".