darcy@851: /* darcy@851: * Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved. darcy@851: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. darcy@851: * darcy@851: * This code is free software; you can redistribute it and/or modify it darcy@851: * under the terms of the GNU General Public License version 2 only, as darcy@851: * published by the Free Software Foundation. Oracle designates this darcy@851: * particular file as subject to the "Classpath" exception as provided darcy@851: * by Oracle in the LICENSE file that accompanied this code. darcy@851: * darcy@851: * This code is distributed in the hope that it will be useful, but WITHOUT darcy@851: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or darcy@851: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License darcy@851: * version 2 for more details (a copy is included in the LICENSE file that darcy@851: * accompanied this code). darcy@851: * darcy@851: * You should have received a copy of the GNU General Public License version darcy@851: * 2 along with this work; if not, write to the Free Software Foundation, darcy@851: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. darcy@851: * darcy@851: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA darcy@851: * or visit www.oracle.com if you need additional information or have any darcy@851: * questions. darcy@851: */ darcy@851: darcy@851: package javax.lang.model.type; darcy@851: darcy@851: import java.util.List; darcy@851: darcy@851: /** darcy@969: * Represents a union type. darcy@851: * darcy@851: * As of the {@link javax.lang.model.SourceVersion#RELEASE_7 darcy@969: * RELEASE_7} source version, union types can appear as the type darcy@851: * of a multi-catch exception parameter. darcy@851: * darcy@851: * @since 1.7 darcy@851: */ darcy@969: public interface UnionType extends TypeMirror { darcy@851: darcy@851: /** darcy@969: * Return the alternatives comprising this union type. darcy@851: * darcy@969: * @return the alternatives comprising this union type. darcy@851: */ darcy@851: List getAlternatives(); darcy@851: }