Parameterizable.java revision 3936:ec4be8a26914
1247738Sbapt/*
2247738Sbapt * Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved.
3247738Sbapt * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4247738Sbapt *
5247738Sbapt * This code is free software; you can redistribute it and/or modify it
6247738Sbapt * under the terms of the GNU General Public License version 2 only, as
7247738Sbapt * published by the Free Software Foundation.  Oracle designates this
8247738Sbapt * particular file as subject to the "Classpath" exception as provided
9247738Sbapt * by Oracle in the LICENSE file that accompanied this code.
10247738Sbapt *
11247738Sbapt * This code is distributed in the hope that it will be useful, but WITHOUT
12247738Sbapt * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13247738Sbapt * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14247738Sbapt * version 2 for more details (a copy is included in the LICENSE file that
15247738Sbapt * accompanied this code).
16247738Sbapt *
17247738Sbapt * You should have received a copy of the GNU General Public License version
18247738Sbapt * 2 along with this work; if not, write to the Free Software Foundation,
19247738Sbapt * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20247738Sbapt *
21247738Sbapt * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22247738Sbapt * or visit www.oracle.com if you need additional information or have any
23247738Sbapt * questions.
24247738Sbapt */
25247738Sbapt
26247738Sbaptpackage javax.lang.model.element;
27247738Sbapt
28247738Sbaptimport java.util.List;
29247738Sbapt
30247738Sbapt/**
31247738Sbapt * A mixin interface for an element that has type parameters.
32247738Sbapt *
33247738Sbapt * @author Joseph D. Darcy
34247738Sbapt * @since 1.7
35247738Sbapt */
36247738Sbaptpublic interface Parameterizable extends Element {
37247738Sbapt    /**
38247738Sbapt     * Returns the formal type parameters of an element in
39247738Sbapt     * declaration order.
40247738Sbapt     *
41247738Sbapt     * @return the formal type parameters, or an empty list
42247738Sbapt     * if there are none
43247738Sbapt     */
44247738Sbapt    List<? extends TypeParameterElement> getTypeParameters();
45247738Sbapt}
46247738Sbapt