/** * Enable or disable display of a specific problem class or superclass. * @param problemClass - the problem class/superclass of interest. * @param enable - if true, instances of this problem class * will appear in the filtered diagnostics. */ public void setShowProblemByClass(Class<? extends ICompilerProblem> problemClass, final boolean enable) { if ( enable ) { problemFilter.removeRejectedClass(problemClass); } else { problemFilter.addRejectedClass(problemClass); } }
/** * Construct a ProblemQuery with settings to control how compiler problems * are reported. * * @param problemSettings configuration settings to control how compiler * problems are reported. */ public ProblemQuery(ICompilerProblemSettings problemSettings) { this.problems = new ArrayList<ICompilerProblem>(); // An empty problem set is sorted. this.sorted = true; // Start with no restrictions on the problems presented. this.problemFilter = new ProblemFilterClassCriteria(); this.problemSettings = problemSettings; }
/** * Construct a ProblemQuery with settings to control how compiler problems * are reported. * * @param problemSettings configuration settings to control how compiler * problems are reported. */ public ProblemQuery(ICompilerProblemSettings problemSettings) { this.problems = new ArrayList<ICompilerProblem>(); // An empty problem set is sorted. this.sorted = true; // Start with no restrictions on the problems presented. this.problemFilter = new ProblemFilterClassCriteria(); this.problemSettings = problemSettings; }
/** * Enable or disable display of a specific problem class or superclass. * @param problemClass - the problem class/superclass of interest. * @param enable - if true, instances of this problem class * will appear in the filtered diagnostics. */ public void setShowProblemByClass(Class<? extends ICompilerProblem> problemClass, final boolean enable) { if ( enable ) { problemFilter.removeRejectedClass(problemClass); } else { problemFilter.addRejectedClass(problemClass); } }
/** * Get an iterator over all internal errors. */ public Iterable<ICompilerProblem> getInternalErrors() { return getProblemView(new ProblemFilterClassCriteria(CodegenInternalProblem.class)); }
/** * Get an iterator over all internal errors. */ public Iterable<ICompilerProblem> getInternalErrors() { return getProblemView(new ProblemFilterClassCriteria(CodegenInternalProblem.class)); }