Debian Codegraph @

rhino/src/org/mozilla/javascript/Callable.java

raw symbols SCIP
1 /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7 package org.mozilla.javascript;
8
9 /**
10 * Generic notion of callable object that can execute some script-related code
11 * upon request with specified values for script scope and this objects.
12 */
13 public interface Callable
14 {
15 /**
16 * Perform the call.
17 *
18 * @param cx the current Context for this thread
19 * @param scope the scope to use to resolve properties.
20 * @param thisObj the JavaScript <code>this</code> object
21 * @param args the array of arguments
22 * @return the result of the call
23 */
24 public Object call(Context cx, Scriptable scope, Scriptable thisObj,
25 Object[] args);
26 }
27