jtulach@258: /* jtulach@258: * Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved. jtulach@258: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. jtulach@258: * jtulach@258: * This code is free software; you can redistribute it and/or modify it jtulach@258: * under the terms of the GNU General Public License version 2 only, as jtulach@258: * published by the Free Software Foundation. Oracle designates this jtulach@258: * particular file as subject to the "Classpath" exception as provided jtulach@258: * by Oracle in the LICENSE file that accompanied this code. jtulach@258: * jtulach@258: * This code is distributed in the hope that it will be useful, but WITHOUT jtulach@258: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or jtulach@258: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License jtulach@258: * version 2 for more details (a copy is included in the LICENSE file that jtulach@258: * accompanied this code). jtulach@258: * jtulach@258: * You should have received a copy of the GNU General Public License version jtulach@258: * 2 along with this work; if not, write to the Free Software Foundation, jtulach@258: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. jtulach@258: * jtulach@258: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA jtulach@258: * or visit www.oracle.com if you need additional information or have any jtulach@258: * questions. jtulach@258: */ jtulach@258: jtulach@258: package java.lang.reflect; jtulach@258: jtulach@258: /** jtulach@258: * A common interface for all entities that declare type variables. jtulach@258: * jtulach@258: * @since 1.5 jtulach@258: */ jtulach@258: public interface GenericDeclaration { jtulach@258: /** jtulach@258: * Returns an array of {@code TypeVariable} objects that jtulach@258: * represent the type variables declared by the generic jtulach@258: * declaration represented by this {@code GenericDeclaration} jtulach@258: * object, in declaration order. Returns an array of length 0 if jtulach@258: * the underlying generic declaration declares no type variables. jtulach@258: * jtulach@258: * @return an array of {@code TypeVariable} objects that represent jtulach@258: * the type variables declared by this generic declaration jtulach@258: * @throws GenericSignatureFormatError if the generic jtulach@258: * signature of this generic declaration does not conform to jtulach@258: * the format specified in jtulach@258: * The Java™ Virtual Machine Specification jtulach@258: */ jtulach@258: public TypeVariable[] getTypeParameters(); jtulach@258: }