test_class.file: java-fragment/src/test/java/org/unidal/script/java/JavaFragmentEngineTest.java
test_class.identifier: JavaFragmentEngineTest
test_case.body: @Test
     public void test() throws ScriptException {
        ScriptEngineManager mgr = new ScriptEngineManager();
        ScriptEngine engine = mgr.getEngineByExtension("js");
        String json = "{\"status\":1,\"list\":{\"1\":{\"id\":\"111868\",\"name\":\"\\u989c\\u826f\",\"quality\":\"1\",\"level\":\"23\",\"exp\":\"41976\",\"levelupexp\":\"42320\",\"image\":\"21\",\"type\":\"1\",\"turn\":\"2\",\"isturn\":0,\"ratio\":1,\"pid\":\"76053\",\"ispractice\":1},\"2\":{\"id\":\"133789\",\"name\":\"\\u6587\\u4e11\",\"quality\":\"1\",\"level\":\"19\",\"exp\":\"2492\",\"levelupexp\":\"28880\",\"image\":\"18\",\"type\":\"1\",\"turn\":\"1\",\"isturn\":0,\"ratio\":1,\"pid\":0,\"ispractice\":0},\"3\":{\"id\":\"150693\",\"name\":\"\\u7530\\u4e30\",\"quality\":\"1\",\"level\":\"19\",\"exp\":\"2462\",\"levelupexp\":\"28880\",\"image\":\"17\",\"type\":\"2\",\"turn\":\"1\",\"isturn\":0,\"ratio\":1,\"pid\":0,\"ispractice\":0},\"4\":{\"id\":\"228506\",\"name\":\"\\u8881\\u7ecd\",\"quality\":\"1\",\"level\":\"5\",\"exp\":\"1134\",\"levelupexp\":\"2000\",\"image\":\"22\",\"type\":\"1\",\"turn\":\"1\",\"isturn\":0,\"ratio\":1,\"pid\":0,\"ispractice\":0},\"5\":{\"id\":\"204208\",\"name\":\"\\u8521\\u6587\\u59ec\",\"quality\":\"1\",\"level\":\"44\",\"exp\":\"108954\",\"levelupexp\":\"154880\",\"image\":\"5\",\"type\":\"2\",\"turn\":\"0\",\"isturn\":0,\"ratio\":1,\"pid\":0,\"ispractice\":0}},\"rule\":{\"1\":{\"paytype\":1,\"hour\":8,\"cost\":6300},\"2\":{\"paytype\":1,\"hour\":24,\"cost\":16065},\"3\":{\"paytype\":2,\"hour\":24,\"cost\":2},\"4\":{\"paytype\":2,\"hour\":72,\"cost\":20}},\"place\":{\"1\":{\"id\":\"76053\",\"gid\":\"111868\",\"image\":\"21\",\"squence\":\"1\",\"level\":\"1\",\"type\":\"2\",\"quality\":\"1\",\"cd\":84210},\"2\":{\"id\":\"76054\",\"gid\":\"0\",\"image\":0,\"squence\":\"2\",\"level\":\"1\",\"type\":\"0\",\"quality\":0,\"cd\":0},\"3\":{\"id\":\"128898\",\"gid\":\"0\",\"image\":0,\"squence\":\"3\",\"level\":\"1\",\"type\":\"0\",\"quality\":0,\"cd\":0},\"4\":{\"id\":\"188678\",\"gid\":\"0\",\"image\":0,\"squence\":\"4\",\"level\":\"1\",\"type\":\"0\",\"quality\":0,\"cd\":0}},\"leap\":0,\"mop\":[],\"freetimes\":\"12\"}";
        String script = "var gs='',ps=''; for (var i in o.list) gs+=o.list[i].id+','; for (var i in o.place) ps+=o.place[i].id+':'+o.place[i].gid+','; gs+'|'+ps;";
  
        Object result = engine.eval("var o=" + json + ";" + script);
  
        System.out.println(result);
     }
test_case.class_method_signature: JavaFragmentEngineTest.test()
test_case.full_signature: @Test public void test()
test_case.identifier: test
test_case.invocations: getEngineByExtension eval println
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test()
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)