/** * <p> * Constructor for ExecutionTraceImpl. * </p> */ public ExecutionTraceImpl() { stack.add(new MethodCall("", "", 0, 0, 0)); // Main method }
/** {@inheritDoc} */ @Override public MethodCall clone() { MethodCall copy = new MethodCall(className, methodName, methodId, callingObjectID, callDepth); copy.lineTrace = new ArrayList<Integer>(lineTrace); copy.branchTrace = new ArrayList<Integer>(branchTrace); copy.trueDistanceTrace = new ArrayList<Double>(trueDistanceTrace); copy.falseDistanceTrace = new ArrayList<Double>(falseDistanceTrace); copy.defuseCounterTrace = new ArrayList<Integer>(defuseCounterTrace); return copy; } }
stack.add(new MethodCall("", "", 0, 0, 0)); // Main method coverage = new HashMap<String, Map<String, Map<Integer, Integer>>>(); returnData = new HashMap<String, Map<String, Map<Integer, Integer>>>();
MethodCall call = new MethodCall(className, methodName, methodId, callingObjectID, stack.size()); methodId++;