@Override public R visitCapturedType(final Type<?> t, final P s) { return visitWildcardType(((CapturedType<?>) t).getWildcard(), s); } }
@Override @SuppressWarnings("unchecked") public Class<T> getErasedClass() { return (Class<T>) resolveErasedClass(); }
currentS.head = Si = new CapturedType( Si.getDeclaringType(), substitute(Ui, A, S), Type.Bottom, Si.getWildcard() ); currentS.head = Si = new CapturedType( Si.getDeclaringType(), glb(Ti.getExtendsBound(), substitute(Ui, A, S)), Type.Bottom, Si.getWildcard() ); currentS.head = Si = new CapturedType( Si.getDeclaringType(), substitute(Ui, A, S), Ti.getSuperBound(), Si.getWildcard() ); if (Si.getExtendsBound() == Si.getSuperBound()) { currentS.head = Si.getExtendsBound();
private static TypeList freshTypeVariables(final TypeList types) { final ListBuffer<Type<?>> result = lb(); for (final Type t : types) { if (t.isWildcardType()) { final Type bound = t.getExtendsBound(); result.append(new CapturedType(Type.Bottom, bound, Type.Bottom, t)); } else { result.append(t); } } return new TypeList(result.toList()); }
currentS.head = Si = new CapturedType( Si.getDeclaringType(), substitute(Ui, A, S), Type.Bottom, Si.getWildcard() ); currentS.head = Si = new CapturedType( Si.getDeclaringType(), glb(Ti.getExtendsBound(), substitute(Ui, A, S)), Type.Bottom, Si.getWildcard() ); currentS.head = Si = new CapturedType( Si.getDeclaringType(), substitute(Ui, A, S), Ti.getSuperBound(), Si.getWildcard() ); if (Si.getExtendsBound() == Si.getSuperBound()) { currentS.head = Si.getExtendsBound();
private static TypeList freshTypeVariables(final TypeList types) { final ListBuffer<Type<?>> result = lb(); for (final Type t : types) { if (t.isWildcardType()) { final Type bound = t.getExtendsBound(); result.append(new CapturedType(Type.Bottom, bound, Type.Bottom, t)); } else { result.append(t); } } return new TypeList(result.toList()); }
currentS.head = Si = new CapturedType( Si.getDeclaringType(), substitute(Ui, A, S), Type.Bottom, Si.getWildcard() ); currentS.head = Si = new CapturedType( Si.getDeclaringType(), glb(Ti.getExtendsBound(), substitute(Ui, A, S)), Type.Bottom, Si.getWildcard() ); currentS.head = Si = new CapturedType( Si.getDeclaringType(), substitute(Ui, A, S), Ti.getSuperBound(), Si.getWildcard() ); if (Si.getExtendsBound() == Si.getSuperBound()) { currentS.head = Si.getExtendsBound();
private static TypeList freshTypeVariables(final TypeList types) { final ListBuffer<Type<?>> result = lb(); for (final Type t : types) { if (t.isWildcardType()) { final Type bound = t.getExtendsBound(); result.append(new CapturedType(Type.Bottom, bound, Type.Bottom, t)); } else { result.append(t); } } return new TypeList(result.toList()); }