OpenJDK 27
jdk.compiler
com.sun.source.tree
YieldTree
APIdia Launch Partner
Top
Description
Methods
com.sun.source.tree
public
Interface YieldTree
extends
StatementTree
Known Direct Implementers
com.
sun.
tools.
javac.
tree.
JCTree.
JCYield
A tree node for a
yield
statement. For example:
yield
expression
;
Since
14
Java Language Specification
14.21 The yield Statement
Method Summary
Modifier and Type
Method and Description
public
ExpressionTree
Returns:
the expression
getValue
()
Returns the expression for this
yield
statement.
Method Detail
getValue
back to summary
public
ExpressionTree
getValue
()
Returns the expression for this
yield
statement.
Returns:
ExpressionTree
the expression