public class JSApiEnvironment
extends java.lang.Object
Constructor | Description |
---|---|
JSApiEnvironment() |
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
callEvent(java.lang.String eventName,
java.lang.Boolean silently,
java.lang.Object... params) |
|
static JSApiEnvironment |
execJS(net.sergeych.tools.Binder definitionScripts,
net.sergeych.tools.Binder stateScripts,
JSApiExecOptions execOptions,
byte[] jsFileContent,
Contract currentContract,
java.lang.String... params) |
|
static JSApiEnvironment |
execJSByName(net.sergeych.tools.Binder definitionScripts,
net.sergeych.tools.Binder stateScripts,
JSApiExecOptions execOptions,
java.lang.String jsFileName,
Contract currentContract,
java.lang.String... params) |
|
static JSApiEnvironment |
execJSByScriptHash(net.sergeych.tools.Binder definitionScripts,
net.sergeych.tools.Binder stateScripts,
JSApiExecOptions execOptions,
HashId jsFileHashId,
Contract currentContract,
java.lang.String... params) |
|
Contract |
getCurrentContract() |
|
java.lang.String |
getHandlerMethodName() |
|
java.lang.Object |
getResult() |
|
HashId |
getSlotId() |
|
void |
setHandlerMethodName(java.lang.String newValue) |
|
void |
setSlotId(HashId newValue) |
|
void |
updateThisEnvironmentByName(Contract newContract,
JSApiExecOptions execOptions) |
public java.lang.Object getResult()
public Contract getCurrentContract()
public java.lang.String getHandlerMethodName()
public void setHandlerMethodName(java.lang.String newValue)
public HashId getSlotId()
public void setSlotId(HashId newValue)
public static JSApiEnvironment execJS(net.sergeych.tools.Binder definitionScripts, net.sergeych.tools.Binder stateScripts, JSApiExecOptions execOptions, byte[] jsFileContent, Contract currentContract, java.lang.String... params) throws java.lang.Exception
java.lang.Exception
public static JSApiEnvironment execJSByScriptHash(net.sergeych.tools.Binder definitionScripts, net.sergeych.tools.Binder stateScripts, JSApiExecOptions execOptions, HashId jsFileHashId, Contract currentContract, java.lang.String... params) throws java.lang.Exception
java.lang.Exception
public static JSApiEnvironment execJSByName(net.sergeych.tools.Binder definitionScripts, net.sergeych.tools.Binder stateScripts, JSApiExecOptions execOptions, java.lang.String jsFileName, Contract currentContract, java.lang.String... params) throws java.lang.Exception
java.lang.Exception
public void updateThisEnvironmentByName(Contract newContract, JSApiExecOptions execOptions) throws java.lang.Exception
java.lang.Exception
public java.lang.Object callEvent(java.lang.String eventName, java.lang.Boolean silently, java.lang.Object... params) throws java.lang.InterruptedException
java.lang.InterruptedException