@Override public int hashCode() { int h = 1; h *= 1000003; h ^= this.boundKind.hashCode(); h *= 1000003; h ^= this.bound.hashCode(); return h; }
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof UWildcardType) { UWildcardType that = (UWildcardType) o; return (this.boundKind.equals(that.boundKind())) && (this.bound.equals(that.bound())); } return false; }
public String toString() { StringBuffer s = new StringBuffer(); s.append(kind.toString()); if (kind != UNBOUND) s.append(type); if (moreInfo && bound != null && !isPrintingBound) try { isPrintingBound = true; s.append("{:").append(bound.bound).append(":}"); } finally { isPrintingBound = false; } return s.toString(); }
public String toString() { StringBuffer s = new StringBuffer(); s.append(kind.toString()); if (kind != UNBOUND) s.append(type); if (moreInfo && bound != null && !isPrintingBound) try { isPrintingBound = true; s.append("{:").append(bound.bound).append(":}"); } finally { isPrintingBound = false; } return s.toString(); }
public String toString() { StringBuilder s = new StringBuilder(); s.append(kind.toString()); if (kind != UNBOUND) s.append(type); if (moreInfo && bound != null && !isPrintingBound) try { isPrintingBound = true; s.append("{:").append(bound.bound).append(":}"); } finally { isPrintingBound = false; } return s.toString(); }
@Override public int hashCode() { int h = 1; h *= 1000003; h ^= this.boundKind.hashCode(); h *= 1000003; h ^= this.bound.hashCode(); return h; }
@Override public Choice<Unifier> visitWildcardType(WildcardType wildcard, Unifier unifier) { return Choice.condition(boundKind().equals(wildcard.kind), unifier) .thenChoose(unifications(bound(), wildcard.type)); }
public String toString() { StringBuilder s = new StringBuilder(); s.append(kind.toString()); if (kind != UNBOUND) s.append(type); if (moreInfo && bound != null && !isPrintingBound) try { isPrintingBound = true; s.append("{:").append(bound.bound).append(":}"); } finally { isPrintingBound = false; } return s.toString(); }
@Override public Integer visitWildcardType(WildcardType t, Void ignored) { int result = t.kind.hashCode(); if (t.type != null) { result *= 127; result += visit(t.type); } return result; }
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof UWildcardType) { UWildcardType that = (UWildcardType) o; return (this.boundKind.equals(that.boundKind())) && (this.bound.equals(that.bound())); } return false; }
protected int diffTypeBoundKind(TypeBoundKind oldT, TypeBoundKind newT, int[] bounds) { int localPointer = bounds[0]; if (oldT.kind != newT.kind) { copyTo(localPointer, oldT.pos); printer.print(newT.kind.toString()); localPointer = oldT.pos + oldT.kind.toString().length(); } copyTo(localPointer, bounds[1]); return bounds[1]; }
@Override public Integer visitWildcardType(WildcardType t, Void ignored) { int result = t.kind.hashCode(); if (t.type != null) { result *= 127; result += visit(t.type); } return result; }
@Override public Choice<Unifier> visitWildcardType(WildcardType wildcard, Unifier unifier) { return Choice.condition(boundKind().equals(wildcard.kind), unifier) .thenChoose(unifications(bound(), wildcard.type)); }
Type.WildcardType wildcardType = (Type.WildcardType) type; if (nonNull(wildcardType) && nonNull(wildcardType.type)) { if (wildcardType.kind.toString().equals("?") && nonNull(wildcardType.type.tsym)) { String s = wildcardType.type.tsym.flatName().toString(); return Optional.of(s); String s = wildcardType.kind.toString() + wildcardType.type.tsym.flatName().toString(); return Optional.of(s);
@Override public Integer visitWildcardType(WildcardType t, Void ignored) { int result = t.kind.hashCode(); if (t.type != null) { result *= 127; result += visit(t.type); } return result; }
Type.CapturedType capturedType = (Type.CapturedType) type; Type.WildcardType wildcardType = capturedType.wildcard; if (wildcardType.kind.toString().equals("?")) { Type upperBound = type.getUpperBound(); if (nonNull(upperBound) && nonNull(upperBound.tsym)) { String s = wildcardType.kind.toString() + wildcardType.type.tsym.flatName().toString(); return Optional.of(s); Type.WildcardType wildcardType = (Type.WildcardType) type; if (nonNull(wildcardType.type)) { if (wildcardType.kind.toString().equals("?") && nonNull(wildcardType.type.tsym)) { String s = wildcardType.type.tsym.flatName().toString(); return Optional.of(s); String s = wildcardType.kind.toString() + wildcardType.type.tsym.flatName().toString(); return Optional.of(s);
@Override public Integer visitWildcardType(WildcardType t, Void ignored) { int result = t.kind.hashCode(); if (t.type != null) { result *= 127; result += visit(t.type); } return result; }
sb.append( kind.toString() ); if( kind != BoundKind.UNBOUND )