Java Code Examples for jdk.nashorn.internal.objects.Global#eval()
The following examples show how to use
jdk.nashorn.internal.objects.Global#eval() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ShellFunctions.java From TencentKona-8 with GNU General Public License v2.0 | 2 votes |
/** * Nashorn extension: Reads zero or more lines from standard input and * evaluates the concatenated string as code * * @param self self reference * @param endMarker String used as end marker for input * @param prompt String used as input prompt * * @return output from evaluating the script * * @throws IOException if an exception occurs */ public static Object evalinput(final Object self, final Object endMarker, final Object prompt) throws IOException { return Global.eval(self, input(self, endMarker, prompt)); }
Example 2
Source File: ShellFunctions.java From jdk8u60 with GNU General Public License v2.0 | 2 votes |
/** * Nashorn extension: Reads zero or more lines from standard input and * evaluates the concatenated string as code * * @param self self reference * @param endMarker String used as end marker for input * @param prompt String used as input prompt * * @return output from evaluating the script * * @throws IOException if an exception occurs */ public static Object evalinput(final Object self, final Object endMarker, final Object prompt) throws IOException { return Global.eval(self, input(self, endMarker, prompt)); }
Example 3
Source File: ShellFunctions.java From openjdk-jdk8u with GNU General Public License v2.0 | 2 votes |
/** * Nashorn extension: Reads zero or more lines from standard input and * evaluates the concatenated string as code * * @param self self reference * @param endMarker String used as end marker for input * @param prompt String used as input prompt * * @return output from evaluating the script * * @throws IOException if an exception occurs */ public static Object evalinput(final Object self, final Object endMarker, final Object prompt) throws IOException { return Global.eval(self, input(self, endMarker, prompt)); }
Example 4
Source File: ShellFunctions.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 2 votes |
/** * Nashorn extension: Reads zero or more lines from standard input and * evaluates the concatenated string as code * * @param self self reference * @param endMarker String used as end marker for input * @param prompt String used as input prompt * * @return output from evaluating the script * * @throws IOException if an exception occurs */ public static Object evalinput(final Object self, final Object endMarker, final Object prompt) throws IOException { return Global.eval(self, input(self, endMarker, prompt)); }
Example 5
Source File: ShellFunctions.java From openjdk-jdk9 with GNU General Public License v2.0 | 2 votes |
/** * Nashorn extension: Reads zero or more lines from standard input and * evaluates the concatenated string as code * * @param self self reference * @param endMarker String used as end marker for input * @param prompt String used as input prompt * * @return output from evaluating the script * * @throws IOException if an exception occurs */ public static Object evalinput(final Object self, final Object endMarker, final Object prompt) throws IOException { return Global.eval(self, input(self, endMarker, prompt)); }
Example 6
Source File: ShellFunctions.java From hottub with GNU General Public License v2.0 | 2 votes |
/** * Nashorn extension: Reads zero or more lines from standard input and * evaluates the concatenated string as code * * @param self self reference * @param endMarker String used as end marker for input * @param prompt String used as input prompt * * @return output from evaluating the script * * @throws IOException if an exception occurs */ public static Object evalinput(final Object self, final Object endMarker, final Object prompt) throws IOException { return Global.eval(self, input(self, endMarker, prompt)); }
Example 7
Source File: ShellFunctions.java From jdk8u_nashorn with GNU General Public License v2.0 | 2 votes |
/** * Nashorn extension: Reads zero or more lines from standard input and * evaluates the concatenated string as code * * @param self self reference * @param endMarker String used as end marker for input * @param prompt String used as input prompt * * @return output from evaluating the script * * @throws IOException if an exception occurs */ public static Object evalinput(final Object self, final Object endMarker, final Object prompt) throws IOException { return Global.eval(self, input(self, endMarker, prompt)); }