ilog.rules.brl.parsing

Class IlrBRLDefaultParserConfiguration

  • java.lang.Object
    • ilog.rules.brl.parsing.IlrBRLDefaultParserConfiguration
  • All Implemented Interfaces:
    IlrBRLMutableParserConfiguration, IlrBRLParserConfigurationDef, ilog.rules.brl.parsing.parser.IlrErrorListener, ilog.rules.brl.parsing.parser.IlrParserListener, java.util.EventListener


    public class IlrBRLDefaultParserConfiguration
    extends java.lang.Object
    implements IlrBRLMutableParserConfiguration
    A default implementation of a BRL Parser Configuration used to parse BRL input using a BRL Parser. By default the following default values are used: isDecorating = true useAutomaticVariables = true This configuration reports error if a non null collection of errors has been passed to the constructor
    • Method Summary

      Methods 
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface ilog.rules.brl.parsing.parser.IlrParserListener

        parsingAborted, reportErrors, startParsing, stopParsing
    • Constructor Detail

      • IlrBRLDefaultParserConfiguration

        public IlrBRLDefaultParserConfiguration(java.util.Collection<IlrBRLMarker> errs)
        This constructor creates a new parser configuration. This configuration collects errors on the provided collection. You can retrieve the collected errors using getErrors()
        Parameters:
        errs - a collection that will be filled when this configuration will be used to parse a BRL input.

© Copyright IBM Corp. 1987, 2017