APIdia Launch Partner
Top Description Methods
javax.lang.model.type

public Interface UnionType

extends TypeMirror
Imports
java.util.List

Represents a union type. Union types can appear as the type of a multi-catch exception parameter.
Since
1.7
Java Language Specification
14.20 The try statement

Method Summary

Modifier and TypeMethod and Description
public List<? extends TypeMirror>

Returns:

the alternatives comprising this union type
getAlternatives
()

Returns the alternatives comprising this union type.

Inherited from javax.lang.model.type.TypeMirror:
acceptequalsgetAnnotationgetAnnotationMirrorsgetAnnotationsByTypegetKindhashCodetoString

Method Detail

getAlternativesback to summary
public List<? extends TypeMirror> getAlternatives()

Returns the alternatives comprising this union type.

Returns:List<? extends TypeMirror>

the alternatives comprising this union type