equal
deleted
inserted
replaced
339 * for java.util.Map.Entry |
339 * for java.util.Map.Entry |
340 * return Map.Entry |
340 * return Map.Entry |
341 * </pre> |
341 * </pre> |
342 */ |
342 */ |
343 public String name() { |
343 public String name() { |
344 return getClassName(tsym, false); |
344 if (name == null) { |
345 } |
345 name = getClassName(tsym, false); |
|
346 } |
|
347 return name; |
|
348 } |
|
349 |
|
350 private String name; |
346 |
351 |
347 /** |
352 /** |
348 * Return the qualified class name as a String. |
353 * Return the qualified class name as a String. |
349 * <pre> |
354 * <pre> |
350 * Example: |
355 * Example: |
352 * return java.util.Hashtable |
357 * return java.util.Hashtable |
353 * if no qualifier, just return flat name |
358 * if no qualifier, just return flat name |
354 * </pre> |
359 * </pre> |
355 */ |
360 */ |
356 public String qualifiedName() { |
361 public String qualifiedName() { |
357 return getClassName(tsym, true); |
362 if (qualifiedName == null) { |
358 } |
363 qualifiedName = getClassName(tsym, true); |
|
364 } |
|
365 return qualifiedName; |
|
366 } |
|
367 |
|
368 private String qualifiedName; |
359 |
369 |
360 /** |
370 /** |
361 * Return unqualified name of type excluding any dimension information. |
371 * Return unqualified name of type excluding any dimension information. |
362 * <p> |
372 * <p> |
363 * For example, a two dimensional array of String returns 'String'. |
373 * For example, a two dimensional array of String returns 'String'. |
378 |
388 |
379 /** |
389 /** |
380 * Return the simple name of this type. |
390 * Return the simple name of this type. |
381 */ |
391 */ |
382 public String simpleTypeName() { |
392 public String simpleTypeName() { |
383 return tsym.name.toString(); |
393 if (simpleTypeName == null) { |
384 } |
394 simpleTypeName = tsym.name.toString(); |
|
395 } |
|
396 return simpleTypeName; |
|
397 } |
|
398 |
|
399 private String simpleTypeName; |
385 |
400 |
386 /** |
401 /** |
387 * Return the qualified name and any type parameters. |
402 * Return the qualified name and any type parameters. |
388 * Each parameter is a type variable with optional bounds. |
403 * Each parameter is a type variable with optional bounds. |
389 */ |
404 */ |