private boolean isParametricType(TType type) { return type.isParameterizedType() || type.isGenericType() || (type.isRawType() && type.getTypeDeclaration().isGenericType()) ; }
public static boolean isAGenericType(TType type) { return type.isGenericType() || type.isParameterizedType() || (type.isRawType() && type.getTypeDeclaration().isGenericType()); }
private boolean isParametricType(TType type) { return type.isParameterizedType() || type.isGenericType() || (type.isRawType() && type.getTypeDeclaration().isGenericType()) ; }
private boolean isParametricType(TType type) { return type.isParameterizedType() || type.isGenericType() || (type.isRawType() && type.getTypeDeclaration().isGenericType()) ; }
public static boolean isAGenericType(TType type) { return type.isGenericType() || type.isParameterizedType() || (type.isRawType() && type.getTypeDeclaration().isGenericType()); }
public static boolean isAGenericType(TType type) { return type.isGenericType() || type.isParameterizedType() || (type.isRawType() && type.getTypeDeclaration().isGenericType()); }
protected void initialize(TType elementType, int dimensions) { fElementType= elementType; fDimensions= dimensions; if (fElementType.isStandardType() || fElementType.isGenericType() || fElementType.isPrimitiveType()) { fErasure= this; } else { fErasure= getEnvironment().createArrayType(elementType.getErasure(), dimensions); } }
protected void initialize(TType elementType, int dimensions) { fElementType= elementType; fDimensions= dimensions; if (fElementType.isStandardType() || fElementType.isGenericType() || fElementType.isPrimitiveType()) { fErasure= this; } else { fErasure= getEnvironment().createArrayType(elementType.getErasure(), dimensions); } }
protected void initialize(TType elementType, int dimensions) { fElementType= elementType; fDimensions= dimensions; if (fElementType.isStandardType() || fElementType.isGenericType() || fElementType.isPrimitiveType()) { fErasure= this; } else { fErasure= getEnvironment().createArrayType(elementType.getErasure(), dimensions); } }
public final ITypeSet restrictedTo(final ITypeSet set) { if (set instanceof SuperTypeUniverse) { return this; } else if (set instanceof SuperTypeSingletonSet) { final SuperTypeSingletonSet singleton= (SuperTypeSingletonSet) set; final TType rightErasure= singleton.fType.getErasure(); final TType subErasure= fSubType.getErasure(); final TType superErasure= fSuperType.getErasure(); if (subErasure.isGenericType() || superErasure.isGenericType() || rightErasure.isGenericType()) { if ((rightErasure.equals(subErasure) || ((HierarchyType) subErasure).isSubType((HierarchyType) rightErasure)) && (rightErasure.equals(superErasure) || ((HierarchyType) superErasure).isSubType((HierarchyType) rightErasure))) return this; } if (rightErasure.isJavaLangObject()) return this; if (subErasure.canAssignTo(rightErasure) && superErasure.canAssignTo(rightErasure)) return this; return SuperTypeSet.createTypeSet(fSubType); } else if (set instanceof SuperTypeTuple) { return this; } else if (set instanceof SuperTypeEmptySet) { return set; } else Assert.isTrue(false); return null; }
final SuperTypeSingletonSet singleton= (SuperTypeSingletonSet) set; final TType rightErasure= singleton.fType.getErasure(); if (leftErasure.isGenericType() || rightErasure.isGenericType()) { if (rightErasure.equals(leftErasure) || ((HierarchyType) leftErasure).isSubType((HierarchyType) rightErasure)) return this; final SuperTypeTuple tuple= (SuperTypeTuple) set; final TType rightErasure= tuple.fSuperType.getErasure(); if (leftErasure.isGenericType() || rightErasure.isGenericType()) { if (rightErasure.equals(leftErasure) || ((HierarchyType) leftErasure).isSubType((HierarchyType) rightErasure)) return this;
@Override public final ITypeSet restrictedTo(final ITypeSet set) { if (set instanceof SuperTypeUniverse) { return this; } else if (set instanceof SuperTypeSingletonSet) { final SuperTypeSingletonSet singleton= (SuperTypeSingletonSet) set; final TType rightErasure= singleton.fType.getErasure(); final TType subErasure= fSubType.getErasure(); final TType superErasure= fSuperType.getErasure(); if (subErasure.isHierarchyType() && superErasure.isHierarchyType() && rightErasure.isHierarchyType()) { if (subErasure.isGenericType() || superErasure.isGenericType() || rightErasure.isGenericType()) { if ((rightErasure.equals(subErasure) || ((HierarchyType) subErasure).isSubType((HierarchyType) rightErasure)) && (rightErasure.equals(superErasure) || ((HierarchyType) superErasure).isSubType((HierarchyType) rightErasure))) return this; } } if (rightErasure.isJavaLangObject()) return this; if (subErasure.canAssignTo(rightErasure) && superErasure.canAssignTo(rightErasure)) return this; return SuperTypeSet.createTypeSet(fSubType); } else if (set instanceof SuperTypeTuple) { return this; } else if (set instanceof SuperTypeEmptySet) { return set; } else Assert.isTrue(false); return null; }
@Override public final ITypeSet restrictedTo(final ITypeSet set) { if (set instanceof SuperTypeUniverse) { return this; } else if (set instanceof SuperTypeSingletonSet) { final SuperTypeSingletonSet singleton= (SuperTypeSingletonSet) set; final TType rightErasure= singleton.fType.getErasure(); final TType subErasure= fSubType.getErasure(); final TType superErasure= fSuperType.getErasure(); if (subErasure.isHierarchyType() && superErasure.isHierarchyType() && rightErasure.isHierarchyType()) { if (subErasure.isGenericType() || superErasure.isGenericType() || rightErasure.isGenericType()) { if ((rightErasure.equals(subErasure) || ((HierarchyType) subErasure).isSubType((HierarchyType) rightErasure)) && (rightErasure.equals(superErasure) || ((HierarchyType) superErasure).isSubType((HierarchyType) rightErasure))) return this; } } if (rightErasure.isJavaLangObject()) return this; if (subErasure.canAssignTo(rightErasure) && superErasure.canAssignTo(rightErasure)) return this; return SuperTypeSet.createTypeSet(fSubType); } else if (set instanceof SuperTypeTuple) { return this; } else if (set instanceof SuperTypeEmptySet) { return set; } else Assert.isTrue(false); return null; }
protected void initialize(ITypeBinding binding, TType elementType) { Assert.isTrue(binding.isArray()); super.initialize(binding); fElementType= elementType; fDimensions= binding.getDimensions(); if (fElementType.isStandardType() || fElementType.isGenericType() || fElementType.isPrimitiveType()) { fErasure= this; } else { fErasure= getEnvironment().create(binding.getErasure()); } }
final TType rightErasure= singleton.fType.getErasure(); if (leftErasure.isHierarchyType() && rightErasure.isHierarchyType()) { if (leftErasure.isGenericType() || rightErasure.isGenericType()) { if (rightErasure.equals(leftErasure) || ((HierarchyType) leftErasure).isSubType((HierarchyType) rightErasure)) return this; final TType rightErasure= tuple.fSuperType.getErasure(); if (leftErasure.isHierarchyType() && rightErasure.isHierarchyType()) { if (leftErasure.isGenericType() || rightErasure.isGenericType()) { if (rightErasure.equals(leftErasure) || ((HierarchyType) leftErasure).isSubType((HierarchyType) rightErasure)) return this;
final TType rightErasure= singleton.fType.getErasure(); if (leftErasure.isHierarchyType() && rightErasure.isHierarchyType()) { if (leftErasure.isGenericType() || rightErasure.isGenericType()) { if (rightErasure.equals(leftErasure) || ((HierarchyType) leftErasure).isSubType((HierarchyType) rightErasure)) return this; final TType rightErasure= tuple.fSuperType.getErasure(); if (leftErasure.isHierarchyType() && rightErasure.isHierarchyType()) { if (leftErasure.isGenericType() || rightErasure.isGenericType()) { if (rightErasure.equals(leftErasure) || ((HierarchyType) leftErasure).isSubType((HierarchyType) rightErasure)) return this;
protected void initialize(ITypeBinding binding, TType elementType) { Assert.isTrue(binding.isArray()); super.initialize(binding); fElementType= elementType; fDimensions= binding.getDimensions(); if (fElementType.isStandardType() || fElementType.isGenericType() || fElementType.isPrimitiveType()) { fErasure= this; } else { fErasure= getEnvironment().create(binding.getErasure()); } }
protected void initialize(ITypeBinding binding, TType elementType) { Assert.isTrue(binding.isArray()); super.initialize(binding); fElementType= elementType; fDimensions= binding.getDimensions(); if (fElementType.isStandardType() || fElementType.isGenericType() || fElementType.isPrimitiveType()) { fErasure= this; } else { fErasure= getEnvironment().create(binding.getErasure()); } }