validateAnnotatedType(wc.getBound(), ((WildcardType)enclTy.unannotatedType()).getExtendsBound()); } else if (wc.getKind() == JCTree.Kind.SUPER_WILDCARD) { validateAnnotatedType(wc.getBound(), ((WildcardType)enclTy.unannotatedType()).getSuperBound()); } else {
validateAnnotatedType(wc.getBound(), ((WildcardType)enclTy.unannotatedType()).getExtendsBound()); } else if (wc.getKind() == JCTree.Kind.SUPER_WILDCARD) { validateAnnotatedType(wc.getBound(), ((WildcardType)enclTy.unannotatedType()).getSuperBound()); } else {
case SUPER: Si.bound = subst(Ui, A, S); Si.lower = Ti.getSuperBound(); break;
case SUPER: Si.bound = subst(Ui, A, S); Si.lower = Ti.getSuperBound(); break;
case SUPER: Si.bound = subst(Ui, A, S); Si.lower = Ti.getSuperBound(); break;
case SUPER: Si.bound = subst(Ui, A, S); Si.lower = Ti.getSuperBound(); break;
@Override public TypeMirror getSuperBound() { return ((WildcardType)underlyingType).getSuperBound(); } }
@Override public TypeMirror getSuperBound() { return ((WildcardType)underlyingType).getSuperBound(); } }
Type B(Type t) { while (t.hasTag(WILDCARD)) { WildcardType w = (WildcardType)t.unannotatedType(); t = high ? w.getExtendsBound() : w.getSuperBound(); if (t == null) { t = high ? syms.objectType : syms.botType; } } return t; } }
@Override public Void visitWildcardType(Type.WildcardType type, Void unused) { if (type.getSuperBound() != null) { type.getSuperBound().accept(this, null); } if (type.getExtendsBound() != null) { type.getExtendsBound().accept(this, null); } return null; }
Type B(Type t) { while (t.hasTag(WILDCARD)) { WildcardType w = (WildcardType)t.unannotatedType(); t = high ? w.getExtendsBound() : w.getSuperBound(); if (t == null) { t = high ? syms.objectType : syms.botType; } } return t; } }
@Override public Type visitWildcardType(WildcardType t, Void s) { Type bound = high ? t.getExtendsBound() : t.getSuperBound(); if (bound == null) bound = high ? syms.objectType : syms.botType; return bound; } }
@Override public Void visitWildcardType(Type.WildcardType type, Void unused) { if (type.getSuperBound() != null) { type.getSuperBound().accept(this, null); } if (type.getExtendsBound() != null) { type.getExtendsBound().accept(this, null); } return null; }