Class Conditional
java.lang.Object
net.thisptr.jackson.jq.internal.tree.Conditional
- All Implemented Interfaces:
Expression
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConditional
(List<Pair<Expression, Expression>> switches, Expression otherwise) -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(Scope scope, com.fasterxml.jackson.databind.JsonNode in, Path path, PathOutput output, boolean requirePath) private void
pathRecursive
(PathOutput output, Scope scope, List<Pair<Expression, Expression>> switches, com.fasterxml.jackson.databind.JsonNode in, Path path) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.thisptr.jackson.jq.Expression
apply
-
Field Details
-
otherwise
-
switches
-
-
Constructor Details
-
Conditional
-
-
Method Details
-
pathRecursive
private void pathRecursive(PathOutput output, Scope scope, List<Pair<Expression, Expression>> switches, com.fasterxml.jackson.databind.JsonNode in, Path path) throws JsonQueryException- Throws:
JsonQueryException
-
apply
public void apply(Scope scope, com.fasterxml.jackson.databind.JsonNode in, Path path, PathOutput output, boolean requirePath) throws JsonQueryException - Specified by:
apply
in interfaceExpression
- Throws:
JsonQueryException
-
toString
-