public StringBuilder visitWildcardType(WildcardType type, StringBuilder sb) { switch (type.kind) { case UNBOUNDED: sb.append("?"); break; case EXTENDS: sb.append("? extends "); append(sb, type.boundType); break; case SUPER: sb.append("? super "); append(sb, type.boundType); break; default: throw new AssertionError(); } return sb; }
@Override public StringBuilder visitWildcardType(WildcardType type, StringBuilder sb) { switch (type.kind) { case UNBOUNDED: sb.append("?"); break; case EXTENDS: sb.append("? extends "); append(sb, type.boundType); break; case SUPER: sb.append("? super "); append(sb, type.boundType); break; default: throw new AssertionError(); } return sb; }
public String visitWildcardType(WildcardType type, Void p) { switch (type.kind) { case UNBOUNDED: return "W{?}"; case EXTENDS: return "W{e," + print(type.boundType) + "}"; case SUPER: return "W{s," + print(type.boundType) + "}"; default: throw new AssertionError(); } }
public Void visitWildcardType(WildcardType type, Void p) { findDependencies(type.boundType); return null; }