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 JsScope

All Known Subinterfaces:
  JsScope.WithScope

    public interface JsScope

An object that represents a scope in JavaScript. TODO: consider adding object getter for both with and global scopes.

Nested Class Summary
`static class` | `JsScope.Type`
`static interface` | `JsScope.WithScope` Subtype that exposes the value of the 'with' statement expression (the value might be already converted by ToObject).

Method Summary
`JsScope.WithScope` | `asWithScope()`
`JsScope.Type` | `getType()`
`java.util.List<? extends JsVariable>` | `getVariables()`

Method Detail

### getType

    JsScope.Type getType()

  Returns:
    type of the scope

### asWithScope

    JsScope.WithScope asWithScope()

  Returns:
    optional subtype when type is `JsScope.Type.WITH` and null otherwise

### getVariables

    java.util.List<? extends JsVariable> getVariables()
                                                      throws MethodIsBlockingException

  Returns:
    the variables known in this scope, in lexicographical order
  Throws:
    `MethodIsBlockingException` - because it may need to load value from remote

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