All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.pure4j.model.CallInfo Maven / Gradle / Ivy

Go to download

Parses Byte-code to check the purity semantics defined using pure4j-core annotations

The newest version!
package org.pure4j.model;

import java.util.ArrayList;
import java.util.List;

public class CallInfo {

	private int opcodes;
	List methodsBeforeReturns = new ArrayList();
	private boolean usesThis = false;

	public boolean usesThis() {
		return usesThis;
	}

	public void setUsesThis(boolean usesThis) {
		this.usesThis = usesThis;
	}

	public List getMethodsBeforeReturns() {
		return methodsBeforeReturns;
	}

	public int getOpcodes() {
		return opcodes;
	}

	public void setOpcodes(int opcodes) {
		this.opcodes = opcodes;
	}
	
	public void addMethodBeforeReturn(Object mh) {
		methodsBeforeReturns.add(mh);
	}
	
	public final static CallInfo NO_CALL = new CallInfo();
}