/*****************************************************
 * jr generated file
 ****************************************************/
import java.lang.*;
import java.io.*;
import edu.ucdavis.jr.*;
import edu.ucdavis.jr.jrx.*;
import java.rmi.*;
import java.io.Serializable;

public class Cap_ext_ThrowsjavadotlangdotNullPointerException extends Cap_ext
{
    public static Cap_ext_ThrowsjavadotlangdotNullPointerException noop = new Cap_ext_ThrowsjavadotlangdotNullPointerException(true);
    public Cap_ext_ThrowsjavadotlangdotNullPointerException()
    {}
    private Cap_ext_ThrowsjavadotlangdotNullPointerException(boolean noop)
    {
	super(noop);
    }
    public Cap_ext_ThrowsjavadotlangdotNullPointerException(Cap_ext theCap)
    {
	super(theCap);
    }
    public Cap_ext_ThrowsjavadotlangdotNullPointerException(Cap_ext theCap, String ret)
    {
	super(theCap, ret);
    }
    public Cap_ext_ThrowsjavadotlangdotNullPointerException(Op_ext.JRProxyOp theop)
    {
	super(theop);
    }
    public Cap_ext_ThrowsjavadotlangdotNullPointerException(Op_ext.JRProxyOp theop, String ret)
    {
	super(theop, ret);
    }
    public java.lang.Object call(long JRtimestamp, java.lang.Object [] args)
      throws java.lang.NullPointerException
    {
try {
		if (is_noop) {
			if (ret.equals("int"))
				return (int) 0;
			else if (ret.equals("byte"))
				return (byte) 0;
			else if (ret.equals("short"))
				return (short) 0;
			else if (ret.equals("long"))
				return (long) 0;
			else if (ret.equals("boolean"))
				return (boolean) false;
			else if (ret.equals("char"))
				return (char) '\0';
			 else if (ret.equals("float"))
				return (float) 0.0F;
			else if (ret.equals("double"))
				return (double) 0.0;
			else
				return null;

		}
		return this.theop.call(JRtimestamp, args);
    } catch (java.lang.Exception e) {
    	if( e instanceof java.lang.NullPointerException)			throw (java.lang.NullPointerException)e;
		}
		return null;
    }
    public Cap_ext cocall(long JRtimestamp, java.lang.Object [] args) throws java.lang.NullPointerException
    {
	try {
	if (is_noop) {
		Op_ext.JRProxyOp myretOp = new Op_ext_ThrowsjavadotlangdotNullPointerException.JRProxyOp(new InOp_ext_impl());
		myretOp.send(jrvm.getTimestamp(), args);
		return new Cap_ext_ThrowsjavadotlangdotNullPointerException(myretOp);
	}
;
	return this.theop.cocall(JRtimestamp, args);
	 } catch (RemoteException re) {throw new edu.ucdavis.jr.jrCommunicationException(re); }
    catch (java.lang.Exception e) {
    	if( e instanceof java.lang.NullPointerException)			throw (java.lang.NullPointerException)e;
		}
		return null;
    }
    public Cap_ext cocall(long JRtimestamp, edu.ucdavis.jr.RemoteHandler handler, Cap_ext fretOp, java.lang.Object [] args)
    {
	try {
	if (is_noop) {
		Op_ext.JRProxyOp myretOp = new Op_ext_ThrowsjavadotlangdotNullPointerException.JRProxyOp(new InOp_ext_impl());
		myretOp.send(jrvm.getTimestamp(), handler, args);
		return new Cap_ext_ThrowsjavadotlangdotNullPointerException(myretOp);
	}
;
	return this.theop.cocall(JRtimestamp, handler, fretOp, args);
	 } catch (RemoteException re) {throw new edu.ucdavis.jr.jrCommunicationException(re); }
    }
    public Cap_ext cosend(long JRtimestamp, Op_ext.JRProxyOp retOp, edu.ucdavis.jr.RemoteHandler handler, Exception e, java.lang.Object [] args)
    {
	try {
	if (is_noop) {
		Op_ext.JRProxyOp myretOp = new Op_ext_ThrowsjavadotlangdotNullPointerException.JRProxyOp(new InOp_ext_impl());
		myretOp.send(jrvm.getTimestamp(), args);
		return new Cap_ext_ThrowsjavadotlangdotNullPointerException(myretOp);
	}
	return this.theop.cosend(JRtimestamp, retOp, handler, e, args);
	 } catch (RemoteException re) { throw new edu.ucdavis.jr.jrCommunicationException(re); }
    }
    public Object clone()
    {
    Cap_ext_ThrowsjavadotlangdotNullPointerException obj = (Cap_ext_ThrowsjavadotlangdotNullPointerException)super.clone();
    return obj;
    }
}
