@Override public String getName() { return _originalType.getName(); }
@Override public String getName() { return _originalType.getName(); }
@Override public String getName() { return _originalType.getName(); }
public static RuntimeException typeNotAnAnnotation(final Type<? extends Annotation> type) { return new IllegalArgumentException( format("Type '%s' is not an annotation.", type.getName()) ); }
public static IllegalStateException checkedExceptionUnhandled(final Type<?> exceptionType) { return new IllegalStateException( format( "Method must handle '%s' or include it in its list of thrown types.", exceptionType.getName() ) ); }
public static RuntimeException annotationRequiresValue(final Type<? extends Annotation> annotationType) { return new IllegalArgumentException( format( "Annotation '%s' requires an argument.", annotationType.getName() ) ); }
public static RuntimeException annotationRequiresValue(final Type<? extends Annotation> annotationType) { return new IllegalArgumentException( format( "Annotation '%s' requires an argument.", annotationType.getName() ) ); }
public static RuntimeException typeNotAnAnnotation(final Type<? extends Annotation> type) { return new IllegalArgumentException( format("Type '%s' is not an annotation.", type.getName()) ); }
public static RuntimeException annotationRequiresValue(final Type<? extends Annotation> annotationType) { return new IllegalArgumentException( format( "Annotation '%s' requires an argument.", annotationType.getName() ) ); }
public static IllegalStateException checkedExceptionUnhandled(final Type<?> exceptionType) { return new IllegalStateException( format( "Method must handle '%s' or include it in its list of thrown types.", exceptionType.getName() ) ); }
public static IllegalStateException checkedExceptionUnhandled(final Type<?> exceptionType) { return new IllegalStateException( format( "Method must handle '%s' or include it in its list of thrown types.", exceptionType.getName() ) ); }
public static RuntimeException typeNotAnAnnotation(final Type<? extends Annotation> type) { return new IllegalArgumentException( format("Type '%s' is not an annotation.", type.getName()) ); }
public static RuntimeException typeMustBeInterface(final Type<?> type) { if (type == null) { return typeMustBeInterface(); } return new IllegalArgumentException(format("Type %s is not an interface.", type.getName())); }
public StringBuilder appendSignature(final StringBuilder sb) { if (isGenericParameter()) { sb.append('T'); sb.append(getName()); sb.append(';'); return sb; } return _appendClassSignature(sb); }
public StringBuilder appendSignature(final StringBuilder sb) { if (isGenericParameter()) { sb.append('T'); sb.append(getName()); sb.append(';'); return sb; } return _appendClassSignature(sb); }
public StringBuilder appendSignature(final StringBuilder sb) { if (isGenericParameter()) { sb.append('T'); sb.append(getName()); sb.append(';'); return sb; } return _appendClassSignature(sb); }
@Override public StringBuilder appendSimpleDescription(final StringBuilder sb) { sb.append(getFullName()); final Type<?> upperBound = getExtendsBound(); if (upperBound != null && upperBound != Types.Object) { sb.append(" extends "); if (upperBound.isGenericParameter() || upperBound == getDeclaringType()) { return sb.append(upperBound.getName()); } return upperBound.appendErasedDescription(sb); } return sb; }
@Override public StringBuilder appendSimpleDescription(final StringBuilder sb) { sb.append(getFullName()); final Type<?> upperBound = getExtendsBound(); if (upperBound != null && upperBound != Types.Object) { sb.append(" extends "); if (upperBound.isGenericParameter() || upperBound == getDeclaringType()) { return sb.append(upperBound.getName()); } return upperBound.appendErasedDescription(sb); } return sb; }
@Override public StringBuilder appendDescription(final StringBuilder sb) { StringBuilder s = sb; for (final javax.lang.model.element.Modifier modifier : Flags.asModifierSet(getModifiers())) { s.append(modifier.toString()); s.append(' '); } final Type fieldType = getFieldType(); if (fieldType.isGenericParameter()) { s.append(fieldType.getName()); } else { s = fieldType.appendBriefDescription(s); } s.append(' '); s.append(getName()); return s; }
@Override public StringBuilder appendDescription(final StringBuilder sb) { StringBuilder s = sb; for (final javax.lang.model.element.Modifier modifier : Flags.asModifierSet(getModifiers())) { s.append(modifier.toString()); s.append(' '); } final Type fieldType = getFieldType(); if (fieldType.isGenericParameter()) { s.append(fieldType.getName()); } else { s = fieldType.appendBriefDescription(s); } s.append(' '); s.append(getName()); return s; }