Top Description Methods
com.sun.source.tree

public Interface CatchTree

extends Tree
Known Direct Implementers
com.sun.tools.javac.tree.JCTree.JCCatch

A tree node for a catch block in a try statement. For example:
  catch ( parameter )
      block
Authors
Peter von der Ahé, Jonathan Gibbons
Since
1.6
Java Language Specification
14.20 The try statement

Method Summary

Modifier and TypeMethod and Description
public BlockTree

Returns:

the catch block
getBlock
()

Returns the catch block.

public VariableTree

Returns:

the catch variable
getParameter
()

Returns the catch variable.

Inherited from com.sun.source.tree.Tree:
acceptgetKind

Method Detail

getBlockback to summary
public BlockTree getBlock()

Returns the catch block.

Returns:BlockTree

the catch block

getParameterback to summary
public VariableTree getParameter()

Returns the catch variable. A multi-catch variable will have a UnionTypeTree as the type of the variable.

Returns:VariableTree

the catch variable