Class Scope
java.lang.Object
net.thisptr.jackson.jq.Scope
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static classstatic interfaceprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Moduleprivate static final com.fasterxml.jackson.databind.ObjectMapperprivate Map<String, LinkedList<Module>> private com.fasterxml.jackson.databind.ObjectMapperprivate ModuleLoaderprivate Scopeprivate Map<String, Scope.ValueWithPath> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFunction(String name, int n, Function q) voidaddFunction(String name, Function q) voidaddImportedModule(String name, Module module) getFunction(String name, int nargs) private FunctiongetFunctionRecursive(String name) com.fasterxml.jackson.databind.JsonNodegetImportedData(String name) getImportedModules(String name) private voidgetImportedModules(List<Module> modules, String name) com.fasterxml.jackson.databind.ObjectMappercom.fasterxml.jackson.databind.JsonNodegetValueWithPath(String name) static ScopenewChildScope(Scope scope) static ScopevoidsetCurrentModule(Module module) voidsetImportedData(String name, com.fasterxml.jackson.databind.JsonNode data) voidsetModuleLoader(ModuleLoader moduleLoader) voidvoidvoidsetValueWithPath(String name, com.fasterxml.jackson.databind.JsonNode value, Path path) voidsetValueWithPath(String name, Supplier<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
-
setValue
-
setValueWithPath
-
setValueWithPath
-
getValueWithPath
-
getValue
-
getObjectMapper
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper() -
setImportedData
-
getImportedData
-
addImportedModule
-
getImportedModules
-
getImportedModules
-
setModuleLoader
-
getModuleLoader
-
getCurrentModule
-
setCurrentModule
-