Module jdk.compiler

Interface YieldTree

所有超级接口:
StatementTree, Tree

public interface YieldTree extends StatementTree
用于yield语句的树节点。例如:
   yield expression ;
 
参见 Java 语言规范:
14.21 yield 语句
自 JDK 版本:
13
  • Nested Class Summary

    Nested classes/interfaces declared in interface com.sun.source.tree.Tree

    Tree.Kind
  • Method Summary

    Modifier and Type
    Method
    Description
    返回此yield语句的表达式。

    Methods declared in interface com.sun.source.tree.Tree

    accept, getKind
  • Method Details

    • getValue

      ExpressionTree getValue()
      返回此yield语句的表达式。
      返回:
      表达式