test_class.file: java-fragment/src/test/java/org/unidal/script/java/JavaFragmentEngineTest.java
test_class.identifier: JavaFragmentEngineTest
test_case.body: @Test
     public void testJavaScript() throws Exception {
        ScriptEngineManager mgr = new ScriptEngineManager();
        ScriptEngine engine = mgr.getEngineByExtension("js");
        String script = "function helloFunction(name) { var result='Hello, ' + name; return result;}";
  
        engine.eval(script);
  
        Invocable inv = (Invocable) engine;
        String actual = (String) inv.invokeFunction("helloFunction", "Scripting");
        String expected = "Hello, Scripting";
  
        Assert.assertEquals(expected, actual);
     }
test_case.class_method_signature: JavaFragmentEngineTest.testJavaScript()
test_case.full_signature: @Test public void testJavaScript()
test_case.identifier: testJavaScript
test_case.invocations: getEngineByExtension eval invokeFunction assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testJavaScript()
focal_class.declarator: OUTPUT_DIRECTORY = "java.fragment.output.directory"
focal_class.modifier: public static final
focal_class.original_string: public static final String OUTPUT_DIRECTORY = "java.fragment.output.directory";
focal_class.type: String
focal_class.var_name: OUTPUT_DIRECTORY
focal_class.declarator: m_factory
focal_class.modifier: private
focal_class.original_string: private ScriptEngineFactory m_factory;
focal_class.type: ScriptEngineFactory
focal_class.var_name: m_factory
focal_class.declarator: m_compiler
focal_class.modifier: private
focal_class.original_string: private JavaFragmentCompiler m_compiler;
focal_class.type: JavaFragmentCompiler
focal_class.var_name: m_compiler
focal_class.file: java-fragment/src/main/java/org/unidal/script/java/JavaFragmentEngine.java
focal_class.identifier: JavaFragmentEngine
focal_class.class_method_signature: JavaFragmentEngine.JavaFragmentEngine(JavaFragmentEngineFactory factory)
focal_class.full_signature:   JavaFragmentEngine(JavaFragmentEngineFactory factory)
focal_class.identifier: JavaFragmentEngine
focal_class.parameters: (JavaFragmentEngineFactory factory)
focal_class.signature:  JavaFragmentEngine(JavaFragmentEngineFactory factory)
focal_class.class_method_signature: JavaFragmentEngine.createBindings()
focal_class.full_signature: @Override public Bindings createBindings()
focal_class.identifier: createBindings
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Bindings
focal_class.signature: Bindings createBindings()
focal_class.class_method_signature: JavaFragmentEngine.eval(Reader script, ScriptContext context)
focal_class.full_signature: @Override public Object eval(Reader script, ScriptContext context)
focal_class.identifier: eval
focal_class.modifiers: @Override public
focal_class.parameters: (Reader script, ScriptContext context)
focal_class.return: Object
focal_class.signature: Object eval(Reader script, ScriptContext context)
focal_class.class_method_signature: JavaFragmentEngine.eval(String script, ScriptContext context)
focal_class.full_signature: @Override public Object eval(String script, ScriptContext context)
focal_class.identifier: eval
focal_class.modifiers: @Override public
focal_class.parameters: (String script, ScriptContext context)
focal_class.return: Object
focal_class.signature: Object eval(String script, ScriptContext context)
focal_class.class_method_signature: JavaFragmentEngine.getCompilable()
focal_class.full_signature: private Compilable getCompilable()
focal_class.identifier: getCompilable
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: Compilable
focal_class.signature: Compilable getCompilable()
focal_class.class_method_signature: JavaFragmentEngine.getFactory()
focal_class.full_signature: @Override public ScriptEngineFactory getFactory()
focal_class.identifier: getFactory
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: ScriptEngineFactory
focal_class.signature: ScriptEngineFactory getFactory()
focal_class.superclass: extends AbstractScriptEngine
focal_method.body: @Override
     public Object eval(Reader script, ScriptContext context) throws ScriptException {
        CompiledScript compiledScript = getCompilable().compile(script);
  
        return compiledScript.eval(context);
     }
focal_method.class_method_signature: JavaFragmentEngine.eval(Reader script, ScriptContext context)
focal_method.full_signature: @Override public Object eval(Reader script, ScriptContext context)
focal_method.identifier: eval
focal_method.invocations: compile getCompilable eval
focal_method.modifiers: @Override public
focal_method.parameters: (Reader script, ScriptContext context)
focal_method.return: Object
focal_method.signature: Object eval(Reader script, ScriptContext context)