public class CompilerProblemCategorizer extends Object
ICompilerProblem
should be reported
as an error or a warning.
A user can override the default severity of a problem by using the following
compiler options:
-error-problems
-warning-problems
-ignore-problemsConstructor and Description |
---|
CompilerProblemCategorizer()
Default constructor.
|
CompilerProblemCategorizer(ICompilerProblemSettings problemSettings)
This categorizer can look at user configured overrides of problem
severity, falling back to the default severity.
|
Modifier and Type | Method and Description |
---|---|
CompilerProblemClassification |
getProblemClassification(ICompilerProblem problem) |
CompilerProblemSeverity |
getProblemSeverity(ICompilerProblem problem)
Get the severity of the compiler problem.
|
public CompilerProblemCategorizer()
public CompilerProblemCategorizer(ICompilerProblemSettings problemSettings)
problemSettings
- configuration settings that effect how problems
are categorized. If null, only the default severity of problems will
be used.public CompilerProblemSeverity getProblemSeverity(ICompilerProblem problem)
problem
- the compiler problem. May not be null.NullPointerException
- if problem is null.public CompilerProblemClassification getProblemClassification(ICompilerProblem problem)
Copyright © 2016 The Apache Software Foundation. All rights reserved.