215 int refKind();
216
217 /**
218 * Indicates if the method is declared by an interface
219 *
220 * @return true if the method is declared by an interface
221 */
222 boolean isOwnerInterface();
223
224 /**
225 * Returns a {@link ClassDesc} describing the class declaring the
226 * method or field described by this nominal descriptor.
227 *
228 * @return the class declaring the method or field
229 */
230 ClassDesc owner();
231
232 /**
233 * Returns the name of the method or field described by this nominal descriptor.
234 * For constructors, returns the reserved name {@code "<init>"}.
235 *
236 * @return the name of the method or field
237 */
238 String methodName();
239
240 /**
241 * Returns the lookup descriptor of the method handle described by this descriptor,
242 * after adjusting for the invocation mode. This will correspond to either
243 * a method type descriptor string (for methods and constructors), or a field
244 * descriptor string (for field access method handles). The lookup descriptor
245 * string is in the same format as accepted by {@link MethodHandleDesc#of(Kind, ClassDesc, String, String)}.
246 *
247 * @return the lookup descriptor string
248 */
249 String lookupDescriptor();
250 }
|
215 int refKind();
216
217 /**
218 * Indicates if the method is declared by an interface
219 *
220 * @return true if the method is declared by an interface
221 */
222 boolean isOwnerInterface();
223
224 /**
225 * Returns a {@link ClassDesc} describing the class declaring the
226 * method or field described by this nominal descriptor.
227 *
228 * @return the class declaring the method or field
229 */
230 ClassDesc owner();
231
232 /**
233 * Returns the name of the method or field described by this nominal descriptor.
234 * For constructors, returns the reserved name {@code "<init>"}.
235 * For static value class instance factory methods, return {@code "<vnew>"}.
236 *
237 * @return the name of the method or field
238 */
239 String methodName();
240
241 /**
242 * Returns the lookup descriptor of the method handle described by this descriptor,
243 * after adjusting for the invocation mode. This will correspond to either
244 * a method type descriptor string (for methods and constructors), or a field
245 * descriptor string (for field access method handles). The lookup descriptor
246 * string is in the same format as accepted by {@link MethodHandleDesc#of(Kind, ClassDesc, String, String)}.
247 *
248 * @return the lookup descriptor string
249 */
250 String lookupDescriptor();
251 }
|