Newer
Older
MagnetRON / src / org / ntlab / deltaViewer / DummyMethodExecution.java
Naoya Nitta on 10 Sep 2021 793 bytes Recommit.
package org.ntlab.deltaViewer;

import org.ntlab.trace.MethodExecution;
import org.ntlab.trace.Statement;

public class DummyMethodExecution extends MethodExecution {
	public DummyMethodExecution(MethodExecution methodExec) {
		super(methodExec.getSignature(), methodExec.getCallerSideSignature(), methodExec.getThisClassName(), methodExec.getThisObjId(), methodExec.isConstructor(), methodExec.isStatic(), methodExec.getEntryTime());
		setCollectionType(methodExec.isCollectionType());
		setArguments(methodExec.getArguments());
		setReturnValue(methodExec.getReturnValue());
		setCaller(methodExec.getCallerMethodExecution(), methodExec.getCallerStatementExecution());
		for (Statement st: methodExec.getStatements()) {
			addStatement(st);
		}
		setExitTime(methodExec.getExitTime());
	}
}