280 * public java.util.Hashtable(int,float)
281 * </pre>
282 *
283 * <p>The only possible modifiers for constructors are the access
284 * modifiers {@code public}, {@code protected} or
285 * {@code private}. Only one of these may appear, or none if the
286 * constructor has default (package) access.
287 *
288 * @return a string describing this {@code Constructor}
289 * @jls 8.8.3. Constructor Modifiers
290 */
291 public String toString() {
292 return sharedToString(Modifier.constructorModifiers(),
293 false,
294 parameterTypes,
295 exceptionTypes);
296 }
297
298 @Override
299 void specificToStringHeader(StringBuilder sb) {
300 sb.append(Field.getTypeName(getDeclaringClass()));
301 }
302
303 /**
304 * Returns a string describing this {@code Constructor},
305 * including type parameters. The string is formatted as the
306 * constructor access modifiers, if any, followed by an
307 * angle-bracketed comma separated list of the constructor's type
308 * parameters, if any, followed by the fully-qualified name of the
309 * declaring class, followed by a parenthesized, comma-separated
310 * list of the constructor's generic formal parameter types.
311 *
312 * If this constructor was declared to take a variable number of
313 * arguments, instead of denoting the last parameter as
314 * "<tt><i>Type</i>[]</tt>", it is denoted as
315 * "<tt><i>Type</i>...</tt>".
316 *
317 * A space is used to separate access modifiers from one another
318 * and from the type parameters or return type. If there are no
319 * type parameters, the type parameter list is elided; if the type
320 * parameter list is present, a space separates the list from the
|
280 * public java.util.Hashtable(int,float)
281 * </pre>
282 *
283 * <p>The only possible modifiers for constructors are the access
284 * modifiers {@code public}, {@code protected} or
285 * {@code private}. Only one of these may appear, or none if the
286 * constructor has default (package) access.
287 *
288 * @return a string describing this {@code Constructor}
289 * @jls 8.8.3. Constructor Modifiers
290 */
291 public String toString() {
292 return sharedToString(Modifier.constructorModifiers(),
293 false,
294 parameterTypes,
295 exceptionTypes);
296 }
297
298 @Override
299 void specificToStringHeader(StringBuilder sb) {
300 sb.append(getDeclaringClass().getTypeName());
301 }
302
303 /**
304 * Returns a string describing this {@code Constructor},
305 * including type parameters. The string is formatted as the
306 * constructor access modifiers, if any, followed by an
307 * angle-bracketed comma separated list of the constructor's type
308 * parameters, if any, followed by the fully-qualified name of the
309 * declaring class, followed by a parenthesized, comma-separated
310 * list of the constructor's generic formal parameter types.
311 *
312 * If this constructor was declared to take a variable number of
313 * arguments, instead of denoting the last parameter as
314 * "<tt><i>Type</i>[]</tt>", it is denoted as
315 * "<tt><i>Type</i>...</tt>".
316 *
317 * A space is used to separate access modifiers from one another
318 * and from the type parameters or return type. If there are no
319 * type parameters, the type parameter list is elided; if the type
320 * parameter list is present, a space separates the list from the
|