fun toSignatureString(): String? { val sb = StringBuilder() val accessLevel: String = convertModifiersToAccessLevel(mModifier) if ("" != accessLevel) { sb.append(accessLevel).append(" ") } if (!JDiffType.INTERFACE.equals(mClassType)) { val modifierString: String = convertModifersToModifierString(mModifier) if ("" != modifierString) { sb.append(modifierString).append(" ") } sb.append("class ") } else { sb.append("interface ") } sb.append(mShortClassName) if (mExtendedClass != null) { sb.append(" extends ").append(mExtendedClass).append(" ") } if (implInterfaces.size() > 0) { sb.append(" implements ") for (x in 0 until implInterfaces.size()) { val interf: String = implInterfaces.get(x) sb.append(interf) if (x + 1 != implInterfaces.size()) { sb.append(", ") } } } return sb.toString() }
Convert the class into a printable signature string .