public boolean isGenericTypeDefinition() { if (!isGenericType()) { return false; } final TypeBindings typeArguments = getTypeBindings(); return !typeArguments.isEmpty() && !typeArguments.hasBoundParameters(); }
public boolean isGenericMethodDefinition() { if (!isGenericMethod()) { return false; } final TypeBindings typeArguments = getTypeBindings(); return !typeArguments.isEmpty() && !typeArguments.hasBoundParameters(); }
public boolean isGenericTypeDefinition() { if (!isGenericType()) { return false; } final TypeBindings typeArguments = getTypeBindings(); return !typeArguments.isEmpty() && !typeArguments.hasBoundParameters(); }
public boolean isGenericMethodDefinition() { if (!isGenericMethod()) { return false; } final TypeBindings typeArguments = getTypeBindings(); return !typeArguments.isEmpty() && !typeArguments.hasBoundParameters(); }
public boolean isGenericTypeDefinition() { if (!isGenericType()) { return false; } final TypeBindings typeArguments = getTypeBindings(); return !typeArguments.isEmpty() && !typeArguments.hasBoundParameters(); }
public boolean isGenericMethodDefinition() { if (!isGenericMethod()) { return false; } final TypeBindings typeArguments = getTypeBindings(); return !typeArguments.isEmpty() && !typeArguments.hasBoundParameters(); }
public MethodInfo makeGenericMethod(final TypeList typeArguments) { if (!isGenericMethodDefinition()) { throw Error.notGenericMethodDefinition(this); } final TypeBindings bindings = TypeBindings.create(getGenericMethodParameters(), typeArguments); if (!bindings.hasBoundParameters()) { throw new IllegalArgumentException("At least one generic parameter must be bound."); } return new GenericMethod(bindings, this); }
public MethodInfo makeGenericMethod(final TypeList typeArguments) { if (!isGenericMethodDefinition()) { throw Error.notGenericMethodDefinition(this); } final TypeBindings bindings = TypeBindings.create(getGenericMethodParameters(), typeArguments); if (!bindings.hasBoundParameters()) { throw new IllegalArgumentException("At least one generic parameter must be bound."); } return new GenericMethod(bindings, this); } }
public MethodInfo makeGenericMethod(final TypeList typeArguments) { if (!isGenericMethodDefinition()) { throw Error.notGenericMethodDefinition(this); } final TypeBindings bindings = TypeBindings.create(getGenericMethodParameters(), typeArguments); if (!bindings.hasBoundParameters()) { throw new IllegalArgumentException("At least one generic parameter must be bound."); } return new GenericMethod(bindings, this); } }
@Override public Type getGenericTypeDefinition() { if (!isGenericType()) { throw Error.notGenericType(this); } if (!getTypeBindings().hasBoundParameters()) { return this; } throw ContractUtils.unreachable(); }
@Override public Type getGenericTypeDefinition() { if (!isGenericType()) { throw Error.notGenericType(this); } if (!getTypeBindings().hasBoundParameters()) { return this; } throw ContractUtils.unreachable(); }
@Override public Type getGenericTypeDefinition() { if (!isGenericType()) { throw Error.notGenericType(this); } if (!getTypeBindings().hasBoundParameters()) { return this; } throw ContractUtils.unreachable(); }
); if (typeBindings.hasBoundParameters()) { return resolvedType.makeGenericType(typeArguments);
); if (typeBindings.hasBoundParameters()) { return resolvedType.makeGenericType(typeArguments);
); if (typeBindings.hasBoundParameters()) { return resolvedType.makeGenericType(typeArguments);