UnionTypeTree.java revision 3193:3b3bea483542
1191739Sobrien/*
2191739Sobrien * Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved.
3191739Sobrien * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4191739Sobrien *
5191739Sobrien * This code is free software; you can redistribute it and/or modify it
6191739Sobrien * under the terms of the GNU General Public License version 2 only, as
7191739Sobrien * published by the Free Software Foundation.  Oracle designates this
8267843Sdelphij * particular file as subject to the "Classpath" exception as provided
9191739Sobrien * by Oracle in the LICENSE file that accompanied this code.
10191739Sobrien *
11191739Sobrien * This code is distributed in the hope that it will be useful, but WITHOUT
12234250Sobrien * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13191739Sobrien * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14191739Sobrien * version 2 for more details (a copy is included in the LICENSE file that
15226048Sobrien * accompanied this code).
16226048Sobrien *
17226048Sobrien * You should have received a copy of the GNU General Public License version
18226048Sobrien * 2 along with this work; if not, write to the Free Software Foundation,
19226048Sobrien * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20226048Sobrien *
21191739Sobrien * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22191739Sobrien * or visit www.oracle.com if you need additional information or have any
23191739Sobrien * questions.
24267843Sdelphij */
25267843Sdelphij
26267843Sdelphijpackage com.sun.source.tree;
27267843Sdelphij
28267843Sdelphijimport java.util.List;
29267843Sdelphij
30267843Sdelphij/**
31 * A tree node for a union type expression in a multicatch
32 * variable declaration.
33 *
34 * @author Maurizio Cimadamore
35 *
36 * @since 1.7
37 */
38public interface UnionTypeTree extends Tree {
39    /**
40     * Returns the alternative type expressions.
41     * @return the alternative type expressions
42     */
43    List<? extends Tree> getTypeAlternatives();
44}
45