public StringBuilder visitTypeParamType(TypeParamType type, StringBuilder sb) { sb.append(type.name); String sep = " extends "; if (type.classBound != null && (options.verbose || !type.classBound.isObject())) { sb.append(sep); append(sb, type.classBound); sep = " & "; } if (type.interfaceBounds != null) { for (Type bound: type.interfaceBounds) { sb.append(sep); append(sb, bound); sep = " & "; } } return sb; }
@Override public StringBuilder visitTypeParamType(TypeParamType type, StringBuilder sb) { sb.append(type.name); String sep = " extends "; if (type.classBound != null && (options.verbose || !type.classBound.isObject())) { sb.append(sep); append(sb, type.classBound); sep = " & "; } if (type.interfaceBounds != null) { for (Type bound: type.interfaceBounds) { sb.append(sep); append(sb, bound); sep = " & "; } } return sb; }
public String visitTypeParamType(TypeParamType type, Void p) { StringBuilder sb = new StringBuilder(); sb.append("TA{"); sb.append(type.name); if (type.classBound != null) { sb.append(":c"); sb.append(print(type.classBound)); } if (type.interfaceBounds != null) sb.append(print(":i", type.interfaceBounds, "")); sb.append("}"); return sb.toString(); }
String printTypeArgs(List<? extends TypeParamType> typeParamTypes) { StringBuilder builder = new StringBuilder(); appendIfNotEmpty(builder, "<", typeParamTypes, "> "); return builder.toString(); }
public Void visitTypeParamType(TypeParamType type, Void p) { findDependencies(type.classBound); findDependencies(type.interfaceBounds); return null; }