private boolean doIsSubType(HierarchyType other) { if (fSuperclass != null && (other.isTypeEquivalentTo(fSuperclass) || fSuperclass.doIsSubType(other))) return true; for (int i= 0; i < fInterfaces.length; i++) { if (other.isTypeEquivalentTo(fInterfaces[i]) || fInterfaces[i].doIsSubType(other)) return true; } return false; }
private boolean doIsSubType(HierarchyType other) { if (fSuperclass != null && (other.isTypeEquivalentTo(fSuperclass) || fSuperclass.doIsSubType(other))) return true; for (int i= 0; i < fInterfaces.length; i++) { if (other.isTypeEquivalentTo(fInterfaces[i]) || fInterfaces[i].doIsSubType(other)) return true; } return false; }
private boolean doIsSubType(HierarchyType other) { if (fSuperclass != null && (other.isTypeEquivalentTo(fSuperclass) || fSuperclass.doIsSubType(other))) return true; for (int i= 0; i < fInterfaces.length; i++) { if (other.isTypeEquivalentTo(fInterfaces[i]) || fInterfaces[i].doIsSubType(other)) return true; } return false; }
public boolean isSubType(HierarchyType other) { if (getEnvironment() == other.getEnvironment()) { Map cache= getEnvironment().getSubTypeCache(); TypeTuple key= new TypeTuple(this, other); Boolean value= (Boolean)cache.get(key); if (value != null) return value.booleanValue(); boolean isSub= doIsSubType(other); value= Boolean.valueOf(isSub); cache.put(key, value); return isSub; } return doIsSubType(other); }
public boolean isSubType(HierarchyType other) { if (getEnvironment() == other.getEnvironment()) { Map<TypeTuple, Boolean> cache= getEnvironment().getSubTypeCache(); TypeTuple key= new TypeTuple(this, other); Boolean value= cache.get(key); if (value != null) return value.booleanValue(); boolean isSub= doIsSubType(other); value= Boolean.valueOf(isSub); cache.put(key, value); return isSub; } return doIsSubType(other); }
public boolean isSubType(HierarchyType other) { if (getEnvironment() == other.getEnvironment()) { Map<TypeTuple, Boolean> cache= getEnvironment().getSubTypeCache(); TypeTuple key= new TypeTuple(this, other); Boolean value= cache.get(key); if (value != null) return value.booleanValue(); boolean isSub= doIsSubType(other); value= Boolean.valueOf(isSub); cache.put(key, value); return isSub; } return doIsSubType(other); }