ClassHierarchy(AnalysisScope scope, ClassLoaderFactory factory, IProgressMonitor progressMonitor, Map<TypeReference, Node> map, MissingSuperClassHandling superClassHandling) throws ClassHierarchyException, IllegalArgumentException { this(scope, factory, scope.getLanguages(), progressMonitor, map, superClassHandling); }
ClassHierarchy(AnalysisScope scope, ClassLoaderFactory factory, IProgressMonitor progressMonitor, Map<TypeReference, Node> map, MissingSuperClassHandling superClassHandling) throws ClassHierarchyException, IllegalArgumentException { this(scope, factory, scope.getLanguages(), progressMonitor, map, superClassHandling); }
/** * @return the set of "base languages," each of which defines a family of compatible languages, and therefore induces a distinct * ClassHierarchy */ public Set<Language> getBaseLanguages() { Set<Language> result = HashSetFactory.make(); for (Language language : getLanguages()) { if (language.getBaseLanguage() == null) { result.add(language); } } return result; }
/** * @return the set of "base languages," each of which defines a family of compatible languages, and therefore induces a distinct * ClassHierarchy */ public Set<Language> getBaseLanguages() { Set<Language> result = HashSetFactory.make(); for (Language language : getLanguages()) { if (language.getBaseLanguage() == null) { result.add(language); } } return result; }
throw new IllegalArgumentException(); if (scope.getLanguages().size() == 0) { throw new IllegalArgumentException("AnalysisScope must contain at least 1 language");
throw new IllegalArgumentException(); if (scope.getLanguages().size() == 0) { throw new IllegalArgumentException("AnalysisScope must contain at least 1 language");