Home | History | Annotate | Download | only in reflect

Lines Matching defs:typeVariable

43 import java.lang.reflect.TypeVariable;
151 * Returns a new {@link TypeVariable} that belongs to {@code declaration} with
154 static <D extends GenericDeclaration> TypeVariable<D> newArtificialTypeVariable(
193 @Override void visitTypeVariable(TypeVariable<?> t) {
324 private static <D extends GenericDeclaration> TypeVariable<D> newTypeVariableImpl(
329 TypeVariable<D> typeVariable = Reflection.newProxy(
330 TypeVariable.class, new TypeVariableInvocationHandler(typeVariableImpl));
331 return typeVariable;
337 * <p>Java 8 introduced a new method {@code getAnnotatedBounds()} in the {@link TypeVariable}
343 * get an implementation. If the method being called on the {@code TypeVariable} instance has
347 * does mean that users on Java 8 who obtain an instance of {@code TypeVariable} from {@link
432 // equal only to our TypeVariable implementation with identical bounds
445 // equal to any TypeVariable implementation regardless of bounds
446 if (obj instanceof TypeVariable) {
447 TypeVariable<?> that = (TypeVariable<?>) obj;
584 if (AnnotatedElement.class.isAssignableFrom(TypeVariable.class)) {
611 * TypeVariable implementations. As a result, we need to make sure our TypeVariable implementation
614 * unless some of its bounds have changed in resolution. This avoids creating unequal TypeVariable
616 * TypeVariable to be unequal to any native TypeVariable anyway.