Package dev.cel.checker
Class CelCheckerLegacyImpl
- java.lang.Object
-
- dev.cel.checker.CelCheckerLegacyImpl
-
- All Implemented Interfaces:
CelChecker,EnvVisitable
@Immutable @Internal public final class CelCheckerLegacyImpl extends java.lang.Object implements CelChecker, EnvVisitable
CelCheckerimplementation which uses the original CEL-Java APIs to provide a simple, consistent interface for type-checking.CEL Library Internals. Do Not Use. Consumers should use
CelCompilerFactoryto instantiate a type-checker.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCelCheckerLegacyImpl.BuilderBuilder class for the legacyCelCheckerimplementation.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(EnvVisitor envVisitor)CelValidationResultcheck(CelAbstractSyntaxTree ast)Check the inputastfor type-agreement and return aCelValidationResult.CelTypeProvidergetTypeProvider()Returns the underlying type provider.static CelCheckerBuildernewBuilder()Create a new builder to construct aCelCheckerinstance.CelCheckerBuildertoCheckerBuilder()
-
-
-
Method Detail
-
check
public CelValidationResult check(CelAbstractSyntaxTree ast)
Description copied from interface:CelCheckerCheck the inputastfor type-agreement and return aCelValidationResult.Check validates the type-agreement of the parsed
CelAbstractSyntaxTree.- Specified by:
checkin interfaceCelChecker
-
getTypeProvider
public CelTypeProvider getTypeProvider()
Description copied from interface:CelCheckerReturns the underlying type provider.- Specified by:
getTypeProviderin interfaceCelChecker
-
toCheckerBuilder
public CelCheckerBuilder toCheckerBuilder()
- Specified by:
toCheckerBuilderin interfaceCelChecker
-
accept
public void accept(EnvVisitor envVisitor)
- Specified by:
acceptin interfaceEnvVisitable
-
newBuilder
public static CelCheckerBuilder newBuilder()
Create a new builder to construct aCelCheckerinstance.
-
-