Package dev.cel.parser
Interface CelParser
-
- All Known Subinterfaces:
CelCompiler
- All Known Implementing Classes:
CelCompilerImpl,CelParserImpl
@Immutable public interface CelParserPublic interface for the parsing CEL expressions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CelValidationResultparse(CelSource source)Parse the inputexpressionand return aCelValidationResult.default CelValidationResultparse(java.lang.String expression)Parse the inputexpressionand return aCelValidationResult.CelValidationResultparse(java.lang.String expression, java.lang.String description)Parse the inputexpressionand return aCelValidationResult.CelParserBuildertoParserBuilder()
-
-
-
Method Detail
-
parse
default CelValidationResult parse(java.lang.String expression)
Parse the inputexpressionand return aCelValidationResult.Parse validates the syntax of an expression.
-
parse
CelValidationResult parse(java.lang.String expression, java.lang.String description)
Parse the inputexpressionand return aCelValidationResult.The
descriptionmay be used to help tailor error messages for the location where theexpressionoriginates, e.g. a file name or form UI element.Parse validates the syntax of an expression.
-
parse
@CheckReturnValue CelValidationResult parse(CelSource source)
Parse the inputexpressionand return aCelValidationResult.The
descriptionmay be used to help tailor error messages for the location where theexpressionoriginates, e.g. a file name or form UI element.Parse validates the syntax of an expression.
-
toParserBuilder
CelParserBuilder toParserBuilder()
-
-