OpenJDK 27
jdk.compiler
com.sun.source.tree
ThrowTree
APIdia Launch Partner
Top
Description
Methods
com.sun.source.tree
public
Interface ThrowTree
extends
StatementTree
Known Direct Implementers
com.
sun.
tools.
javac.
tree.
JCTree.
JCThrow
A tree node for a
throw
statement. For example:
throw
expression
;
Authors
Peter von der Ahé, Jonathan Gibbons
Since
1.6
Java Language Specification
14.18 The throw Statement
Method Summary
Modifier and Type
Method and Description
public
ExpressionTree
Returns:
the expression
getExpression
()
Returns the expression to be thrown.
Method Detail
getExpression
back to summary
public
ExpressionTree
getExpression
()
Returns the expression to be thrown.
Returns:
ExpressionTree
the expression