Package net.thisptr.jackson.jq
Class Scope
java.lang.Object
net.thisptr.jackson.jq.Scope
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Module
private static final com.fasterxml.jackson.databind.ObjectMapper
private Map
<String, LinkedList<Module>> private com.fasterxml.jackson.databind.ObjectMapper
private ModuleLoader
private Scope
private Map
<String, Scope.ValueWithPath> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFunction
(String name, int n, Function q) void
addFunction
(String name, Function q) void
addImportedModule
(String name, Module module) getFunction
(String name, int nargs) private Function
getFunctionRecursive
(String name) com.fasterxml.jackson.databind.JsonNode
getImportedData
(String name) getImportedModules
(String name) private void
getImportedModules
(List<Module> modules, String name) com.fasterxml.jackson.databind.ObjectMapper
com.fasterxml.jackson.databind.JsonNode
getValueWithPath
(String name) static Scope
newChildScope
(Scope scope) static Scope
void
setCurrentModule
(Module module) void
setImportedData
(String name, com.fasterxml.jackson.databind.JsonNode data) void
setModuleLoader
(ModuleLoader moduleLoader) void
void
setValueWithPath
(String name, com.fasterxml.jackson.databind.JsonNode value, Path path)
-
Field Details
-
DEFAULT_MAPPER
private static final com.fasterxml.jackson.databind.ObjectMapper DEFAULT_MAPPER -
parentScope
-
functions
-
importedModules
-
importedData
-
moduleLoader
-
values
-
mapper
private com.fasterxml.jackson.databind.ObjectMapper mapper -
currentModule
-
-
Constructor Details
-
Scope
-
-
Method Details
-
debugFunctions
-
newEmptyScope
-
newChildScope
-
addFunction
-
addFunction
-
getFunction
-
getLocalFunctions
-
getParentScope
-
getFunctionRecursive
-
setValue
-
setValueWithPath
-
getValueWithPath
-
getValue
-
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper() -
setImportedData
-
getImportedData
-
addImportedModule
-
getImportedModules
-
getImportedModules
-
setModuleLoader
-
getModuleLoader
-
getCurrentModule
-
setCurrentModule
-