示例#1
0
 /**
  * Gets an identifying name for the source corresponding to the declaration of this type.
  * Interpretation of this string is the responsibility of the source repository mechanism.
  *
  * <p>The returned name is dependent on VM's default stratum ({@link
  * VirtualMachine#getDefaultStratum()}). In the reference implementation, when using the base
  * stratum, the returned string is the unqualified name of the source file containing the
  * declaration of this type. In other strata the returned source name is the first source name for
  * that stratum. Since other languages may have more than one source name for a reference type,
  * the use of {@link Location#sourceName()} or {@link #sourceNames(String)} is preferred.
  *
  * <p>
  *
  * @return the string source file name or null if it is not known
  */
 public String getSourceName() {
   return klass.getSourceFileName();
 }