| 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.tools.shell; |
| 8 | |
| 9 | import org.mozilla.javascript.Context; |
| 10 | |
| 11 | /** |
| 12 | * Defines action to perform in response to quit command. |
| 13 | */ |
| 14 | public interface QuitAction |
| 15 | { |
| 16 | public void quit(Context cx, int exitCode); |
| 17 | } |
| 18 |