JsEvaluateContext
Date: 2012-06-29

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.chromium.sdk
Interface JsEvaluateContext

    public interface JsEvaluateContext

A context in which watch expressions may be evaluated. Typically corresponds to stack frame of suspended process, but may also be detached from any stack frame.

See Also:
  `EvaluateToMappingExtension`

Nested Class Summary
`static interface` | `JsEvaluateContext.EvaluateCallback` A callback for the "evaluate" request.

Method Summary
`RelayOk` | `evaluateAsync(java.lang.String expression, java.util.Map<java.lang.String,java.lang.String> additionalContext, JsEvaluateContext.EvaluateCallback evaluateCallback, SyncCallback syncCallback)` Asynchronously evaluates an arbitrary JavaScript `expression` in the particular context.
`void` | `evaluateSync(java.lang.String expression, java.util.Map<java.lang.String,java.lang.String> additionalContext, JsEvaluateContext.EvaluateCallback evaluateCallback)` Synchronously evaluates an arbitrary JavaScript `expression` in the particular context.

Method Detail

### evaluateSync

    void evaluateSync(java.lang.String expression,
                      java.util.Map<java.lang.String,java.lang.String> additionalContext,
                      JsEvaluateContext.EvaluateCallback evaluateCallback)
                      throws MethodIsBlockingException

  Synchronously evaluates an arbitrary JavaScript `expression` in the particular context. Previously loaded `JsObject`s 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.

  Parameters:
    `expression` - to evaluate
    `additionalContext` - a name-to-object-ref-id map that adds new values to an expression scope; may be null
    `evaluateCallback` - to report the evaluation result to
  Throws:
    `MethodIsBlockingException` - if called from a callback because it blocks until remote VM returns result

### evaluateAsync

    RelayOk evaluateAsync(java.lang.String expression,
                          java.util.Map<java.lang.String,java.lang.String> additionalContext,
                          JsEvaluateContext.EvaluateCallback evaluateCallback,
                          SyncCallback syncCallback)

  Asynchronously evaluates an arbitrary JavaScript `expression` in the particular context. Previously loaded `JsObject`s 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.

  Parameters:
    `expression` - to evaluate
    `additionalContext` - a name-to-object-ref-id map that adds new values to an expression scope; may be null
    `evaluateCallback` - to report the evaluation result to
    `syncCallback` - to report the end of any processing

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD