IAnalyzer¶
-
public interface
IAnalyzer
<P extends IParseUnit, A extends IAnalyzeUnit, AU extends IAnalyzeUnitUpdate>¶ Interface for a context-sensitive analyzer implementation.
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.
analyzeAll¶
-
IAnalyzeResults<A, AU>
analyzeAll
(Iterable<P> inputs, IContext context, IProgress progress, ICancel cancel)¶ Analyzes given parse inputs, in given context, into an analysis result which contains analyze units and optionally updates to analyze units.
Parameters: - inputs – Parse units 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 analyze units and optionally updates to analyze units.