Debian Codegraph @

rhino/toolsrc/org/mozilla/javascript/tools/debugger/SourceProvider.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 package org.mozilla.javascript.tools.debugger;
7
8 import org.mozilla.javascript.debug.DebuggableScript;
9
10
11 /**
12 * Interface to provide a source of scripts to the debugger.
13 * @version $Id: SourceProvider.java,v 1.1 2009/10/23 12:49:58 szegedia%freemail.hu Exp $
14 */
15 public interface SourceProvider {
16
17 /**
18 * Returns the source of the script.
19 * @param script the script object
20 * @return the source code of the script, or null if it can not be provided
21 * (the provider is not expected to decompile the script, so if it doesn't
22 * have a readily available source text, it is free to return null).
23 */
24 String getSource(DebuggableScript script);
25 }