@Override public StringBuilder appendBriefDescription(StringBuilder sb) { sb = _elementType.appendBriefDescription(sb); sb.append("[]"); return sb; }
@Override public StringBuilder appendBriefDescription(StringBuilder sb) { sb = _elementType.appendBriefDescription(sb); sb.append("[]"); return sb; }
/** * Human-readable brief description of type, which does not include * information about super types. */ public String getBriefDescription() { StringBuilder sb = new StringBuilder(); return appendBriefDescription(sb).toString(); }
/** * Human-readable brief description of type, which does not include * information about super types. */ public String getBriefDescription() { StringBuilder sb = new StringBuilder(); return appendBriefDescription(sb).toString(); }
@Override public String toString() { if (_types.length == 0) { return ""; } StringBuilder sb = new StringBuilder(); sb.append('<'); for (int i = 0, len = _types.length; i < len; ++i) { if (i > 0) { sb.append(','); } sb = _types[i].appendBriefDescription(sb); } sb.append('>'); return sb.toString(); }
@Override public String toString() { if (_types.length == 0) { return ""; } StringBuilder sb = new StringBuilder(); sb.append('<'); for (int i = 0, len = _types.length; i < len; ++i) { if (i > 0) { sb.append(','); } sb = _types[i].appendBriefDescription(sb); } sb.append('>'); return sb.toString(); }
@Override public StringBuilder appendFullDescription(StringBuilder sb) { sb = _appendClassDescription(sb); if (_superClass != null) { sb.append(" extends "); sb = _superClass.appendBriefDescription(sb); } // interfaces 'extend' other interfaces... int count = _superInterfaces.length; if (count > 0) { sb.append(" implements "); for (int i = 0; i < count; ++i) { if (i > 0) { sb.append(","); } sb = _superInterfaces[i].appendBriefDescription(sb); } } return sb; } }
@Override public StringBuilder appendFullDescription(StringBuilder sb) { sb = _appendClassDescription(sb); if (_superClass != null) { sb.append(" extends "); sb = _superClass.appendBriefDescription(sb); } // interfaces 'extend' other interfaces... int count = _superInterfaces.length; if (count > 0) { sb.append(" implements "); for (int i = 0; i < count; ++i) { if (i > 0) { sb.append(","); } sb = _superInterfaces[i].appendBriefDescription(sb); } } return sb; } }
@Override public StringBuilder appendFullDescription(StringBuilder sb) { sb = _appendClassDescription(sb); // interfaces 'extend' other interfaces... int count = _superInterfaces.length; if (count > 0) { sb.append(" extends "); for (int i = 0; i < count; ++i) { if (i > 0) { sb.append(","); } sb = _superInterfaces[i].appendBriefDescription(sb); } } return sb; } }
@Override public StringBuilder appendFullDescription(StringBuilder sb) { sb = _appendClassDescription(sb); // interfaces 'extend' other interfaces... int count = _superInterfaces.length; if (count > 0) { sb.append(" extends "); for (int i = 0; i < count; ++i) { if (i > 0) { sb.append(","); } sb = _superInterfaces[i].appendBriefDescription(sb); } } return sb; } }
protected StringBuilder _appendClassDescription(StringBuilder sb) { sb.append(_erasedType.getName()); int count = _typeBindings.size(); if (count > 0) { sb.append('<'); for (int i = 0; i < count; ++i) { if (i > 0) { sb.append(','); } sb = _typeBindings.getBoundType(i).appendBriefDescription(sb); } sb.append('>'); } return sb; }
protected StringBuilder _appendClassDescription(StringBuilder sb) { sb.append(_erasedType.getName()); int count = _typeBindings.size(); if (count > 0) { sb.append('<'); for (int i = 0; i < count; ++i) { if (i > 0) { sb.append(','); } sb = _typeBindings.getBoundType(i).appendBriefDescription(sb); } sb.append('>'); } return sb; }