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

Tue, 01 Feb 2011 10:11:05 -0800

author
darcy
date
Tue, 01 Feb 2011 10:11:05 -0800
changeset 851
cad51b6eb7a6
permissions
-rw-r--r--

6961571: Update visitors to support ARM's ElementKind.RESOURCE_VARIABLE
Reviewed-by: 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@851 31 * Represents a disjunctive type.
darcy@851 32 *
darcy@851 33 * As of the {@link javax.lang.model.SourceVersion#RELEASE_7
darcy@851 34 * RELEASE_7} source version, disjunctive 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@851 39 public interface DisjunctiveType extends TypeMirror {
darcy@851 40
darcy@851 41 /**
darcy@851 42 * Return the alternatives comprising this disjunctive type.
darcy@851 43 *
darcy@851 44 * The alternatives are formally referred to as <i>disjuncts</i>.
darcy@851 45 *
darcy@851 46 * @return the alternatives comprising this disjunctive type.
darcy@851 47 */
darcy@851 48 List<? extends TypeMirror> getAlternatives();
darcy@851 49 }

mercurial