Package dev.cel.parser
Interface CelUnparser
-
public interface CelUnparserProvides 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.Stringunparse(CelAbstractSyntaxTree ast)Unparses theCelAbstractSyntaxTreevalue to a human-readable string.
-
-
-
Method Detail
-
unparse
java.lang.String unparse(CelAbstractSyntaxTree ast)
Unparses theCelAbstractSyntaxTreevalue to a human-readable string.To reconstruct an expression that originally contained a macro call, ensure the expression was parsed with
CelOptions.populateMacroCalls()enabled.
-
-