Constructor and Description |
---|
AnalyzerFactory(String id,
String displayName,
Image icon) |
AnalyzerFactory(String id,
String displayName,
String iconPath) |
Modifier and Type | Method and Description |
---|---|
abstract Analyzer |
createAnalyzer(Analyzer.Context context) |
Analyzer |
createAnalyzer(Analyzer.Context context,
Analyzer.Result result)
Creates a new
Analyzer with a context and warning collector. |
abstract <D,C extends JComponent> |
getCustomizerProvider() |
abstract Iterable<? extends Analyzer.WarningDescription> |
getWarnings() |
Collection<? extends Analyzer.MissingPlugin> |
requiredPlugins(Analyzer.Context context)
If additional modules are required to run the analysis (for the given
context ),
return their description. |
void |
warningOpened(ErrorDescription warning) |
public AnalyzerFactory(String id, String displayName, String iconPath)
id
- a unique id of the analyzerdisplayName
- the display name of the analyzericonPath
- a path to icon associated with this analyzerpublic Collection<? extends Analyzer.MissingPlugin> requiredPlugins(Analyzer.Context context)
context
),
return their description.context
- over which the analysis is going to be performedpublic abstract Iterable<? extends Analyzer.WarningDescription> getWarnings()
@CheckForNull public abstract <D,C extends JComponent> Analyzer.CustomizerProvider<D,C> getCustomizerProvider()
public abstract Analyzer createAnalyzer(Analyzer.Context context)
context
- containing the required Scope
public Analyzer createAnalyzer(Analyzer.Context context, Analyzer.Result result)
Analyzer
with a context and warning collector.context
- the Analyzer.Context
of the analysisresult
- the warning collectorAnalyzer
public void warningOpened(ErrorDescription warning)