ContextAction (rhino 1.7.15 API)

Package org.mozilla.javascript

## Interface ContextAction<T>

-     public interface ContextAction<T>

  Interface to represent arbitrary action that requires to have Context object associated with the current thread for its execution.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `T` | `run​(Context cx)` | Execute action using the supplied Context instance.

- - ### Method Detail

    - #### run

          T run​(Context cx)

      Execute action using the supplied Context instance. When Rhino runtime calls the method, `cx` will be associated with the current thread as active context.
      See Also:
        `ContextFactory.call(ContextAction)`