public class Scope extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Scope.DebugScopeFunction |
| Constructor and Description |
|---|
Scope()
Deprecated.
|
Scope(Scope parentScope)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFunction(String name,
Function q) |
void |
addFunction(String name,
int n,
Function q) |
Function |
getFunction(String name,
int nargs) |
com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
com.fasterxml.jackson.databind.JsonNode |
getValue(String name) |
void |
loadFunctions(ClassLoader classLoader)
Load function definitions from the default resource
from an arbitrary
ClassLoader. |
static Scope |
newChildScope(Scope scope) |
static Scope |
newEmptyScope() |
static Scope |
rootScope()
Deprecated.
|
void |
setValue(String name,
com.fasterxml.jackson.databind.JsonNode value) |
@Deprecated public Scope()
newEmptyScope() instead and explicitly
call loadFunctions(ClassLoader) with the appropriate
ClassLoader for your application. E.g.:
final Scope scope = Scope.newEmptyScope(); scope.loadFunctions(Thread.currentThread().getContextClassLoader());
@Deprecated public Scope(Scope parentScope)
public static Scope newEmptyScope()
public void setValue(String name, com.fasterxml.jackson.databind.JsonNode value)
public com.fasterxml.jackson.databind.JsonNode getValue(String name)
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
@Deprecated public static Scope rootScope()
public void loadFunctions(ClassLoader classLoader)
ClassLoader.
E.g. in an OSGi context this may be the Bundle's ClassLoader.Copyright © 2019. All rights reserved.