Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
  *
  * This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 package org.mozilla.javascript;

public class ContinuationPending extends RuntimeException {
    private static final long serialVersionUID = 4956008116771118856L;
    private Object applicationState;

    
Construct a ContinuationPending exception. Internal call only; users of the API should get continuations created on their behalf by calling Context.executeScriptWithContinuations(org.mozilla.javascript.Script,org.mozilla.javascript.Scriptable) and Context.callFunctionWithContinuations(org.mozilla.javascript.Callable,org.mozilla.javascript.Scriptable,java.lang.Object[])

Parameters:
continuationState Internal Continuation object
    ContinuationPending(NativeContinuation continuationState) {
        this. = continuationState;
    }

    
Get continuation object. The only use for this object is to be passed to Context.resumeContinuation(java.lang.Object,org.mozilla.javascript.Scriptable,java.lang.Object).

Returns:
continuation object
    public Object getContinuation() {
        return ;
    }

    

Returns:
internal continuation state
        return ;
    }

    
Store an arbitrary object that applications can use to associate their state with the continuation.

Parameters:
applicationState arbitrary application state
    public void setApplicationState(Object applicationState) {
        this. = applicationState;
    }

    

Returns:
arbitrary application state
    public Object getApplicationState() {
        return ;
    }
New to GrepCode? Check out our FAQ X