Class Analyzers
- java.lang.Object
-
- com.ensoftcorp.open.commons.codemap.PrioritizedCodemapStage
-
- com.ensoftcorp.open.commons.analyzers.Analyzers
-
public class Analyzers extends PrioritizedCodemapStage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnalyzers.AnalyzerResultChangedCallback
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringIDENTIFIERThe unique identifier for analyzer definitions
-
Constructor Summary
Constructors Constructor Description Analyzers()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcacheResults(Analyzer analyzer, java.util.List<Analyzer.Result> results)static voidclearCachedResults()static java.util.List<Analyzer.Result>getAnalyzerResults(Analyzer analyzer)static java.util.List<Analyzer.Result>getAnalyzerResults(java.lang.String analyzerName)java.lang.String[]getCodemapStageDependencies()Returns a set of prioritized codemap stage identifier strings that should perform indexing before this prioritized codemap stage Note: this should represent a conservative set of the worst case dependencies.java.lang.StringgetDisplayName()Returns the display name of the codemap stagejava.lang.StringgetIdentifier()A unique string that serves as the identity of this PrioritizedCodemapStagestatic java.util.Set<Analyzer>getRegisteredAnalyzers()Returns a copy of the currently registered analyzersstatic booleanhasCachedResult(Analyzer analyzer)static booleanhasCachedResult(java.lang.String analyzerName)static voidloadAnalyzerContributions()Registers the contributed plugin analyzer definitionsbooleanperformIndexing(org.eclipse.core.runtime.IProgressMonitor monitor)The codemap stage indexing task to be performed.static voidregisterAnalyzerResultChangedCallback(Analyzers.AnalyzerResultChangedCallback callback)static voidunregisterAnalyzerResultChangedCallback(Analyzers.AnalyzerResultChangedCallback callback)-
Methods inherited from class com.ensoftcorp.open.commons.codemap.PrioritizedCodemapStage
equals, hashCode, toString
-
-
-
-
Field Detail
-
IDENTIFIER
public static final java.lang.String IDENTIFIER
The unique identifier for analyzer definitions- See Also:
- Constant Field Values
-
-
Method Detail
-
getDisplayName
public java.lang.String getDisplayName()
Description copied from class:PrioritizedCodemapStageReturns the display name of the codemap stage- Specified by:
getDisplayNamein classPrioritizedCodemapStage- Returns:
-
getIdentifier
public java.lang.String getIdentifier()
Description copied from class:PrioritizedCodemapStageA unique string that serves as the identity of this PrioritizedCodemapStage- Specified by:
getIdentifierin classPrioritizedCodemapStage- Returns:
-
getCodemapStageDependencies
public java.lang.String[] getCodemapStageDependencies()
Description copied from class:PrioritizedCodemapStageReturns a set of prioritized codemap stage identifier strings that should perform indexing before this prioritized codemap stage Note: this should represent a conservative set of the worst case dependencies. That is, if it is possible that under some configuration of the toolbox that the toolbox could depend on a prioritized codemap stage, then it should be listed here. Note: mutual dependencies are not supported!- Specified by:
getCodemapStageDependenciesin classPrioritizedCodemapStage- Returns:
-
performIndexing
public boolean performIndexing(org.eclipse.core.runtime.IProgressMonitor monitor)
Description copied from class:PrioritizedCodemapStageThe codemap stage indexing task to be performed.- Specified by:
performIndexingin classPrioritizedCodemapStage- Returns:
- Returns true if the codemap stage was actually run.
-
registerAnalyzerResultChangedCallback
public static void registerAnalyzerResultChangedCallback(Analyzers.AnalyzerResultChangedCallback callback)
-
unregisterAnalyzerResultChangedCallback
public static void unregisterAnalyzerResultChangedCallback(Analyzers.AnalyzerResultChangedCallback callback)
-
clearCachedResults
public static void clearCachedResults()
-
hasCachedResult
public static boolean hasCachedResult(Analyzer analyzer)
-
cacheResults
public static void cacheResults(Analyzer analyzer, java.util.List<Analyzer.Result> results)
-
hasCachedResult
public static boolean hasCachedResult(java.lang.String analyzerName)
-
getAnalyzerResults
public static java.util.List<Analyzer.Result> getAnalyzerResults(Analyzer analyzer)
-
getAnalyzerResults
public static java.util.List<Analyzer.Result> getAnalyzerResults(java.lang.String analyzerName)
-
getRegisteredAnalyzers
public static java.util.Set<Analyzer> getRegisteredAnalyzers()
Returns a copy of the currently registered analyzers- Returns:
-
loadAnalyzerContributions
public static void loadAnalyzerContributions()
Registers the contributed plugin analyzer definitions
-
-