Module jdk.compiler

Interface ThrowTree

  • All Superinterfaces:
    StatementTree, Tree

    public interface ThrowTree
    extends StatementTree
    A tree node for a throw statement. For example:
       throw expression;
     
    Since:
    1.6
    See The Java™ Language Specification:
    section 14.18
    • Nested Class Summary

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

        Tree.Kind
    • Method Summary

      Modifier and Type Method Description
      ExpressionTree getExpression()
      Returns the expression to be thrown.
    • Method Detail

      • getExpression

        ExpressionTree getExpression()
        Returns the expression to be thrown.
        Returns:
        the expression