Package dev.cel.parser
Interface CelParser
-
- All Known Subinterfaces:
CelCompiler
- All Known Implementing Classes:
CelCompilerImpl
,CelParserImpl
@Immutable public interface CelParser
Public interface for the parsing CEL expressions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CelValidationResult
parse(CelSource source)
Parse the inputexpression
and return aCelValidationResult
.default CelValidationResult
parse(java.lang.String expression)
Parse the inputexpression
and return aCelValidationResult
.CelValidationResult
parse(java.lang.String expression, java.lang.String description)
Parse the inputexpression
and return aCelValidationResult
.CelParserBuilder
toParserBuilder()
-
-
-
Method Detail
-
parse
default CelValidationResult parse(java.lang.String expression)
Parse the inputexpression
and return aCelValidationResult
.Parse validates the syntax of an expression.
-
parse
CelValidationResult parse(java.lang.String expression, java.lang.String description)
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
@CheckReturnValue CelValidationResult parse(CelSource source)
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.
-
toParserBuilder
CelParserBuilder toParserBuilder()
-
-