?? _helloimplbase.java
字號:
package HelloApp;
/**
* HelloApp/_HelloImplBase.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from Hello.idl
* 2008年11月5日 星期三 下午07時25分38秒 CST
*/
public abstract class _HelloImplBase extends org.omg.CORBA.portable.ObjectImpl
implements HelloApp.Hello, org.omg.CORBA.portable.InvokeHandler
{
// Constructors
public _HelloImplBase ()
{
}
private static java.util.Hashtable _methods = new java.util.Hashtable ();
static
{
_methods.put ("sayHello", new java.lang.Integer (0));
_methods.put ("Add", new java.lang.Integer (1));
}
public org.omg.CORBA.portable.OutputStream _invoke (String $method,
org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler $rh)
{
org.omg.CORBA.portable.OutputStream out = null;
java.lang.Integer __method = (java.lang.Integer)_methods.get ($method);
if (__method == null)
throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
switch (__method.intValue ())
{
case 0: // HelloApp/Hello/sayHello
{
String $result = null;
$result = this.sayHello ();
out = $rh.createReply();
out.write_string ($result);
break;
}
case 1: // HelloApp/Hello/Add
{
float a = in.read_float ();
float b = in.read_float ();
float $result = (float)0;
$result = this.Add (a, b);
out = $rh.createReply();
out.write_float ($result);
break;
}
default:
throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
}
return out;
} // _invoke
// Type-specific CORBA::Object operations
private static String[] __ids = {
"IDL:HelloApp/Hello:1.0"};
public String[] _ids ()
{
return (String[])__ids.clone ();
}
} // class _HelloImplBase
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -