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

net.razorvine.pyro.FlameBuiltin Maven / Gradle / Ivy

package net.razorvine.pyro;

import java.io.IOException;
import java.util.HashMap;

import net.razorvine.pickle.PickleException;

/**
 * Flame-Wrapper for a builtin function. 
 * 
 * @author Irmen de Jong ([email protected])
 */
public class FlameBuiltin {

	private PyroProxy flameserver;
	private String builtin;
	
	/**
	 * called by the Unpickler to restore state
	 */
	public void __setstate__(HashMap args) throws IOException {
		flameserver=(PyroProxy) args.get("flameserver");
		builtin=(String) args.get("builtin");
	}
	
	public Object call(Object... arguments) throws PickleException, PyroException, IOException {
		return flameserver.call("_invokeBuiltin", builtin, arguments, new HashMap(0));
	}

	public void close()	{
		if(flameserver!=null)
			flameserver.close();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy