public boolean isInterface() { return getType().isInterface(); }
public boolean isArrayType() { return getType().isArrayClass(); }
public boolean isArrayType() { return getType().isArrayClass(); }
public boolean isInterface() { return getType().isInterface(); }
/** * @return an Iterator of IClass that implement this interface */ public Iterator<IClass> iterateImplementors() { return type.getClassHierarchy().getImplementors(getType().getReference()).iterator(); }
/** * @return an Iterator of IClass that implement this interface */ public Iterator<IClass> iterateImplementors() { return type.getClassHierarchy().getImplementors(getType().getReference()).iterator(); }
if (type.equals(other.getType())) { TypeReference T = other.getType().getReference(); if (type.isArrayClass() || T.isArrayType()) { if (type.getClassHierarchy().isSubclassOf(typeKlass, other.getType())) { return other; } else if (other.isInterface()) { if (type.getClassHierarchy().implementsInterface(typeKlass, other.getType())) { return other;
if (type.equals(other.getType())) { TypeReference T = other.getType().getReference(); if (type.isArrayClass() || T.isArrayType()) { if (type.getClassHierarchy().isSubclassOf(typeKlass, other.getType())) { return other; } else if (other.isInterface()) { if (type.getClassHierarchy().implementsInterface(typeKlass, other.getType())) { return other;
elementType = ((PointType) arrayType).getType().getReference().getArrayElementType(); } else if (arrayType instanceof ConeType) { elementType = ((ConeType) arrayType).getType().getReference().getArrayElementType(); } else { Assertions.UNREACHABLE("Unexpected type " + arrayType.getClass()); tType = ((PointType) lhs.getType()).getType().getReference(); } else if (lhs.getType() instanceof ConeType) { tType = ((ConeType) lhs.getType()).getType().getReference(); } else { Assertions.UNREACHABLE("Unexpected type " + lhs.getType().getClass());
elementType = ((PointType) arrayType).getType().getReference().getArrayElementType(); } else if (arrayType instanceof ConeType) { elementType = ((ConeType) arrayType).getType().getReference().getArrayElementType(); } else { Assertions.UNREACHABLE("Unexpected type " + arrayType.getClass()); tType = ((PointType) lhs.getType()).getType().getReference(); } else if (lhs.getType() instanceof ConeType) { tType = ((ConeType) lhs.getType()).getType().getReference(); } else { Assertions.UNREACHABLE("Unexpected type " + lhs.getType().getClass());