📄 calculatorimp_stub.java
字号:
// Stub class generated by rmic, do not edit.
// Contents subject to change without notice.
package test.rmi;
public final class CalculatorImp_Stub
extends java.rmi.server.RemoteStub
implements test.rmi.Calculator, java.rmi.Remote
{
private static final long serialVersionUID = 2;
private static java.lang.reflect.Method $method_add_0;
private static java.lang.reflect.Method $method_subtract_1;
static {
try {
$method_add_0 = test.rmi.Calculator.class.getMethod("add", new java.lang.Class[] {int.class, int.class});
$method_subtract_1 = test.rmi.Calculator.class.getMethod("subtract", new java.lang.Class[] {int.class, int.class});
} catch (java.lang.NoSuchMethodException e) {
throw new java.lang.NoSuchMethodError(
"stub class initialization failed");
}
}
// constructors
public CalculatorImp_Stub(java.rmi.server.RemoteRef ref) {
super(ref);
}
// methods from remote interfaces
// implementation of add(int, int)
public int add(int $param_int_1, int $param_int_2)
throws java.rmi.RemoteException
{
try {
Object $result = ref.invoke(this, $method_add_0, new java.lang.Object[] {new java.lang.Integer($param_int_1), new java.lang.Integer($param_int_2)}, -7734458262622125146L);
return ((java.lang.Integer) $result).intValue();
} catch (java.lang.RuntimeException e) {
throw e;
} catch (java.rmi.RemoteException e) {
throw e;
} catch (java.lang.Exception e) {
throw new java.rmi.UnexpectedException("undeclared checked exception", e);
}
}
// implementation of subtract(int, int)
public int subtract(int $param_int_1, int $param_int_2)
throws java.rmi.RemoteException
{
try {
Object $result = ref.invoke(this, $method_subtract_1, new java.lang.Object[] {new java.lang.Integer($param_int_1), new java.lang.Integer($param_int_2)}, 4215395162136402095L);
return ((java.lang.Integer) $result).intValue();
} catch (java.lang.RuntimeException e) {
throw e;
} catch (java.rmi.RemoteException e) {
throw e;
} catch (java.lang.Exception e) {
throw new java.rmi.UnexpectedException("undeclared checked exception", e);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -