Class TryCatch
- java.lang.Object
-
- net.thisptr.jackson.jq.internal.tree.TryCatch
-
- All Implemented Interfaces:
Expression
- Direct Known Subclasses:
TryCatch.Question
public class TryCatch extends java.lang.Object implements Expression
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TryCatch.Question
-
Field Summary
Fields Modifier and Type Field Description protected Expression
catchExpr
protected Expression
tryExpr
-
Constructor Summary
Constructors Constructor Description TryCatch(Expression tryExpr)
TryCatch(Expression tryExpr, Expression catchExpr)
-
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)
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
-
tryExpr
protected Expression tryExpr
-
catchExpr
protected Expression catchExpr
-
-
Constructor Detail
-
TryCatch
public TryCatch(Expression tryExpr, Expression catchExpr)
-
TryCatch
public TryCatch(Expression tryExpr)
-
-
Method Detail
-
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
-
-