src/share/classes/javax/lang/model/type/UnionType.java

Wed, 06 Apr 2011 19:30:57 -0700

author
darcy
date
Wed, 06 Apr 2011 19:30:57 -0700
changeset 969
8cc5b440fdde
parent 851
src/share/classes/javax/lang/model/type/DisjunctiveType.java@cad51b6eb7a6
child 2525
2eb010b6cb22
permissions
-rw-r--r--

7033809: Rename "disjunctive" to "union" in javax.lang.model
Reviewed-by: mcimadamore, jjg

darcy@851 1 /*
darcy@851 2 * Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
darcy@851 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
darcy@851 4 *
darcy@851 5 * This code is free software; you can redistribute it and/or modify it
darcy@851 6 * under the terms of the GNU General Public License version 2 only, as
darcy@851 7 * published by the Free Software Foundation. Oracle designates this
darcy@851 8 * particular file as subject to the "Classpath" exception as provided
darcy@851 9 * by Oracle in the LICENSE file that accompanied this code.
darcy@851 10 *
darcy@851 11 * This code is distributed in the hope that it will be useful, but WITHOUT
darcy@851 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
darcy@851 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
darcy@851 14 * version 2 for more details (a copy is included in the LICENSE file that
darcy@851 15 * accompanied this code).
darcy@851 16 *
darcy@851 17 * You should have received a copy of the GNU General Public License version
darcy@851 18 * 2 along with this work; if not, write to the Free Software Foundation,
darcy@851 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
darcy@851 20 *
darcy@851 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
darcy@851 22 * or visit www.oracle.com if you need additional information or have any
darcy@851 23 * questions.
darcy@851 24 */
darcy@851 25
darcy@851 26 package javax.lang.model.type;
darcy@851 27
darcy@851 28 import java.util.List;
darcy@851 29
darcy@851 30 /**
darcy@969 31 * Represents a union type.
darcy@851 32 *
darcy@851 33 * As of the {@link javax.lang.model.SourceVersion#RELEASE_7
darcy@969 34 * RELEASE_7} source version, union types can appear as the type
darcy@851 35 * of a multi-catch exception parameter.
darcy@851 36 *
darcy@851 37 * @since 1.7
darcy@851 38 */
darcy@969 39 public interface UnionType extends TypeMirror {
darcy@851 40
darcy@851 41 /**
darcy@969 42 * Return the alternatives comprising this union type.
darcy@851 43 *
darcy@969 44 * @return the alternatives comprising this union type.
darcy@851 45 */
darcy@851 46 List<? extends TypeMirror> getAlternatives();
darcy@851 47 }

mercurial