/** * Get an iterator over the set of problems that * are to be reported based on the current settings. * Problem categorization is built into this filter so that problems * categorized as "ignore" are filtered out. * * @return an Iterable<ICompilerProblem> over the * subset of problems that are of interest to the client. */ public Iterable<ICompilerProblem> getFilteredProblems() { IProblemFilter filter = CompositeProblemFilter.and(this.problemFilter, new SkipSemanticCascadesFilter()); CompilerProblemCategorizer categorizer = new CompilerProblemCategorizer(problemSettings); CodeGenErrorFilter cgef = new CodeGenErrorFilter(); if (cgef.hasOtherErrors(problems)) { filter = CompositeProblemFilter.and(filter, cgef); } return getFilteredProblems(CompositeProblemFilter.and(filter, new ErrorsAndWarningsFilter(categorizer))); }
/** * Get an iterator over the set of problems that * are to be reported based on the current settings. * Problem categorization is built into this filter so that problems * categorized as "ignore" are filtered out. * * @return an Iterable<ICompilerProblem> over the * subset of problems that are of interest to the client. */ public Iterable<ICompilerProblem> getFilteredProblems() { IProblemFilter filter = CompositeProblemFilter.and(this.problemFilter, new SkipSemanticCascadesFilter()); CompilerProblemCategorizer categorizer = new CompilerProblemCategorizer(problemSettings); CodeGenErrorFilter cgef = new CodeGenErrorFilter(); if (cgef.hasOtherErrors(problems)) { filter = CompositeProblemFilter.and(filter, cgef); } return getFilteredProblems(CompositeProblemFilter.and(filter, new ErrorsAndWarningsFilter(categorizer))); }
/** * Used internally as a base filter without any categorization built in. * This is useful for clients that want to do the categorization themselves. * Gets an iterator over the set of problems that are to be reported based * on the current settings. * * @return an Iterable<ICompilerProblem> over the subset of problems * that are of interest to the client. */ private Iterable<ICompilerProblem> getFilteredProblemsUsingBaseFilter() { return getFilteredProblems(CompositeProblemFilter.and(this.problemFilter, new SkipSemanticCascadesFilter())); }
/** * Used internally as a base filter without any categorization built in. * This is useful for clients that want to do the categorization themselves. * Gets an iterator over the set of problems that are to be reported based * on the current settings. * * @return an Iterable<ICompilerProblem> over the subset of problems * that are of interest to the client. */ private Iterable<ICompilerProblem> getFilteredProblemsUsingBaseFilter() { return getFilteredProblems(CompositeProblemFilter.and(this.problemFilter, new SkipSemanticCascadesFilter())); }