@Override public Boolean visitIntersection(IntersectionType t, Void p) { return any(t.getBounds(), this); }
@Override public Void visitIntersection(IntersectionType t, Void aVoid) { t.getBounds().forEach(Descriptor::verifyResolved); return null; }
@Override public Void visitIntersection(IntersectionType t, Void aVoid) { t.getBounds().forEach(Descriptor::verifyResolved); return null; }
@Override public TypeElement visitIntersection(IntersectionType t, Void aVoid) { return t.getBounds().get(0).accept(this, null); }
@Override public T visitIntersection(IntersectionType t, Void aVoid) { //just resolve to the first bound return t.getBounds().get(0).accept(this, aVoid); }
private String toJava(IntersectionType intersectionType) { return intersectionType.getBounds().stream() .map(bounds -> toJava(bounds)) .collect(Collectors.joining(" & ")); }
@Override public T visitIntersection(IntersectionType t, Void aVoid) { //just resolve to the first bound return t.getBounds().get(0).accept(this, aVoid); }
@Override public Void visitIntersection(IntersectionType t, Void aVoid) { t.getBounds().forEach(b -> b.accept(this, null)); return null; }
@Override public Boolean visitIntersection(IntersectionType t, Void p) { return any(t.getBounds(), this); }
@Override public TypeElement visitIntersection(IntersectionType t, Void aVoid) { return t.getBounds().get(0).accept(this, null); }
@Override public Void visitIntersection(IntersectionType t, Void aVoid) { t.getBounds().forEach(b -> b.accept(this, null)); return null; }
encodeType(((IntersectionType) type).getBounds().get(0), sb); break;
case INTERSECTION: typeMirrors = new ArrayList<TypeMirrorHandle<? extends TypeMirror>>(); for (TypeMirror alternative : ((IntersectionType) tm).getBounds()) { typeMirrors.add(create(alternative, map));
addTypes(env, EnumSet.of(INTERFACE, ANNOTATION_TYPE), null); } else if (tm != null && tm.getKind() == TypeKind.INTERSECTION) { for (TypeMirror bound : ((IntersectionType) tm).getBounds()) { if (bound.getKind() == TypeKind.DECLARED) { env.addToExcludes(((DeclaredType) bound).asElement());
kinds = EnumSet.of(INTERFACE, ANNOTATION_TYPE); } else if (tm != null && tm.getKind() == TypeKind.INTERSECTION) { for (TypeMirror bound : ((IntersectionType) tm).getBounds()) { if (bound.getKind() == TypeKind.DECLARED) { env.addToExcludes(((DeclaredType) bound).asElement());
transformation = resolve(context.field.refine(resolvedMirror)); } else if (upperBound instanceof IntersectionType) { for (TypeMirror bound : ((IntersectionType) upperBound).getBounds()) {