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 classTryCatch.Question
-
Field Summary
Fields Modifier and Type Field Description protected ExpressioncatchExprprotected ExpressiontryExpr
-
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 voidapply(Scope scope, com.fasterxml.jackson.databind.JsonNode in, Path path, PathOutput output, boolean requirePath)java.lang.StringtoString()-
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:
applyin interfaceExpression- Throws:
JsonQueryException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-