Module jdk.compiler

Interface ThrowTree

所有超级接口:
StatementTree, Tree

public interface ThrowTree extends StatementTree
用于throw语句的树节点。例如:
   throw expression;
 
参见 Java 语言规范:
14.18 抛出语句
自版本:
1.6
  • Nested Class Summary

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

    Tree.Kind
  • Method Summary

    Modifier and Type
    Method
    Description
    返回要抛出的表达式。

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

    accept, getKind
  • Method Details

    • getExpression

      ExpressionTree getExpression()
      返回要抛出的表达式。
      返回:
      表达式