@Override
 public String getQualifiedName(char innerClassDelimiter) {
   if (simpleName == null) return null;
   JvmDeclaredType declaringType = getDeclaringType();
   if (declaringType == null) {
     if (Strings.isEmpty(packageName)) return simpleName;
     return packageName + "." + simpleName;
   }
   String parentName = declaringType.getQualifiedName(innerClassDelimiter);
   if (parentName == null) return null;
   return parentName + innerClassDelimiter + simpleName;
 }
Exemplo n.º 2
0
 /**
  * We cannot rely on JvmType#getIdentifier as it is cached and does not pick up changed
  * simpleNames, e.g. in rename refactoring.
  */
 protected String serializeType(JvmDeclaredType type) {
   return type.getQualifiedName('.');
 }