Newer
Older
MagnetRON / src / org / ntlab / deltaViewer / DummyMethodExecution.java
package org.ntlab.deltaViewer;

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

public class DummyMethodExecution extends MethodExecution {
	private String thisObjId = null;
	
	public DummyMethodExecution(MethodExecution original) {
		super(original.getSignature(), original.getCallerSideSignature(), original.getThisClassName(), original.getThisObjId(), original.isConstructor(), original.isStatic(), original.getEntryTime());
		setCollectionType(original.isCollectionType());
		setArguments(original.getArguments());
		setReturnValue(original.getReturnValue());
		setCaller(original.getCallerMethodExecution(), original.getCallerStatementExecution());
		for (Statement st: original.getStatements()) {
			addStatement(st);
		}
		setExitTime(original.getExitTime());
	}
	
	public void setThisObjId(String thisObjId) {
		this.thisObjId = thisObjId;
	}
	
	public String getThisObjId() {
		if (thisObjId == null) return super.getThisObjId();
		return thisObjId;
	}
}