Uses of Interface
com.sun.source.tree.StatementTree
Package
Description
Provides interfaces to represent source code as abstract syntax
trees (AST).
-
Uses of StatementTree in com.sun.source.tree
Modifier and TypeInterfaceDescriptioninterface
A tree node for anassert
statement.interface
A tree node for a statement block.interface
A tree node for abreak
statement.interface
A tree node for a class, interface, enum, record, or annotation type declaration.interface
A tree node for acontinue
statement.interface
A tree node for ado
statement.interface
A tree node for an empty (skip) statement.interface
A tree node for an "enhanced"for
loop statement.interface
A tree node for an expression statement.interface
A tree node for a basicfor
loop statement.interface
A tree node for anif
statement.interface
A tree node for a labeled statement.interface
A tree node for areturn
statement.interface
A tree node for aswitch
statement.interface
A tree node for asynchronized
statement.interface
A tree node for athrow
statement.interface
A tree node for atry
statement.interface
A tree node for a variable declaration.interface
A tree node for awhile
loop statement.interface
A tree node for ayield
statement.Modifier and TypeMethodDescriptionIfTree.getElseStatement()
Returns the statement to be executed if the condition is false, ornull
if there is no such statement.DoWhileLoopTree.getStatement()
Returns the body of the loop.EnhancedForLoopTree.getStatement()
Returns the body of the loop.ForLoopTree.getStatement()
Returns the body of thefor
statement.LabeledStatementTree.getStatement()
Returns the statement that is labeled.WhileLoopTree.getStatement()
Returns the body of the loop.IfTree.getThenStatement()
Returns the statement to be executed if the condition is trueModifier and TypeMethodDescriptionList
<? extends StatementTree> ForLoopTree.getInitializer()
Returns any initializers of thefor
statement.List
<? extends StatementTree> BlockTree.getStatements()
Returns the statements comprising this block.List
<? extends StatementTree> CaseTree.getStatements()
For case with kind CaseTree.CaseKind.STATEMENT, returns the statements labeled by the case.