public abstract class JmesPathFunction extends Object implements JmesPathExpression
| Constructor and Description |
|---|
JmesPathFunction(List<JmesPathExpression> expressions) |
| Modifier and Type | Method and Description |
|---|---|
<Input,Output> |
accept(JmesPathVisitor<Input,Output> visitor,
Input input)
Delegates to either the CodeGen visitor(JmesPathFunction) or
Evaluation visitor(JmesPathFunction) based on the type of JmesPath
visitor
|
abstract com.fasterxml.jackson.databind.JsonNode |
evaluate(List<com.fasterxml.jackson.databind.JsonNode> evaluatedArgs)
Abstract method definition for evaluating the given list of
expressions as per the given type of function
|
List<JmesPathExpression> |
getExpressions() |
public JmesPathFunction(List<JmesPathExpression> expressions)
public List<JmesPathExpression> getExpressions()
public <Input,Output> Output accept(JmesPathVisitor<Input,Output> visitor, Input input) throws InvalidTypeException
accept in interface JmesPathExpressionInput - Input type for the visitor
CodeGen visitor: Void
Evaluation visitor: JsonNodeOutput - Output type for the visitor
CodeGen visitor: String
Evaluation visitor: JsonNodevisitor - CodeGen visitor or Evaluation visitorinput - Input expression that needs to be evaluatedInvalidTypeExceptionpublic abstract com.fasterxml.jackson.databind.JsonNode evaluate(List<com.fasterxml.jackson.databind.JsonNode> evaluatedArgs)
evaluatedArgs - List of expressions to be evaluatedCopyright © 2021. All rights reserved.