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
    • Method Detail

      • getExpression

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