307 public abstract String toGenericString();
308
309 /**
310 * Returns {@code true} if this executable was declared to take a
311 * variable number of arguments; returns {@code false} otherwise.
312 *
313 * @return {@code true} if an only if this executable was declared
314 * to take a variable number of arguments.
315 */
316 public boolean isVarArgs() {
317 return (getModifiers() & Modifier.VARARGS) != 0;
318 }
319
320 /**
321 * Returns {@code true} if this executable is a synthetic
322 * construct; returns {@code false} otherwise.
323 *
324 * @return true if and only if this executable is a synthetic
325 * construct as defined by
326 * <cite>The Java™ Language Specification</cite>.
327 */
328 public boolean isSynthetic() {
329 return Modifier.isSynthetic(getModifiers());
330 }
331
332 /**
333 * Returns an array of arrays that represent the annotations on
334 * the formal parameters, in declaration order, of the executable
335 * represented by this object. (Returns an array of length zero if
336 * the underlying executable is parameterless. If the executable has
337 * one or more parameters, a nested array of length zero is
338 * returned for each parameter with no annotations.) The
339 * annotation objects contained in the returned arrays are
340 * serializable. The caller of this method is free to modify the
341 * returned arrays; it will have no effect on the arrays returned
342 * to other callers.
343 *
344 * @return an array of arrays that represent the annotations on the formal
345 * parameters, in declaration order, of the executable represented by this
346 * object
|
307 public abstract String toGenericString();
308
309 /**
310 * Returns {@code true} if this executable was declared to take a
311 * variable number of arguments; returns {@code false} otherwise.
312 *
313 * @return {@code true} if an only if this executable was declared
314 * to take a variable number of arguments.
315 */
316 public boolean isVarArgs() {
317 return (getModifiers() & Modifier.VARARGS) != 0;
318 }
319
320 /**
321 * Returns {@code true} if this executable is a synthetic
322 * construct; returns {@code false} otherwise.
323 *
324 * @return true if and only if this executable is a synthetic
325 * construct as defined by
326 * <cite>The Java™ Language Specification</cite>.
327 * @jls 13.1 The Form of a Binary
328 */
329 public boolean isSynthetic() {
330 return Modifier.isSynthetic(getModifiers());
331 }
332
333 /**
334 * Returns an array of arrays that represent the annotations on
335 * the formal parameters, in declaration order, of the executable
336 * represented by this object. (Returns an array of length zero if
337 * the underlying executable is parameterless. If the executable has
338 * one or more parameters, a nested array of length zero is
339 * returned for each parameter with no annotations.) The
340 * annotation objects contained in the returned arrays are
341 * serializable. The caller of this method is free to modify the
342 * returned arrays; it will have no effect on the arrays returned
343 * to other callers.
344 *
345 * @return an array of arrays that represent the annotations on the formal
346 * parameters, in declaration order, of the executable represented by this
347 * object
|