Uses of Interface
com.sun.source.tree.StatementTree
Packages that use StatementTree
Package
Description
Provides interfaces to represent source code as abstract syntax
trees (AST).
-
Uses of StatementTree in com.sun.source.tree
Subinterfaces of StatementTree in com.sun.source.treeModifier and TypeInterfaceDescriptioninterfaceA tree node for anassertstatement.interfaceA tree node for a statement block.interfaceA tree node for abreakstatement.interfaceA tree node for a class, interface, enum, record, or annotation type declaration.interfaceA tree node for acontinuestatement.interfaceA tree node for adostatement.interfaceA tree node for an empty (skip) statement.interfaceA tree node for an "enhanced"forloop statement.interfaceA tree node for an expression statement.interfaceA tree node for a basicforloop statement.interfaceA tree node for anifstatement.interfaceA tree node for a labeled statement.interfaceA tree node for areturnstatement.interfaceA tree node for aswitchstatement.interfaceA tree node for asynchronizedstatement.interfaceA tree node for athrowstatement.interfaceA tree node for atrystatement.interfaceA tree node for a variable declaration.interfaceA tree node for awhileloop statement.interfaceA tree node for ayieldstatement.Methods in com.sun.source.tree that return StatementTreeModifier and TypeMethodDescriptionIfTree.getElseStatement()Returns the statement to be executed if the condition is false, ornullif 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 theforstatement.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 trueMethods in com.sun.source.tree that return types with arguments of type StatementTreeModifier and TypeMethodDescriptionList<? extends StatementTree> ForLoopTree.getInitializer()Returns any initializers of theforstatement.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.