/[classpath]/classpath/java/lang/Class.java
ViewVC logotype

Diff of /classpath/java/lang/Class.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.22.2.13 by gnu_andrew, Thu Apr 28 23:00:13 2005 UTC revision 1.22.2.14 by gnu_andrew, Fri May 6 00:54:18 2005 UTC
# Line 1417  public final class Class<T> Line 1417  public final class Class<T>
1417      return VMClass.isAnnotation(this);      return VMClass.isAnnotation(this);
1418    }    }
1419    
1420      /**
1421       * Returns the simple name for this class, as used in the source
1422       * code.  For normal classes, this is the content returned by
1423       * <code>getName()</code> which follows the last ".".  Anonymous
1424       * classes have no name, and so the result of calling this method is
1425       * "".  The simple name of an array consists of the simple name of
1426       * its component type, followed by "[]".  Thus, an array with the
1427       * component type of an anonymous class has a simple name of simply
1428       * "[]".
1429       *
1430       * @return the simple name for this class.
1431       */
1432      public String getSimpleName()
1433      {
1434        return VMClass.getSimpleName(this);
1435      }
1436    
1437  }  }

Legend:
Removed from v.1.22.2.13  
changed lines
  Added in v.1.22.2.14

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26