Writer wr = new FileWriter(erlangFile);wr.write("-module(testFile).\n-behaviour(gen_server).\n");
wr.write("handle_call({\"this is a test\",\"aa\"},_,_)->{reply,\"yy\",5};\n");
wr.write("handle_call(\"more interesting things\",_,_)->{reply,ok,5}.\n");
wr.write(otherMethods);wr.close();
ErlangModule mod = ErlangModule.loadModule(ErlangModule.setupErlangConfiguration(new File(erlangFile)));
final Configuration config = Configuration.getDefaultConfiguration().copy();config.setErlangModuleName(mod.getName());config.setLabelKind(LABELKIND.LABEL_ERLANG);
createLabel("call, \"ttt\",ok",config);
createLabel("call, \"ttt\",\"y\"",config);
createLabel("call, {\"ttt\",\"a\"},\"y\"",config);
createLabel("call, {\"\",\"\"},\"y\"",config);
createLabel("call, {\"\",\"\"},\"\"",config);