public boolean isBoundedType() { return this.isGenericParameter() || this.isWildcardType() || this instanceof ICapturedType || this instanceof CompoundTypeReference; }
public boolean isBoundedType() { return this.isGenericParameter() || this.isWildcardType() || this instanceof ICapturedType || this instanceof CompoundTypeReference; }
public boolean isBoundedType() { return this.isGenericParameter() || this.isWildcardType() || this instanceof ICapturedType || this instanceof CompoundTypeReference; }
public boolean hasSuperBound() { return isWildcardType() && !MetadataResolver.areEquivalent(BuiltinTypes.Bottom, getSuperBound()); }
private TypeReference L(final TypeReference t) { TypeReference current = t; while (current.isWildcardType()) { if (current.isUnbounded() || current.hasExtendsBound()) { return BuiltinTypes.Bottom; } current = current.getSuperBound(); } return current; }
private TypeReference L(final TypeReference t) { TypeReference current = t; while (current.isWildcardType()) { if (current.isUnbounded() || current.hasExtendsBound()) { return BuiltinTypes.Bottom; } current = current.getSuperBound(); } return current; }
protected static boolean checkRecursive(final TypeReference type, final List<? extends TypeReference> arguments) { //noinspection SimplifiableIfStatement if (type.isGenericParameter() || type.isWildcardType()) { return false; } return checkRecursiveCore(type.getInternalName(), arguments, 0); }
private TypeReference L(final TypeReference t) { TypeReference current = t; while (current.isWildcardType()) { if (current.isUnbounded() || current.hasExtendsBound()) { return BuiltinTypes.Bottom; } current = current.getSuperBound(); } return current; }
public static TypeReference getElementType(final TypeReference t) { if (t.isArray()) { return t.getElementType(); } if (t.isWildcardType()) { return getElementType(getUpperBound(t)); } return null; }
public static TypeReference getElementType(final TypeReference t) { if (t.isArray()) { return t.getElementType(); } if (t.isWildcardType()) { return getElementType(getUpperBound(t)); } return null; }
public static TypeReference getElementType(final TypeReference t) { if (t.isArray()) { return t.getElementType(); } if (t.isWildcardType()) { return getElementType(getUpperBound(t)); } return null; }
private TypeReference U(final TypeReference t) { TypeReference current = t; while (current.isWildcardType()) { if (current.isUnbounded()) { return BuiltinTypes.Object; } if (current.hasSuperBound()) { return current.getSuperBound(); } current = current.getExtendsBound(); } return current; }
@Override public TypeReference visitType(final TypeReference t, final Void ignored) { if (t.isWildcardType() || t.isGenericParameter() || t instanceof ICapturedType) { return t.isUnbounded() || t.hasSuperBound() ? BuiltinTypes.Object : visit(t.getExtendsBound()); } return t; }
@Override public TypeReference visitType(final TypeReference t, final Void ignored) { if (t.isWildcardType() || t.isGenericParameter() || t instanceof ICapturedType) { return t.isUnbounded() || t.hasSuperBound() ? BuiltinTypes.Object : visit(t.getExtendsBound()); } return t; }
@Override public TypeReference visitType(final TypeReference t, final Void ignored) { if (t.isWildcardType() || t.isGenericParameter() || t instanceof ICapturedType) { return t.isUnbounded() || t.hasSuperBound() ? BuiltinTypes.Object : visit(t.getExtendsBound()); } return t; }
public boolean hasExtendsBound() { return isGenericParameter() || (isWildcardType() && !BuiltinTypes.Object.equals(getExtendsBound()) && MetadataResolver.areEquivalent(BuiltinTypes.Bottom, getSuperBound())); }
public boolean hasExtendsBound() { return isGenericParameter() || (isWildcardType() && !BuiltinTypes.Object.equals(getExtendsBound()) && MetadataResolver.areEquivalent(BuiltinTypes.Bottom, getSuperBound())); }
public boolean hasExtendsBound() { return isGenericParameter() || (isWildcardType() && !BuiltinTypes.Object.equals(getExtendsBound()) && MetadataResolver.areEquivalent(BuiltinTypes.Bottom, getSuperBound())); }
private static boolean isSameWildcard(final TypeReference t, final TypeReference s) { VerifyArgument.notNull(t, "t"); VerifyArgument.notNull(s, "s"); if (!t.isWildcardType() || !s.isWildcardType()) { return false; } if (t.isUnbounded()) { return s.isUnbounded(); } if (t.hasSuperBound()) { return s.hasSuperBound() && isSameType(t.getSuperBound(), s.getSuperBound()); } return s.hasExtendsBound() && isSameType(t.getExtendsBound(), s.getExtendsBound()); }
private static boolean isSameWildcard(final TypeReference t, final TypeReference s) { VerifyArgument.notNull(t, "t"); VerifyArgument.notNull(s, "s"); if (!t.isWildcardType() || !s.isWildcardType()) { return false; } if (t.isUnbounded()) { return s.isUnbounded(); } if (t.hasSuperBound()) { return s.hasSuperBound() && isSameType(t.getSuperBound(), s.getSuperBound()); } return s.hasExtendsBound() && isSameType(t.getExtendsBound(), s.getExtendsBound()); }