diff --git a/TracerOnJavassist/src/tracer/JSONTraceGenerator.java b/TracerOnJavassist/src/tracer/JSONTraceGenerator.java index f9f0f65..83ec795 100644 --- a/TracerOnJavassist/src/tracer/JSONTraceGenerator.java +++ b/TracerOnJavassist/src/tracer/JSONTraceGenerator.java @@ -32,7 +32,7 @@ keys.add("lineNum"); values.add(lineNum); keys.add("time"); values.add(timeStamp); return "$proceed($$); " + - "tracer.MyPrintStream.println(" + generateJSONMapGenerator(keys, values) + " + \",\");"; + Tracer.TRACER + "MyPrintStream.println(" + generateJSONMapGenerator(keys, values) + " + \",\");"; } @Override @@ -52,7 +52,7 @@ keys.add("lineNum"); values.add(lineNum); keys.add("time"); values.add(timeStamp); return "$_ = $proceed(); " + - "tracer.MyPrintStream.println(" + generateJSONMapGenerator(keys, values) + " + \",\");"; + Tracer.TRACER + "MyPrintStream.println(" + generateJSONMapGenerator(keys, values) + " + \",\");"; } @@ -69,7 +69,7 @@ keys.add("lineNum"); values.add(lineNum); keys.add("time"); values.add(timeStamp); return "$_ = $proceed($$); " + - "tracer.MyPrintStream.println(" + generateJSONMapGenerator(keys, values) + " + \",\");"; + Tracer.TRACER + "MyPrintStream.println(" + generateJSONMapGenerator(keys, values) + " + \",\");"; } @Override @@ -98,7 +98,7 @@ keys.add("args"); values.add(generateJSONArrayGenerator(argList)); keys.add("threadId"); values.add(threadId); keys.add("time"); values.add(timeStamp); - return "tracer.MyPrintStream.println(" + generateJSONMapGenerator(keys, values) + " + \",\");"; + return Tracer.TRACER + "MyPrintStream.println(" + generateJSONMapGenerator(keys, values) + " + \",\");"; } @Override @@ -120,7 +120,7 @@ keys.add("returnValue"); values.add(generateJSONObjectGenerator(returnedClass, returnedObject)); keys.add("threadId"); values.add(threadId); keys.add("time"); values.add(timeStamp); - return "tracer.MyPrintStream.println(" + generateJSONMapGenerator(keys, values) + " + \",\");"; + return Tracer.TRACER + "MyPrintStream.println(" + generateJSONMapGenerator(keys, values) + " + \",\");"; } @Override @@ -131,7 +131,7 @@ keys.add("callerSideSignature"); values.add(DQ_GEN + " + \"" + m.getLongName().replace('$', '.') + "\" + " + DQ_GEN); // AspectJ�ł̓��\�b�h�V�O�j�`�����ł͖����N���X�̓h�b�g�ŋ�؂��� keys.add("threadId"); values.add(threadId); keys.add("lineNum"); values.add(lineNum); - return "tracer.MyPrintStream.println(" + generateJSONMapGenerator(keys, values) + " + \",\");"; + return Tracer.TRACER + "MyPrintStream.println(" + generateJSONMapGenerator(keys, values) + " + \",\");"; } @Override @@ -149,7 +149,7 @@ keys.add("threadId"); values.add(threadId); keys.add("lineNum"); values.add(lineNum); keys.add("time"); values.add(timeStamp); - return "tracer.MyPrintStream.println(" + generateJSONMapGenerator(keys, values) + " + \",\");"; + return Tracer.TRACER + "MyPrintStream.println(" + generateJSONMapGenerator(keys, values) + " + \",\");"; } private String generateJSONObjectGenerator(String className, String objectId) {