diff --git a/TracerOnJavassist/src/tracer/JSONTraceGenerator.java b/TracerOnJavassist/src/tracer/JSONTraceGenerator.java index b55af53..7e8181d 100644 --- a/TracerOnJavassist/src/tracer/JSONTraceGenerator.java +++ b/TracerOnJavassist/src/tracer/JSONTraceGenerator.java @@ -63,6 +63,8 @@ keys.add("signature"); values.add(DQ_GEN + " + " + methodSignature + " + " + DQ_GEN); if (!(m instanceof CtConstructor)) { keys.add("receiver"); values.add(generateJSONObjectGenerator(thisClass, thisObject)); + } else { + keys.add("class"); values.add(DQ_GEN + " + " + thisClass + " + " + DQ_GEN); } ArrayList argList = new ArrayList<>(); for (int i = 0; i < argClasses.size(); i++) { @@ -86,6 +88,7 @@ } else { keys.add("type"); values.add(DQ_GEN + " + \"constructorExit\" + " + DQ_GEN); } + keys.add("shortSignature"); values.add(DQ_GEN + " + \"" + m.getLongName().replace('$', '.') + "\" + " + DQ_GEN); // AspectJ�ł̓��\�b�h�V�O�j�`�����ł͖����N���X�̓h�b�g�ŋ�؂��� if (!(m instanceof CtConstructor)) { keys.add("receiver"); values.add(generateJSONObjectGenerator(thisClass, thisObject)); }