public abstract class FunctionScript extends FunctionInitializer implements PropertySource
FunctionInitializer.ParseContextPropertySource.PropertyConvention| Modifier and Type | Field and Description | 
|---|---|
protected ApplicationContext | 
applicationContext
The current  
ApplicationContext. | 
closeContextCONTEXTHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Modifier | Constructor and Description | 
|---|---|
  | 
FunctionScript()
Constuctor. 
 | 
protected  | 
FunctionScript(ApplicationContext applicationContext)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
addProperty(String name,
           Object value)
Add a property to the script. 
 | 
protected ApplicationContext | 
buildApplicationContext(C context)  | 
Object | 
get(String key)
Get a property value of the given key. 
 | 
String | 
getName()  | 
protected void | 
injectThis(ApplicationContext applicationContext)
Injects this instance. 
 | 
Iterator<String> | 
iterator()  | 
protected ExecutableMethod<Object,Object> | 
resolveFunction(LocalFunctionRegistry localFunctionRegistry,
               String functionName)
Resolve a function from the  
LocalFunctionRegistry. | 
protected String | 
resolveFunctionName(Environment env)
Resolves the function name to execution for the environment. 
 | 
protected Environment | 
startEnvironment(ApplicationContext applicationContext)
Start the environment specified. 
 | 
protected void | 
startThis(ApplicationContext applicationContext)
Start this environment. 
 | 
close, runclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConvention, of, of, of, offorEach, spliteratorprotected ApplicationContext applicationContext
ApplicationContext.public FunctionScript()
protected FunctionScript(ApplicationContext applicationContext)
applicationContext - applicationContext@Internal public Object get(String key)
PropertySourceget in interface PropertySourcekey - The keypublic final String getName()
getName in interface PropertySourceprotected void addProperty(String name, Object value)
name - name of the propertyvalue - value@Internal protected void startThis(ApplicationContext applicationContext)
FunctionInitializerstartThis in class FunctionInitializerapplicationContext - The application context@Internal protected void injectThis(ApplicationContext applicationContext)
FunctionInitializerinjectThis in class FunctionInitializerapplicationContext - The ApplicationContextprotected ExecutableMethod<Object,Object> resolveFunction(LocalFunctionRegistry localFunctionRegistry, String functionName)
LocalFunctionRegistry.localFunctionRegistry - The LocalFunctionRegistryfunctionName - The function nameprotected String resolveFunctionName(Environment env)
env - The environmentprotected ApplicationContext buildApplicationContext(@Nullable C context)
context - A platform specific context objectApplicationContext to useprotected Environment startEnvironment(ApplicationContext applicationContext)
applicationContext - the application context with the environment