public interface EvaluateToMappingExtension
RemoteValueMapping
as an additional argument 'targetMapping'.
The extension is available from
WipJavascriptVm.getEvaluateWithDestinationMappingExtension().| Modifier and Type | Method and Description |
|---|---|
RelayOk |
evaluateAsync(JsEvaluateContext evaluateContext,
java.lang.String expression,
java.util.Map<java.lang.String,? extends JsValue> additionalContext,
RemoteValueMapping targetMapping,
JsEvaluateContext.EvaluateCallback evaluateCallback,
SyncCallback syncCallback)
Asynchronously evaluates an arbitrary JavaScript
expression in
the particular context. |
void |
evaluateSync(JsEvaluateContext evaluateContext,
java.lang.String expression,
java.util.Map<java.lang.String,? extends JsValue> additionalContext,
RemoteValueMapping targetMapping,
JsEvaluateContext.EvaluateCallback evaluateCallback)
Synchronously evaluates an arbitrary JavaScript
expression in
the particular context. |
void evaluateSync(JsEvaluateContext evaluateContext, java.lang.String expression, java.util.Map<java.lang.String,? extends JsValue> additionalContext, RemoteValueMapping targetMapping, JsEvaluateContext.EvaluateCallback evaluateCallback) throws MethodIsBlockingException
expression in
the particular context.
Previously loaded JsObjects can be addressed from the expression if listed in
additionalContext parameter.
The evaluation result is reported to the specified evaluateCallback.
The method will block until the evaluation result is available.expression - to evaluateadditionalContext - a name-to-value map that adds new values to an expression
scope; may be nulltargetMapping - mapping the result must belong toevaluateCallback - to report the evaluation result toMethodIsBlockingException - if called from a callback because it blocks
until remote VM returns resultRelayOk evaluateAsync(JsEvaluateContext evaluateContext, java.lang.String expression, java.util.Map<java.lang.String,? extends JsValue> additionalContext, RemoteValueMapping targetMapping, JsEvaluateContext.EvaluateCallback evaluateCallback, SyncCallback syncCallback)
expression in
the particular context.
Previously loaded JsObjects can be addressed from the expression if listed in
additionalContext parameter.
The evaluation result is reported to the specified evaluateCallback.
The method doesn't block.expression - to evaluateadditionalContext - a name-to-value map that adds new values to an expression
scope; may be nulltargetMapping - mapping the result must belong toevaluateCallback - to report the evaluation result tosyncCallback - to report the end of any processingCopyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.