public class TBasicContextHolderEnv extends Object implements IRuntimeEnv
TBasicContextHolderEnv contains full context for execution of Algorithm: runtime environment, VM,
variables and parameters to run with.| Constructor and Description |
|---|
TBasicContextHolderEnv(IRuntimeEnv env,
DelegatedDynamicObject tbasicTarget,
Object[] params,
TBasicVM tbasicVM)
Create an instance of
TBasicContextHolderEnv initialized with environment,
DelegatedDynamicObject for variables,execution VM and parameters. |
| Modifier and Type | Method and Description |
|---|---|
void |
assignValueToVariable(String variableName,
Object value)
Create new variable in context(if variable with specified name doesn't exist) and sets its value.
|
IRuntimeContext |
getContext() |
IRuntimeEnv |
getEnv() |
Object[] |
getLocalFrame() |
IOpenRunner |
getRunner() |
Object[] |
getTbasicParams() |
DelegatedDynamicObject |
getTbasicTarget() |
TBasicVM |
getTbasicVm() |
Object |
getThis() |
boolean |
isContextManagingSupported() |
IRuntimeContext |
popContext() |
Object[] |
popLocalFrame() |
Object |
popThis() |
void |
pushContext(IRuntimeContext context) |
void |
pushLocalFrame(Object[] frame) |
void |
pushThis(Object thisObject) |
void |
setContext(IRuntimeContext context) |
public TBasicContextHolderEnv(IRuntimeEnv env, DelegatedDynamicObject tbasicTarget, Object[] params, TBasicVM tbasicVM)
TBasicContextHolderEnv initialized with environment,
DelegatedDynamicObject for variables,execution VM and parameters.env - tbasicTarget - params - tbasicVM - public void assignValueToVariable(String variableName, Object value)
variableName - Name of variable to initiate.value - Initial value of new variable.public IRuntimeEnv getEnv()
public Object[] getLocalFrame()
getLocalFrame in interface IRuntimeEnvpublic IOpenRunner getRunner()
getRunner in interface IRuntimeEnvpublic Object[] getTbasicParams()
public DelegatedDynamicObject getTbasicTarget()
public TBasicVM getTbasicVm()
public Object getThis()
getThis in interface IRuntimeEnvpublic Object[] popLocalFrame()
popLocalFrame in interface IRuntimeEnvpublic Object popThis()
popThis in interface IRuntimeEnvpublic void pushLocalFrame(Object[] frame)
pushLocalFrame in interface IRuntimeEnvpublic void pushThis(Object thisObject)
pushThis in interface IRuntimeEnvpublic IRuntimeContext getContext()
getContext in interface IRuntimeEnvpublic void setContext(IRuntimeContext context)
setContext in interface IRuntimeEnvpublic boolean isContextManagingSupported()
isContextManagingSupported in interface IRuntimeEnvpublic IRuntimeContext popContext()
popContext in interface IRuntimeEnvpublic void pushContext(IRuntimeContext context)
pushContext in interface IRuntimeEnvCopyright © 2004–2019 OpenL Tablets. All rights reserved.