示例#1
0
 /**
  * Build the emittable type name. The type may be an array and/or a generic type.
  *
  * @param type A Type object
  * @return The emittable type name
  */
 private String buildEmittableTypeString(com.sun.javadoc.Type type) {
   if (type == null) {
     return null;
   }
   // type.toString() returns the fully qualified name of the type
   // including the dimension and the parameters we just need to
   // escape the generic parameters brackets so that the XML
   // generated is correct
   String name =
       type.toString().replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
   if (name.startsWith("<<ambiguous>>")) {
     name = name.substring(13);
   }
   return name;
 }