Package dev.cel.parser
Interface CelUnparser
-
public interface CelUnparser
Provides an unparsing utility that converts an AST back into a human-readable format.Input to the unparser is a
CelAbstractSyntaxTree
. The unparser does not do any checks to see if the AST is syntactically or semantically correct but does check enough to prevent its crash and might return errors in such cases.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
unparse(CelAbstractSyntaxTree ast)
Unparses theCelAbstractSyntaxTree
value to a human-readable string.
-
-
-
Method Detail
-
unparse
java.lang.String unparse(CelAbstractSyntaxTree ast)
Unparses theCelAbstractSyntaxTree
value to a human-readable string.To reconstruct an expression that originally contained a macro call, ensure the expression was parsed with
CelOptions.populateMacroCalls()
enabled.
-
-