diff --git a/org.ntlab.traceCollector/src/org/ntlab/traceCollector/tracer/trace/Alias.java b/org.ntlab.traceCollector/src/org/ntlab/traceCollector/tracer/trace/Alias.java index 8beca16..cf4ce7c 100644 --- a/org.ntlab.traceCollector/src/org/ntlab/traceCollector/tracer/trace/Alias.java +++ b/org.ntlab.traceCollector/src/org/ntlab/traceCollector/tracer/trace/Alias.java @@ -17,7 +17,7 @@ * ��1: d = a.m(b, c);
*
* ��1�̎��s���ɂ�����, a�̓��\�b�h�Ăяo���̃��V�[�o�Ȃ̂�0, b�̓��\�b�h�Ăяo����1�Ԗڂ̎������Ȃ̂�1,
- * c�̓��\�b�h�Ăяo����2�Ֆڂ̎������Ȃ̂�2, a.m(b, c)�̖߂�l��-1 �ƂȂ�.
+ * c�̓��\�b�h�Ăяo����2�Ԗڂ̎������Ȃ̂�2, a.m(b, c)�̖߂�l��-1 �ƂȂ�.
*
* ��2: d = a.f;
* ��2�̎��s���ɂ�����, a�̓t�B�[���h�̃R���e�i�Ȃ̂�0, b�̓t�B�[���h�Ȃ̂�1 �ƂȂ�. @@ -47,5 +47,17 @@ public int getOccurrenceExp() { return occurrenceExp; - } + } + + @Override + public String toString() { + StringBuilder str = new StringBuilder(); + String indent = " "; + str.append("objId: " + objectId + "\n"); + str.append("tp: " + occurrencePoint + "\n"); + str.append(indent + "signature: " + occurrencePoint.getMethodExecution().getSignature() + "\n"); + str.append(indent + "lineNo: " + occurrencePoint.getStatement().getLineNo() + "\n"); + str.append("occurrenceExp: " + occurrenceExp + "\n"); + return str.toString(); + } }