Package dev.cel.parser
Class CelParserImpl
- java.lang.Object
-
- dev.cel.parser.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CelParserImpl.Builder
Builder forCelParserImpl
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CelOptions
getOptions()
Return the options theCelParser
was originally created with.static CelParserBuilder
newBuilder()
Creates a newCelParserImpl.Builder
.CelValidationResult
parse(CelSource source)
Parse the inputexpression
and return aCelValidationResult
.CelValidationResult
parse(java.lang.String expression, java.lang.String description)
Parse the inputexpression
and return aCelValidationResult
.
-
-
-
Method Detail
-
newBuilder
public static CelParserBuilder newBuilder()
Creates a newCelParserImpl.Builder
.
-
parse
public CelValidationResult parse(java.lang.String expression, java.lang.String description)
Description copied from interface:CelParser
Parse the inputexpression
and return aCelValidationResult
.The
description
may be used to help tailor error messages for the location where theexpression
originates, e.g. a file name or form UI element.Parse validates the syntax of an expression.
-
parse
public CelValidationResult parse(CelSource source)
Description copied from interface:CelParser
Parse the inputexpression
and return aCelValidationResult
.The
description
may be used to help tailor error messages for the location where theexpression
originates, e.g. a file name or form UI element.Parse validates the syntax of an expression.
-
getOptions
public CelOptions getOptions()
Return the options theCelParser
was originally created with.
-
-