equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2005, 2013, 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 |
67 * or an empty list if there are none |
67 * or an empty list if there are none |
68 */ |
68 */ |
69 List<? extends VariableElement> getParameters(); |
69 List<? extends VariableElement> getParameters(); |
70 |
70 |
71 /** |
71 /** |
|
72 * Returns the receiver type of this executable, |
|
73 * or {@link javax.lang.model.type.NoType NoType} with |
|
74 * kind {@link javax.lang.model.type.TypeKind#NONE NONE} |
|
75 * if the executable has no receiver type. |
|
76 * |
|
77 * An executable which is an instance method, or a constructor of an |
|
78 * inner class, has a receiver type derived from the {@linkplain |
|
79 * #getEnclosingElement declaring type}. |
|
80 * |
|
81 * An executable which is a static method, or a constructor of a |
|
82 * non-inner class, or an initializer (static or instance), has no |
|
83 * receiver type. |
|
84 * |
|
85 * @return the receiver type of this executable |
|
86 * @since 1.8 |
|
87 */ |
|
88 TypeMirror getReceiverType(); |
|
89 |
|
90 /** |
72 * Returns {@code true} if this method or constructor accepts a variable |
91 * Returns {@code true} if this method or constructor accepts a variable |
73 * number of arguments and returns {@code false} otherwise. |
92 * number of arguments and returns {@code false} otherwise. |
74 * |
93 * |
75 * @return {@code true} if this method or constructor accepts a variable |
94 * @return {@code true} if this method or constructor accepts a variable |
76 * number of arguments and {@code false} otherwise |
95 * number of arguments and {@code false} otherwise |