< prev index next >
src/jdk.scripting.nashorn/share/classes/jdk/nashorn/tools/Shell.java
Print this page
@@ -66,11 +66,11 @@
*/
private static final String MESSAGE_RESOURCE = "jdk.nashorn.tools.resources.Shell";
/**
* Shell message bundle.
*/
- private static final ResourceBundle bundle = ResourceBundle.getBundle(MESSAGE_RESOURCE, Locale.getDefault());
+ protected static final ResourceBundle bundle = ResourceBundle.getBundle(MESSAGE_RESOURCE, Locale.getDefault());
/**
* Exit code for command line tool - successful
*/
public static final int SUCCESS = 0;
@@ -401,11 +401,11 @@
*
* @param context the nashorn context
* @param global global scope object to use
* @return return code
*/
- private static int readEvalPrint(final Context context, final Global global) {
+ protected int readEvalPrint(final Context context, final Global global) {
final String prompt = bundle.getString("shell.prompt");
final BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
final PrintWriter err = context.getErr();
final Global oldGlobal = Context.getGlobal();
final boolean globalChanged = (oldGlobal != global);
< prev index next >