-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BlockTree
getBlock()
Returns the code block of this catch block.ExpressionTree
getCondition()
Returns the optional catch condition expression.ExpressionTree
getParameter()
Returns the catch parameter identifier or parameter binding pattern of the exception caught.-
Methods declared in interface jdk.nashorn.api.tree.Tree
accept, getEndPosition, getKind, getStartPosition
-
-
-
-
Method Detail
-
getParameter
ExpressionTree getParameter()
Returns the catch parameter identifier or parameter binding pattern of the exception caught.- Returns:
- the catch parameter identifier or parameter binding pattern
-
getBlock
BlockTree getBlock()
Returns the code block of this catch block.- Returns:
- the code block
-
getCondition
ExpressionTree getCondition()
Returns the optional catch condition expression. This is null if this is an unconditional catch statement.- Returns:
- the optional catch condition expression.
-
-