Uses of Class
dev.cel.common.CelAbstractSyntaxTree
-
Packages that use CelAbstractSyntaxTree Package Description dev.cel.checker dev.cel.common dev.cel.common.navigation dev.cel.compiler dev.cel.optimizer dev.cel.optimizer.optimizers dev.cel.runtime -
-
Uses of CelAbstractSyntaxTree in dev.cel.checker
Methods in dev.cel.checker that return CelAbstractSyntaxTree Modifier and Type Method Description static CelAbstractSyntaxTreeExprChecker. typecheck(Env env, java.lang.String inContainer, CelAbstractSyntaxTree ast, com.google.common.base.Optional<CelType> expectedResultType)Deprecated.Type-checks the parsed expression within the given environment and returns a checked expression.Methods in dev.cel.checker with parameters of type CelAbstractSyntaxTree Modifier and Type Method Description CelValidationResultCelChecker. check(CelAbstractSyntaxTree ast)Check the inputastfor type-agreement and return aCelValidationResult.CelValidationResultCelCheckerLegacyImpl. check(CelAbstractSyntaxTree ast)static CelAbstractSyntaxTreeExprChecker. typecheck(Env env, java.lang.String inContainer, CelAbstractSyntaxTree ast, com.google.common.base.Optional<CelType> expectedResultType)Deprecated.Type-checks the parsed expression within the given environment and returns a checked expression. -
Uses of CelAbstractSyntaxTree in dev.cel.common
Methods in dev.cel.common that return CelAbstractSyntaxTree Modifier and Type Method Description CelAbstractSyntaxTreeCelProtoAbstractSyntaxTree. getAst()Returns the native representation of the abstract syntax tree:CelAbstractSyntaxTree.CelAbstractSyntaxTreeCelValidationResult. getAst()Returns the validatedCelAbstractSyntaxTreeif one exists.static CelAbstractSyntaxTreeCelAbstractSyntaxTree. newCheckedAst(CelExpr celExpr, CelSource celSource, java.util.Map<java.lang.Long,CelReference> references, java.util.Map<java.lang.Long,CelType> types)Constructs a new instance of CelAbstractSyntaxTree that represent a checked expression.static CelAbstractSyntaxTreeCelAbstractSyntaxTree. newParsedAst(CelExpr celExpr, CelSource celSource)Constructs a new instance of CelAbstractSyntaxTree that represent a parsed expression.Methods in dev.cel.common with parameters of type CelAbstractSyntaxTree Modifier and Type Method Description static CelProtoAbstractSyntaxTreeCelProtoAbstractSyntaxTree. fromCelAst(CelAbstractSyntaxTree ast)Constructs CelProtoAbstractSyntaxTree fromCelAbstractSyntaxTree.Constructors in dev.cel.common with parameters of type CelAbstractSyntaxTree Constructor Description CelValidationResult(CelAbstractSyntaxTree ast, com.google.common.collect.ImmutableList<CelIssue> issues)Internal: Consumers should not be creating an instance of this class on their own -
Uses of CelAbstractSyntaxTree in dev.cel.common.navigation
Methods in dev.cel.common.navigation that return CelAbstractSyntaxTree Modifier and Type Method Description CelAbstractSyntaxTreeCelNavigableAst. getAst()Returns the underlyingCelAbstractSyntaxTree.Methods in dev.cel.common.navigation with parameters of type CelAbstractSyntaxTree Modifier and Type Method Description static CelNavigableAstCelNavigableAst. fromAst(CelAbstractSyntaxTree ast)Constructs a new instance ofCelNavigableAstfromCelAbstractSyntaxTree. -
Uses of CelAbstractSyntaxTree in dev.cel.compiler
Methods in dev.cel.compiler with parameters of type CelAbstractSyntaxTree Modifier and Type Method Description CelValidationResultCelCompilerImpl. check(CelAbstractSyntaxTree ast) -
Uses of CelAbstractSyntaxTree in dev.cel.optimizer
Methods in dev.cel.optimizer that return CelAbstractSyntaxTree Modifier and Type Method Description CelAbstractSyntaxTreeCelAstOptimizer. optimize(CelNavigableAst navigableAst, Cel cel)Optimizes a single AST.CelAbstractSyntaxTreeCelOptimizer. optimize(CelAbstractSyntaxTree ast)Performs custom optimization of the provided AST.default CelAbstractSyntaxTreeCelAstOptimizer. replaceSubtree(CelAbstractSyntaxTree ast, CelExpr newExpr, long exprIdToReplace)Replaces a subtree in the given AST.Methods in dev.cel.optimizer with parameters of type CelAbstractSyntaxTree Modifier and Type Method Description CelAbstractSyntaxTreeCelOptimizer. optimize(CelAbstractSyntaxTree ast)Performs custom optimization of the provided AST.default CelAbstractSyntaxTreeCelAstOptimizer. replaceSubtree(CelAbstractSyntaxTree ast, CelExpr newExpr, long exprIdToReplace)Replaces a subtree in the given AST. -
Uses of CelAbstractSyntaxTree in dev.cel.optimizer.optimizers
Methods in dev.cel.optimizer.optimizers that return CelAbstractSyntaxTree Modifier and Type Method Description CelAbstractSyntaxTreeConstantFoldingOptimizer. optimize(CelNavigableAst navigableAst, Cel cel) -
Uses of CelAbstractSyntaxTree in dev.cel.runtime
Methods in dev.cel.runtime with parameters of type CelAbstractSyntaxTree Modifier and Type Method Description InterpretableDefaultInterpreter. createInterpretable(CelAbstractSyntaxTree ast)InterpretableInterpreter. createInterpretable(CelAbstractSyntaxTree ast)Creates an interpretable for the given expression.CelRuntime.ProgramCelRuntime. createProgram(CelAbstractSyntaxTree ast)Creates aProgramfrom the inputast.CelRuntime.ProgramCelRuntimeLegacyImpl. createProgram(CelAbstractSyntaxTree ast)Constructors in dev.cel.runtime with parameters of type CelAbstractSyntaxTree Constructor Description DefaultMetadata(CelAbstractSyntaxTree ast)
-