Class CelParserImpl

  • All Implemented Interfaces:
    CelParser

    @Immutable
    @Internal
    public final class CelParserImpl
    extends java.lang.Object
    implements CelParser
    Modernized parser implementation for CEL.

    CEL Library Internals. Do Not Use. Consumers should use factories, such as CelParserFactory instead to instantiate a parser.

    • Method Detail

      • parse

        public CelValidationResult parse​(java.lang.String expression,
                                         java.lang.String description)
        Description copied from interface: CelParser
        Parse the input expression and return a CelValidationResult.

        The description may be used to help tailor error messages for the location where the expression originates, e.g. a file name or form UI element.

        Parse validates the syntax of an expression.

        Specified by:
        parse in interface CelParser
      • parse

        public CelValidationResult parse​(CelSource source)
        Description copied from interface: CelParser
        Parse the input expression and return a CelValidationResult.

        The description may be used to help tailor error messages for the location where the expression originates, e.g. a file name or form UI element.

        Parse validates the syntax of an expression.

        Specified by:
        parse in interface CelParser
      • getOptions

        public CelOptions getOptions()
        Return the options the CelParser was originally created with.