/** * Append a type signature * * @param buf Buffer to append to * @param role Role (class or super) * @param type Type to append signature of * @param annotatedSignatureWriter Signature writer * @return <code>true</code> if any nullability information was written * @throws IOException if we stumble and fall... */ protected boolean appendTypeSignature(StringBuilder buf, String role, Generic type, MethodSignatureWriter annotatedSignatureWriter) throws IOException { boolean annotated = false; buf.append(role).append(' ').append(type.asErasure().getInternalName()).append("\n"); TypeList.Generic typeVariables = type.asErasure().getTypeVariables(); if (!typeVariables.isEmpty()) { if (appendTypeParameters(buf, typeVariables, annotatedSignatureWriter)) { annotated = true; } } return annotated; }
/** * Append a type signature * * @param buf Buffer to append to * @param role Role (class or super) * @param type Type to append signature of * @param annotatedSignatureWriter Signature writer * @return <code>true</code> if any nullability information was written * @throws IOException if we stumble and fall... */ protected boolean appendTypeSignature(StringBuilder buf, String role, Generic type, MethodSignatureWriter annotatedSignatureWriter) throws IOException { boolean annotated = false; buf.append(role).append(' ').append(type.asErasure().getInternalName()).append("\n"); TypeList.Generic typeVariables = type.asErasure().getTypeVariables(); if (!typeVariables.isEmpty()) { if (appendTypeParameters(buf, typeVariables, annotatedSignatureWriter)) { annotated = true; } } return annotated; }