equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
38 * @author Peter von der Ahé |
38 * @author Peter von der Ahé |
39 * @see ExecutableType |
39 * @see ExecutableType |
40 * @since 1.6 |
40 * @since 1.6 |
41 */ |
41 */ |
42 public interface ExecutableElement extends Element, Parameterizable { |
42 public interface ExecutableElement extends Element, Parameterizable { |
|
43 /** |
|
44 * Returns the {@linkplain ExecutableType executable type} defined |
|
45 * by this executable element. |
|
46 * |
|
47 * @return the executable type defined by this executable element |
|
48 * |
|
49 * @see ExecutableType |
|
50 */ |
|
51 @Override |
|
52 TypeMirror asType(); |
|
53 |
43 /** |
54 /** |
44 * Returns the formal type parameters of this executable |
55 * Returns the formal type parameters of this executable |
45 * in declaration order. |
56 * in declaration order. |
46 * |
57 * |
47 * @return the formal type parameters, or an empty list |
58 * @return the formal type parameters, or an empty list |
82 * non-inner class, or an initializer (static or instance), has no |
93 * non-inner class, or an initializer (static or instance), has no |
83 * receiver type. |
94 * receiver type. |
84 * |
95 * |
85 * @return the receiver type of this executable |
96 * @return the receiver type of this executable |
86 * @since 1.8 |
97 * @since 1.8 |
|
98 * |
|
99 * @jls 8.4 Method Declarations |
|
100 * @jls 8.4.1 Formal Parameters |
|
101 * @jls 8.8 Constructor Declarations |
87 */ |
102 */ |
88 TypeMirror getReceiverType(); |
103 TypeMirror getReceiverType(); |
89 |
104 |
90 /** |
105 /** |
91 * Returns {@code true} if this method or constructor accepts a variable |
106 * Returns {@code true} if this method or constructor accepts a variable |