001 package org.shiftone.jrat.provider.tree.ui.hierarchy.nodes; 002 003 import org.shiftone.jrat.core.MethodKey; 004 import org.shiftone.jrat.provider.tree.ui.summary.MethodSummaryModel; 005 006 import java.util.Collections; 007 import java.util.List; 008 009 /** 010 * @author (jeff@shiftone.org) Jeff Drost 011 */ 012 public class MethodHierarchyNode extends HierarchyNode { 013 014 public MethodHierarchyNode(MethodKey methodKey, MethodSummaryModel methodSummaryModel) { 015 016 super(methodKey.getMethodName() 017 + "(" 018 + methodKey.getSig().getShortText() 019 + ")", 020 methodSummaryModel); 021 } 022 023 public void finalizeStatistics() { 024 } 025 026 public Long getTotalMethodDuration() { 027 return null; 028 } 029 030 public boolean isExecuted() { 031 return false; 032 } 033 034 public long getTotalDuration() { 035 return 0; 036 } 037 038 public int getTotalMethods() { 039 return 1; 040 } 041 042 public int getExecutedMethods() { 043 return 0; 044 } 045 046 public long getTotalErrors() { 047 return 0; 048 } 049 050 public long getTotalExits() { 051 return 0; 052 } 053 054 public List getChildren() { 055 return Collections.emptyList(); 056 } 057 }