helloimpl_stub.java
来自「java网络编程 包含全书所有代码编程以及实例」· Java 代码 · 共 46 行
JAVA
46 行
// Stub class generated by rmic, do not edit.
// Contents subject to change without notice.
package hello;
public final class HelloImpl_Stub
extends java.rmi.server.RemoteStub
implements hello.Hello, java.rmi.Remote
{
private static final long serialVersionUID = 2;
private static java.lang.reflect.Method $method_sayHello_0;
static {
try {
$method_sayHello_0 = hello.Hello.class.getMethod("sayHello", new java.lang.Class[] {});
} catch (java.lang.NoSuchMethodException e) {
throw new java.lang.NoSuchMethodError(
"stub class initialization failed");
}
}
// constructors
public HelloImpl_Stub(java.rmi.server.RemoteRef ref) {
super(ref);
}
// methods from remote interfaces
// implementation of sayHello()
public java.lang.String sayHello()
throws java.rmi.RemoteException
{
try {
Object $result = ref.invoke(this, $method_sayHello_0, null, 6043973830760146143L);
return ((java.lang.String) $result);
} 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 + =
减小字号Ctrl + -
显示快捷键?