equal
deleted
inserted
replaced
286 * <p>The modifiers are placed in canonical order as specified by |
286 * <p>The modifiers are placed in canonical order as specified by |
287 * "The Java Language Specification". This is {@code public}, |
287 * "The Java Language Specification". This is {@code public}, |
288 * {@code protected} or {@code private} first, and then other |
288 * {@code protected} or {@code private} first, and then other |
289 * modifiers in the following order: {@code static}, {@code final}, |
289 * modifiers in the following order: {@code static}, {@code final}, |
290 * {@code transient}, {@code volatile}. |
290 * {@code transient}, {@code volatile}. |
|
291 * |
|
292 * @return a string describing this {@code Field} |
|
293 * @jls 8.3.1 Field Modifiers |
291 */ |
294 */ |
292 public String toString() { |
295 public String toString() { |
293 int mod = getModifiers(); |
296 int mod = getModifiers(); |
294 return (((mod == 0) ? "" : (Modifier.toString(mod) + " ")) |
297 return (((mod == 0) ? "" : (Modifier.toString(mod) + " ")) |
295 + getTypeName(getType()) + " " |
298 + getTypeName(getType()) + " " |
313 * |
316 * |
314 * @return a string describing this {@code Field}, including |
317 * @return a string describing this {@code Field}, including |
315 * its generic type |
318 * its generic type |
316 * |
319 * |
317 * @since 1.5 |
320 * @since 1.5 |
|
321 * @jls 8.3.1 Field Modifiers |
318 */ |
322 */ |
319 public String toGenericString() { |
323 public String toGenericString() { |
320 int mod = getModifiers(); |
324 int mod = getModifiers(); |
321 Type fieldType = getGenericType(); |
325 Type fieldType = getGenericType(); |
322 return (((mod == 0) ? "" : (Modifier.toString(mod) + " ")) |
326 return (((mod == 0) ? "" : (Modifier.toString(mod) + " ")) |