src/share/classes/javax/script/ScriptEngineFactory.java

Print this page

        

*** 194,215 **** */ public String getOutputStatement(String toDisplay); /** ! * Returns A valid scripting language executable progam with given statements. * For instance an implementation for a PHP engine might be: * <p> * <pre>{@code * public String getProgram(String... statements) { ! * $retval = "<?\n"; * int len = statements.length; * for (int i = 0; i < len; i++) { ! * $retval += statements[i] + ";\n"; * } ! * $retval += "?>"; ! * * } * }</pre> * * @param statements The statements to be executed. May be return values of * calls to the <code>getMethodCallSyntax</code> and <code>getOutputStatement</code> methods. --- 194,214 ---- */ public String getOutputStatement(String toDisplay); /** ! * Returns a valid scripting language executable progam with given statements. * For instance an implementation for a PHP engine might be: * <p> * <pre>{@code * public String getProgram(String... statements) { ! * String retval = "<?\n"; * int len = statements.length; * for (int i = 0; i < len; i++) { ! * retval += statements[i] + ";\n"; * } ! * return retval += "?>"; * } * }</pre> * * @param statements The statements to be executed. May be return values of * calls to the <code>getMethodCallSyntax</code> and <code>getOutputStatement</code> methods.