kibana/docs/development/plugins/expressions/server/kibana-plugin-plugins-expressions-server.expressionastexpressionbuilder.md
2020-09-30 09:10:28 +02:00

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.