IAnalysisService¶
-
public interface
IAnalysisService
<P extends IParseUnit, A extends IAnalyzeUnit, AU extends IAnalyzeUnitUpdate>¶ Interface for context-sensitive analysis of parse units.
Parameters: - <P> – Type of parse units.
- <A> – Type of analyze units.
- <AU> – Type of analyze unit updates.
Methods¶
analyze¶
-
IAnalyzeResult<A, AU>
analyze
(P input, IContext context, IProgress progress, ICancel cancel)¶ Analyzes given parse input, in given context, into an analysis result which contains an analyze unit and optionally updates to analyze units.
Parameters: - input – Parse unit to analyze.
- context – Context to perform analysis in.
- progress – Progress reporter.
- cancel – Cancellation token.
Throws: - AnalysisException – When analysis fails unexpectedly.
- InterruptedException – When analysis is cancelled.
Returns: Analysis result which contains an analyze unit and optionally updates to analyze units.
analyze¶
-
IAnalyzeResult<A, AU>
analyze
(P input, IContext context)¶ Analyzes given parse input, in given context, into an analysis result which contains an analyze unit and optionally updates to analyze units.
Parameters: - input – Parse unit to analyze.
- context – Context to perform analysis in.
Throws: - AnalysisException – When analysis fails unexpectedly.
Returns: Analysis result which contains an analyze unit and optionally updates to analyze units.
analyzeAll¶
-
IAnalyzeResults<A, AU>
analyzeAll
(Iterable<P> inputs, IContext context, IProgress progress, ICancel cancel)¶ Analyzes given parse input, in given context, into an analysis result which contains an analyze unit and optionally updates to analyze units.
Parameters: - input – Parse unit to analyze.
- context – Context to perform analysis in.
- progress – Progress reporter.
- cancel – Cancellation token.
Throws: - AnalysisException – When analysis fails unexpectedly.
- InterruptedException – When analysis is cancelled.
Returns: Analysis result which contains an analyze unit and optionally updates to analyze units.
analyzeAll¶
-
IAnalyzeResults<A, AU>
analyzeAll
(Iterable<P> inputs, IContext context)¶ Analyzes given parse input, in given context, into an analysis result which contains an analyze unit and optionally updates to analyze units.
Parameters: - input – Parse unit to analyze.
- context – Context to perform analysis in.
- progress – Progress reporter.
- cancel – Cancellation token.
Throws: - AnalysisException – When analysis fails unexpectedly.
Returns: Analysis result which contains an analyze unit and optionally updates to analyze units.
available¶
-
boolean
available
(ILanguageImpl langImpl)¶ Checks if analysis is available for given language implementation.
Parameters: - langImpl – Language implementation to check.
Returns: True if analysis is a available, false if not.