Package dev.cel.checker
Class CelCheckerLegacyImpl
- java.lang.Object
-
- dev.cel.checker.CelCheckerLegacyImpl
-
- All Implemented Interfaces:
CelChecker,EnvVisitable
@Immutable 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.
-
-
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.static CelCheckerLegacyImpl.BuildernewBuilder()Create a new builder to construct aCelCheckerinstance.
-
-
-
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
-
accept
public void accept(EnvVisitor envVisitor)
- Specified by:
acceptin interfaceEnvVisitable
-
newBuilder
public static CelCheckerLegacyImpl.Builder newBuilder()
Create a new builder to construct aCelCheckerinstance.
-
-