Package dev.cel.compiler
Interface CelCompiler
-
- All Superinterfaces:
CelChecker,CelParser
- All Known Subinterfaces:
Cel
- All Known Implementing Classes:
CelCompilerImpl
@Immutable public interface CelCompiler extends CelParser, CelChecker
CelCompiler bundles up the common concerns for parsing and type-checking exposes additional methods for performing both operations in a single pass.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default CelValidationResultcompile(java.lang.String expression)Compile the inputexpressionand return aCelValidationResult.default CelValidationResultcompile(java.lang.String expression, java.lang.String description)Compile the inputexpressionand return aCelValidationResult.-
Methods inherited from interface dev.cel.checker.CelChecker
check
-
-
-
-
Method Detail
-
compile
default CelValidationResult compile(java.lang.String expression)
Compile the inputexpressionand return aCelValidationResult.Compile will
parse, thenchecktheexpressionto validate the syntax and type-agreement of the expression.
-
compile
default CelValidationResult compile(java.lang.String expression, java.lang.String description)
Compile 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.Compile will
parse, thenchecktheexpressionto validate the syntax and type-agreement of the expression.
-
-