Package dev.cel.compiler
Interface CelCompiler
-
- All Superinterfaces:
CelChecker
,CelParser
- 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 Abstract Methods Default Methods Modifier and Type Method Description default CelValidationResult
compile(java.lang.String expression)
Compile the inputexpression
and return aCelValidationResult
.default CelValidationResult
compile(java.lang.String expression, java.lang.String description)
Compile the inputexpression
and return aCelValidationResult
.CelCompilerBuilder
toCompilerBuilder()
-
Methods inherited from interface dev.cel.checker.CelChecker
check, getTypeProvider, toCheckerBuilder
-
Methods inherited from interface dev.cel.parser.CelParser
parse, parse, parse, toParserBuilder
-
-
-
-
Method Detail
-
compile
default CelValidationResult compile(java.lang.String expression)
Compile the inputexpression
and return aCelValidationResult
.Compile will
parse
, thencheck
theexpression
to validate the syntax and type-agreement of the expression.
-
compile
default CelValidationResult compile(java.lang.String expression, java.lang.String description)
Compile 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.Compile will
parse
, thencheck
theexpression
to validate the syntax and type-agreement of the expression.
-
toCompilerBuilder
CelCompilerBuilder toCompilerBuilder()
-
-