OpenJDK 27
jdk.compiler
com.sun.source.tree
UnionTypeTree
APIdia Launch Partner
Top
Description
Methods
com.sun.source.tree
public
Interface UnionTypeTree
extends
Tree
Known Direct Implementers
com.
sun.
tools.
javac.
tree.
JCTree.
JCTypeUnion
Imports
java.
util.
List
A tree node for a union type expression in a multicatch variable declaration.
Author
Maurizio Cimadamore
Since
1.7
Method Summary
Modifier and Type
Method and Description
public
List
<
? extends
Tree
>
Returns:
the alternative type expressions
getTypeAlternatives
()
Returns the alternative type expressions.
Inherited from
com.sun.source.tree.Tree
:
accept
getKind
Method Detail
getTypeAlternatives
back to summary
public
List
<
? extends
Tree
>
getTypeAlternatives
()
Returns the alternative type expressions.
Returns:
List
<
? extends
Tree
>
the alternative type expressions