Class Conditional
- java.lang.Object
-
- net.thisptr.jackson.jq.internal.tree.Conditional
-
- All Implemented Interfaces:
Expression
public class Conditional extends java.lang.Object implements Expression
-
-
Field Summary
Fields Modifier and Type Field Description private Expression
otherwise
private java.util.List<Pair<Expression,Expression>>
switches
-
Constructor Summary
Constructors Constructor Description Conditional(java.util.List<Pair<Expression,Expression>> switches, Expression otherwise)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(Scope scope, com.fasterxml.jackson.databind.JsonNode in, Path path, PathOutput output, boolean requirePath)
private void
pathRecursive(PathOutput output, Scope scope, java.util.List<Pair<Expression,Expression>> switches, com.fasterxml.jackson.databind.JsonNode in, Path path)
java.lang.String
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 Detail
-
otherwise
private Expression otherwise
-
switches
private java.util.List<Pair<Expression,Expression>> switches
-
-
Constructor Detail
-
Conditional
public Conditional(java.util.List<Pair<Expression,Expression>> switches, Expression otherwise)
-
-
Method Detail
-
pathRecursive
private void pathRecursive(PathOutput output, Scope scope, java.util.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
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-