public interface IlrBRLParser
IlrBRLParser specifies the API of a BRL parser used to parse
BRL input text and to compute predictions.
The BRL parser is configured using:
IlrBRLParserConfigurationDef object to configure the
parser.IlrBRLPredictionConfigurationDef object to
configure the prediction.
A text input implementing IlrBRLParserInput is passed to this
parser and interpreted. A syntax tree is created and a list of errors is
reported to the parser configuration.
This interface is not supposed to be implemented outside the BRL framework.
The IlrBRLParserManager implementation of this interface can be
used outside any environment.
Although this class is not deprecated, you should use IlrBRLParserService interface instead.
IlrBRLParserManager| Modifier and Type | Method and Description |
|---|---|
IlrVocabulary |
getVocabulary(java.util.Locale locale)
Deprecated.
this method is deprecated and replaced by IlrBRLParserService.getVocabulary(definition, locale).
|
IlrSyntaxTree |
parse(IlrBRLParserInput input,
IlrBRLParserConfigurationDef configuration,
IlrBRLPredictionConfigurationDef predictionConfiguration)
Retrieves a parsed representation of the input as a syntax tree.
|
IlrVocabulary getVocabulary(java.util.Locale locale)
java.lang.IllegalArgumentException - if the parser does not support
locale.locale - The locale to check.locale.IlrSyntaxTree parse(IlrBRLParserInput input, IlrBRLParserConfigurationDef configuration, IlrBRLPredictionConfigurationDef predictionConfiguration)
The input is parsed using the BRL parser configuration and the
prediction configuration passed as parameters.
java.lang.IllegalArgumentException - if the parser does not support the locale of
the given input.input - The input to parse.configuration - The parser configuration used to parse the input.predictionConfiguration - The parser prediction configuration used by this method to
compute predictions. This parameter can be set to
null.IlrSyntaxTree,
IlrBRLParserInput,
IlrBRLParserConfigurationDef,
IlrBRLPredictionConfigurationDef© Copyright IBM Corp. 1987, 2017