| 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 | * Master for id-based functions that knows their properties and how to |
| 11 | * execute them. |
| 12 | */ |
| 13 | public interface IdFunctionCall |
| 14 | { |
| 15 | /** |
| 16 | * 'thisObj' will be null if invoked as constructor, in which case |
| 17 | * instance of Scriptable should be returned |
| 18 | */ |
| 19 | public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope, |
| 20 | Scriptable thisObj, Object[] args); |
| 21 | |
| 22 | } |
| 23 |