Пример #1
0
 @NotNull
 private String renderTypeName(@NotNull TypeConstructor typeConstructor) {
   ClassifierDescriptor cd = typeConstructor.getDeclarationDescriptor();
   if (cd instanceof TypeParameterDescriptor) {
     return renderName(cd.getName());
   } else if (cd instanceof ClassDescriptor) {
     return renderClassName((ClassDescriptor) cd);
   } else {
     assert cd == null : "Unexpected classifier: " + cd.getClass();
     return typeConstructor.toString();
   }
 }
Пример #2
0
 @Override
 public String toString() {
   return constructor.toString();
 }