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
CelParserFactoryinstead to instantiate a parser.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCelParserImpl.BuilderBuilder forCelParserImpl.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CelOptionsgetOptions()Return the options theCelParserwas originally created with.static CelParserBuildernewBuilder()Creates a newCelParserImpl.Builder.CelValidationResultparse(CelSource source)Parse the inputexpressionand return aCelValidationResult.CelValidationResultparse(java.lang.String expression, java.lang.String description)Parse the inputexpressionand return aCelValidationResult.CelParserBuildertoParserBuilder()
-
-
-
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:CelParserParse 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
public CelValidationResult parse(CelSource source)
Description copied from interface:CelParserParse 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
public CelParserBuilder toParserBuilder()
- Specified by:
toParserBuilderin interfaceCelParser
-
getOptions
public CelOptions getOptions()
Return the options theCelParserwas originally created with.
-
-