mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 10:23:14 -04:00
2 KiB
2 KiB
Home > kibana-plugin-plugins-expressions-server > ExpressionAstExpressionBuilder
ExpressionAstExpressionBuilder interface
Signature:
export interface ExpressionAstExpressionBuilder
Properties
Property | Type | Description |
---|---|---|
findFunction | <FnDef extends AnyExpressionFunctionDefinition = AnyExpressionFunctionDefinition>(fnName: InferFunctionDefinition<FnDef>['name']) => Array<ExpressionAstFunctionBuilder<FnDef>> | [] |
Recursively searches expression for all ocurrences of the function, including in subexpressions.Useful when performing migrations on a specific function, as you can iterate over the array of references and update all functions at once. |
functions | ExpressionAstFunctionBuilder[] |
Array of each of the buildExpressionFunction() instances in this expression. Use this to remove or reorder functions in the expression. |
toAst | () => ExpressionAstExpression |
Converts expression to an AST. ExpressionAstExpression |
toString | () => string |
Converts expression to an expression string. string |
type | 'expression_builder' |
Used to identify expression builder objects. |