Class FunctionDefinition
- java.lang.Object
-
- net.thisptr.jackson.jq.internal.tree.FunctionDefinition
-
- All Implemented Interfaces:
Expression
public class FunctionDefinition extends java.lang.Object implements Expression
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.lang.String>
args
private Expression
body
private java.lang.String
fname
-
Constructor Summary
Constructors Constructor Description FunctionDefinition(java.lang.String fname, java.util.List<java.lang.String> args, Expression body)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(Scope scope, com.fasterxml.jackson.databind.JsonNode in, Path ipath, 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
-
body
private Expression body
-
fname
private java.lang.String fname
-
args
private java.util.List<java.lang.String> args
-
-
Constructor Detail
-
FunctionDefinition
public FunctionDefinition(java.lang.String fname, java.util.List<java.lang.String> args, Expression body)
-
-
Method Detail
-
apply
public void apply(Scope scope, com.fasterxml.jackson.databind.JsonNode in, Path ipath, 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
-
-