diff --git a/org.ntlab.traceAnalyzer/src/org/ntlab/trace/MethodExecution.java b/org.ntlab.traceAnalyzer/src/org/ntlab/trace/MethodExecution.java index 3a9387c..9c8e402 100644 --- a/org.ntlab.traceAnalyzer/src/org/ntlab/trace/MethodExecution.java +++ b/org.ntlab.traceAnalyzer/src/org/ntlab/trace/MethodExecution.java @@ -260,4 +260,29 @@ public void setAugmentation(AugmentationInfo augmentation) { this.augmentation = augmentation; } + + /** + *�@�����œn���ꂽmethodExecution���Ăяo�������\�b�h�Ăяo����T���ĕԂ� + * @param child ����methodExecution����Ăяo���ꂽ���Ƃ̂���ʂ�methodExecution + * @return �����œn���ꂽmethodExecution���Ăяo�������Ƃ��L�^���Ă��郁�\�b�h�Ăяo�� + */ + public MethodInvocation getMethodInvocation(MethodExecution child) { + int callerStatementExecution = child.getCallerStatementExecution(); + if (callerStatementExecution != -1) { + return (MethodInvocation)statements.get(callerStatementExecution); + } + return null; + } + + /** + * order���w�肵�đΉ�����TracePoint��Ԃ� + * @param order TracePoint��order + * @return + */ + public TracePoint getTracePoint(int order) { + if (order < this.getStatements().size()) { + return new TracePoint(this, order); + } + return null; + } }