public class IlrBRLDefaultParserConfiguration extends java.lang.Object implements IlrBRLMutableParserConfiguration
| Constructor and Description |
|---|
IlrBRLDefaultParserConfiguration(java.util.Collection<IlrBRLMarker> errs)
This constructor creates a new parser configuration.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearErrors()
This method reset the collection of errors that has been set to this object if any
|
java.util.Collection<IlrBRLMarker> |
getErrors()
This method returns the errors that has been reported to this parser configuration the last
time it has been used.
|
IlrBRLMarkerFilter |
getMarkerFilter()
Returns the marker filter used to filter errors reported during parsing.
|
IlrBRLVariableProvider |
getVariableProvider()
Returns the variable provider that must be used to provide external
variables during parsing.
|
boolean |
isDecorating()
Checks if the parser must include decoration in the AST.
|
boolean |
isReportingErrors()
Checks if the parser must report errors using the error listener API.
|
void |
markerAdded(IlrBRLMarker marker)
Method invoked by the parser when errors are reported when parsing a BRL Input.
|
void |
setDecorating(boolean isDecorating)
Sets if parsing must include decoration in the AST.
|
void |
setMarkerFilter(IlrBRLMarkerFilter markerFilter)
Sets the marker filter used to filter the errors reported during parsing.
|
void |
setReportingErrors(boolean reportErrors)
Sets error reporting for this object.
|
void |
setVariableProvider(IlrBRLVariableProvider variableProvider)
Set the variable provider that must be used to provide external variables
while parsing.
|
void |
startParsing(java.io.Reader input)
Deprecated.
|
boolean |
useAutomaticVariables()
Checks if automatic variables are allowed.
|
void |
useAutomaticVariables(boolean useAutomaticVariables)
Sets this object to allow or disallow automatic variables.
|
public IlrBRLDefaultParserConfiguration(java.util.Collection<IlrBRLMarker> errs)
errs - a collection that will be filled when this configuration will be used
to parse a BRL input.public java.util.Collection<IlrBRLMarker> getErrors()
public void clearErrors()
public void setVariableProvider(IlrBRLVariableProvider variableProvider)
IlrBRLMutableParserConfigurationsetVariableProvider in interface IlrBRLMutableParserConfigurationvariableProvider - The new variable provider.public IlrBRLVariableProvider getVariableProvider()
IlrBRLParserConfigurationDefgetVariableProvider in interface IlrBRLParserConfigurationDefpublic boolean isReportingErrors()
IlrBRLParserConfigurationDefisReportingErrors in interface IlrBRLParserConfigurationDeftrue is returned.public void markerAdded(IlrBRLMarker marker)
markerAdded in interface ilog.rules.brl.parsing.parser.IlrErrorListenermarker - The reported marker.IlrBRLMarkerpublic void startParsing(java.io.Reader input)
public boolean isDecorating()
IlrBRLParserConfigurationDefisDecorating in interface IlrBRLParserConfigurationDeftrue is returned.public void setDecorating(boolean isDecorating)
IlrBRLMutableParserConfigurationsetDecorating in interface IlrBRLMutableParserConfigurationisDecorating - Set to true so parsing must include decoration
in the AST.public void setMarkerFilter(IlrBRLMarkerFilter markerFilter)
IlrBRLMutableParserConfigurationsetMarkerFilter in interface IlrBRLMutableParserConfigurationmarkerFilter - The new marker filter.public IlrBRLMarkerFilter getMarkerFilter()
IlrBRLParserConfigurationDefgetMarkerFilter in interface IlrBRLParserConfigurationDefnull if no filter is
used.public boolean useAutomaticVariables()
IlrBRLParserConfigurationDefuseAutomaticVariables in interface IlrBRLParserConfigurationDeftrue is returned.public void setReportingErrors(boolean reportErrors)
IlrBRLMutableParserConfigurationsetReportingErrors in interface IlrBRLMutableParserConfigurationreportErrors - Set to true for parsing to report errors
through the error listener API.public void useAutomaticVariables(boolean useAutomaticVariables)
IlrBRLMutableParserConfigurationuseAutomaticVariables in interface IlrBRLMutableParserConfigurationuseAutomaticVariables - Set to true to use automatic
variables.© Copyright IBM Corp. 1987, 2017