public class Scope extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Scope.ValueWithPath |
| Modifier and Type | Method and Description |
|---|---|
void |
addFunction(String name,
Function q) |
void |
addFunction(String name,
int n,
Function q) |
void |
addImportedModule(String name,
Module module) |
Module |
getCurrentModule() |
Function |
getFunction(String name,
int nargs) |
com.fasterxml.jackson.databind.JsonNode |
getImportedData(String name) |
List<Module> |
getImportedModules(String name) |
Map<String,Function> |
getLocalFunctions() |
ModuleLoader |
getModuleLoader() |
com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
Scope |
getParentScope() |
com.fasterxml.jackson.databind.JsonNode |
getValue(String name) |
Scope.ValueWithPath |
getValueWithPath(String name) |
static Scope |
newChildScope(Scope scope) |
static Scope |
newEmptyScope() |
void |
setCurrentModule(Module module) |
void |
setImportedData(String name,
com.fasterxml.jackson.databind.JsonNode data) |
void |
setModuleLoader(ModuleLoader moduleLoader) |
void |
setValue(String name,
com.fasterxml.jackson.databind.JsonNode value) |
void |
setValue(String name,
Supplier<com.fasterxml.jackson.databind.JsonNode> supplier) |
void |
setValueWithPath(String name,
com.fasterxml.jackson.databind.JsonNode value,
Path path) |
void |
setValueWithPath(String name,
Supplier<com.fasterxml.jackson.databind.JsonNode> value,
Path path) |
public static Scope newEmptyScope()
public Scope getParentScope()
public void setValue(String name, com.fasterxml.jackson.databind.JsonNode value)
public void setValue(String name, Supplier<com.fasterxml.jackson.databind.JsonNode> supplier)
public void setValueWithPath(String name, com.fasterxml.jackson.databind.JsonNode value, Path path)
public void setValueWithPath(String name, Supplier<com.fasterxml.jackson.databind.JsonNode> value, Path path)
public Scope.ValueWithPath getValueWithPath(String name)
public com.fasterxml.jackson.databind.JsonNode getValue(String name)
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
public void setImportedData(String name, com.fasterxml.jackson.databind.JsonNode data)
public com.fasterxml.jackson.databind.JsonNode getImportedData(String name)
public void setModuleLoader(ModuleLoader moduleLoader)
public ModuleLoader getModuleLoader()
public Module getCurrentModule()
public void setCurrentModule(Module module)
Copyright © 2025. All rights reserved.