public class JmesPathEvaluationVisitor extends Object implements JmesPathVisitor<com.fasterxml.jackson.databind.JsonNode,com.fasterxml.jackson.databind.JsonNode>
Constructor and Description |
---|
JmesPathEvaluationVisitor() |
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
visit(Comparator op,
com.fasterxml.jackson.databind.JsonNode input)
Evaluate the expressions as per the given comparison
operator.
|
com.fasterxml.jackson.databind.JsonNode |
visit(JmesPathAndExpression andExpression,
com.fasterxml.jackson.databind.JsonNode input)
And expression will evaluate to either the left expression or
the right expression.
|
com.fasterxml.jackson.databind.JsonNode |
visit(JmesPathField fieldNode,
com.fasterxml.jackson.databind.JsonNode input)
Retrieves the value of the field node
|
com.fasterxml.jackson.databind.JsonNode |
visit(JmesPathFilter filter,
com.fasterxml.jackson.databind.JsonNode input)
Evaluates a filter expression as follows.
|
com.fasterxml.jackson.databind.JsonNode |
visit(JmesPathFlatten flatten,
com.fasterxml.jackson.databind.JsonNode input)
Flattens out the elements of the given expression into a
single list.
|
com.fasterxml.jackson.databind.JsonNode |
visit(JmesPathFunction function,
com.fasterxml.jackson.databind.JsonNode input)
Evaluates function expression in applicative order.
|
com.fasterxml.jackson.databind.JsonNode |
visit(JmesPathIdentity jmesPathIdentity,
com.fasterxml.jackson.databind.JsonNode input)
Returns the input node itself
|
com.fasterxml.jackson.databind.JsonNode |
visit(JmesPathLiteral literal,
com.fasterxml.jackson.databind.JsonNode input)
Retrieves the literal value
|
com.fasterxml.jackson.databind.JsonNode |
visit(JmesPathMultiSelectList multiSelectList,
com.fasterxml.jackson.databind.JsonNode input)
Each expression in the multiselect list will be evaluated
against the JSON document.
|
com.fasterxml.jackson.databind.JsonNode |
visit(JmesPathNotExpression notExpression,
com.fasterxml.jackson.databind.JsonNode input)
Not-expression negates the result of an expression.
|
com.fasterxml.jackson.databind.JsonNode |
visit(JmesPathProjection jmesPathProjection,
com.fasterxml.jackson.databind.JsonNode input)
Evaluates a list projection expression in two steps.
|
com.fasterxml.jackson.databind.JsonNode |
visit(JmesPathSubExpression subExpression,
com.fasterxml.jackson.databind.JsonNode input)
Evaluates a subexpression by evaluating the expression on
the left with the original JSON document and then evaluating
the expression on the right with the result of the left
expression evaluation.
|
com.fasterxml.jackson.databind.JsonNode |
visit(JmesPathValueProjection valueProjection,
com.fasterxml.jackson.databind.JsonNode input)
Evaluates the object projection expression.
|
public com.fasterxml.jackson.databind.JsonNode visit(JmesPathSubExpression subExpression, com.fasterxml.jackson.databind.JsonNode input) throws InvalidTypeException
visit
in interface JmesPathVisitor<com.fasterxml.jackson.databind.JsonNode,com.fasterxml.jackson.databind.JsonNode>
subExpression
- JmesPath subexpression typeinput
- Input json node against which evaluation is doneInvalidTypeException
public com.fasterxml.jackson.databind.JsonNode visit(JmesPathField fieldNode, com.fasterxml.jackson.databind.JsonNode input)
visit
in interface JmesPathVisitor<com.fasterxml.jackson.databind.JsonNode,com.fasterxml.jackson.databind.JsonNode>
fieldNode
- JmesPath field typeinput
- Input json node whose value is
retrievedpublic com.fasterxml.jackson.databind.JsonNode visit(JmesPathProjection jmesPathProjection, com.fasterxml.jackson.databind.JsonNode input) throws InvalidTypeException
visit
in interface JmesPathVisitor<com.fasterxml.jackson.databind.JsonNode,com.fasterxml.jackson.databind.JsonNode>
jmesPathProjection
- JmesPath list projection typeinput
- Input json node against which evaluation is doneInvalidTypeException
public com.fasterxml.jackson.databind.JsonNode visit(JmesPathFlatten flatten, com.fasterxml.jackson.databind.JsonNode input) throws InvalidTypeException
visit
in interface JmesPathVisitor<com.fasterxml.jackson.databind.JsonNode,com.fasterxml.jackson.databind.JsonNode>
flatten
- JmesPath flatten typeinput
- Input json node against which evaluation is doneInvalidTypeException
public com.fasterxml.jackson.databind.JsonNode visit(JmesPathIdentity jmesPathIdentity, com.fasterxml.jackson.databind.JsonNode input)
visit
in interface JmesPathVisitor<com.fasterxml.jackson.databind.JsonNode,com.fasterxml.jackson.databind.JsonNode>
jmesPathIdentity
- JmesPath identity typeinput
- Input json nodepublic com.fasterxml.jackson.databind.JsonNode visit(JmesPathValueProjection valueProjection, com.fasterxml.jackson.databind.JsonNode input) throws InvalidTypeException
visit
in interface JmesPathVisitor<com.fasterxml.jackson.databind.JsonNode,com.fasterxml.jackson.databind.JsonNode>
valueProjection
- JmesPath value projection typeinput
- Input json node against which evaluation is doneInvalidTypeException
public com.fasterxml.jackson.databind.JsonNode visit(JmesPathFunction function, com.fasterxml.jackson.databind.JsonNode input) throws InvalidTypeException
visit
in interface JmesPathVisitor<com.fasterxml.jackson.databind.JsonNode,com.fasterxml.jackson.databind.JsonNode>
function
- JmesPath function typeinput
- Input json node against which evaluation is doneInvalidTypeException
public com.fasterxml.jackson.databind.JsonNode visit(JmesPathLiteral literal, com.fasterxml.jackson.databind.JsonNode input)
visit
in interface JmesPathVisitor<com.fasterxml.jackson.databind.JsonNode,com.fasterxml.jackson.databind.JsonNode>
literal
- JmesPath literal typeinput
- Input json node against which evaluation is donepublic com.fasterxml.jackson.databind.JsonNode visit(JmesPathFilter filter, com.fasterxml.jackson.databind.JsonNode input) throws InvalidTypeException
visit
in interface JmesPathVisitor<com.fasterxml.jackson.databind.JsonNode,com.fasterxml.jackson.databind.JsonNode>
filter
- JmesPath filter typeinput
- Input json node against which evaluation is doneInvalidTypeException
public com.fasterxml.jackson.databind.JsonNode visit(Comparator op, com.fasterxml.jackson.databind.JsonNode input)
visit
in interface JmesPathVisitor<com.fasterxml.jackson.databind.JsonNode,com.fasterxml.jackson.databind.JsonNode>
op
- JmesPath comparison operator typeinput
- Input json node against which evaluation is donepublic com.fasterxml.jackson.databind.JsonNode visit(JmesPathNotExpression notExpression, com.fasterxml.jackson.databind.JsonNode input) throws InvalidTypeException
visit
in interface JmesPathVisitor<com.fasterxml.jackson.databind.JsonNode,com.fasterxml.jackson.databind.JsonNode>
notExpression
- JmesPath not-expression typeinput
- Input json node against which evaluation is doneInvalidTypeException
public com.fasterxml.jackson.databind.JsonNode visit(JmesPathAndExpression andExpression, com.fasterxml.jackson.databind.JsonNode input) throws InvalidTypeException
visit
in interface JmesPathVisitor<com.fasterxml.jackson.databind.JsonNode,com.fasterxml.jackson.databind.JsonNode>
andExpression
- JmesPath and-expression typeinput
- Input json node against which evaluation is doneInvalidTypeException
public com.fasterxml.jackson.databind.JsonNode visit(JmesPathMultiSelectList multiSelectList, com.fasterxml.jackson.databind.JsonNode input) throws InvalidTypeException
visit
in interface JmesPathVisitor<com.fasterxml.jackson.databind.JsonNode,com.fasterxml.jackson.databind.JsonNode>
multiSelectList
- JmesPath multiselect list typeinput
- Input json node against which evaluation is doneInvalidTypeException