Package dev.cel.parser
Class CelParserImpl
- java.lang.Object
-
- dev.cel.parser.CelParserImpl
-
- All Implemented Interfaces:
EnvVisitable
,CelParser
@Immutable @Internal public final class CelParserImpl extends java.lang.Object implements CelParser, EnvVisitable
Modernized parser implementation for CEL.CEL Library Internals. Do Not Use. Consumers should use factories, such as
CelParserFactory
instead to instantiate a parser.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CelParserImpl.Builder
Builder forCelParserImpl
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(EnvVisitor visitor)
CelOptions
getOptions()
Return the options theCelParser
was originally created with.static CelParserBuilder
newBuilder()
Creates a newCelParserImpl.Builder
.CelValidationResult
parse(CelSource source)
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
-
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:CelParser
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
public CelValidationResult parse(CelSource source)
Description copied from interface:CelParser
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
public CelParserBuilder toParserBuilder()
- Specified by:
toParserBuilder
in interfaceCelParser
-
getOptions
public CelOptions getOptions()
Return the options theCelParser
was originally created with.
-
accept
public void accept(EnvVisitor visitor)
- Specified by:
accept
in interfaceEnvVisitable
-
-