final void verifyNotGeneric() { //noinspection ConstantConditions if (isGenericType() && !isGenericTypeDefinition()) { throw new IllegalStateException(); } }
@Override public Type<?> getGenericTypeDefinition() { if (isGenericTypeDefinition()) { return this; } throw Error.notGenericType(this); }
@Override public Type<?> getGenericTypeDefinition() { if (isGenericTypeDefinition()) { return this; } throw Error.notGenericType(this); }
final void verifyNotGeneric() { //noinspection ConstantConditions if (isGenericType() && !isGenericTypeDefinition()) { throw new IllegalStateException(); } }
final void verifyNotGeneric() { //noinspection ConstantConditions if (isGenericType() && !isGenericTypeDefinition()) { throw new IllegalStateException(); } }
@Override public Type<?> getGenericTypeDefinition() { if (isGenericTypeDefinition()) { return this; } throw Error.notGenericType(this); }
@Override protected Type<?> makeGenericTypeCore(final TypeList typeArguments) { if (!isGenericTypeDefinition()) { throw Error.notGenericTypeDefinition(this); } return TypeBuilderInstantiation.makeGenericType(this, typeArguments); }
@Override protected Type<?> makeGenericTypeCore(final TypeList typeArguments) { if (!isGenericTypeDefinition()) { throw Error.notGenericTypeDefinition(this); } return TypeBuilderInstantiation.makeGenericType(this, typeArguments); }
@Override protected Type<?> makeGenericTypeCore(final TypeList typeArguments) { if (!isGenericTypeDefinition()) { throw Error.notGenericTypeDefinition(this); } return TypeBuilderInstantiation.makeGenericType(this, typeArguments); }
static Type makeGenericType(final TypeBuilder<?> type, final TypeList typeArguments) { VerifyArgument.notNull(type, "type"); VerifyArgument.notNull(typeArguments, "typeArguments"); if (!type.isGenericTypeDefinition()) { throw Error.genericTypeDefinitionRequired(); } return new TypeBuilderInstantiation( type, TypeBindings.create( type.getGenericTypeParameters(), typeArguments ) ); }
static Type makeGenericType(final TypeBuilder<?> type, final TypeList typeArguments) { VerifyArgument.notNull(type, "type"); VerifyArgument.notNull(typeArguments, "typeArguments"); if (!type.isGenericTypeDefinition()) { throw Error.genericTypeDefinitionRequired(); } return new TypeBuilderInstantiation( type, TypeBindings.create( type.getGenericTypeParameters(), typeArguments ) ); }
static Type makeGenericType(final TypeBuilder<?> type, final TypeList typeArguments) { VerifyArgument.notNull(type, "type"); VerifyArgument.notNull(typeArguments, "typeArguments"); if (!type.isGenericTypeDefinition()) { throw Error.genericTypeDefinitionRequired(); } return new TypeBuilderInstantiation( type, TypeBindings.create( type.getGenericTypeParameters(), typeArguments ) ); }
if (type.isGenericTypeDefinition()) { typeLevelVerifier.visit(type.getGenericTypeParameters(), type, FrameType.TYPE_VARIABLE);