public final class JILocalMethodDescriptor extends Object
IDL to be used in Callback
implementations. Framework uses java reflection to invoke methods requested
by COM clients so it is absolutely essential that java methods in the
implementation class conform exactly to what is described in this object.
Please refer to MSInternetExplorer, Test_ITestServer2_Impl,
SampleTestServer and MSShell examples for more details on how to use this
class.
| Constructor and Description |
|---|
JILocalMethodDescriptor(String methodName,
int dispId,
JILocalParamsDescriptor parameters)
Creates the method descriptor.
|
JILocalMethodDescriptor(String methodName,
JILocalParamsDescriptor parameters)
Creates the method descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMethodDispID()
Gets the
DISPID of this method. |
String |
getMethodName()
Returns the method name.
|
int |
getMethodNum()
Gets the opnum of this method in the order as defined in the IDL.
|
JILocalParamsDescriptor |
getParameterObject()
Returns the parameter object.
|
public JILocalMethodDescriptor(String methodName, JILocalParamsDescriptor parameters)
JILocalInterfaceDefinition. This number is incremented by 1
for each subsequent and new addition into interface definition.methodName - name of the method.parameters - pass null if the method has no parameters.public JILocalMethodDescriptor(String methodName, int dispId, JILocalParamsDescriptor parameters)
methodName - name of the method.dispId - DISPID of this method as in the
IDL or the TypeLibrary.parameters - pass null if the method has no parameters.public String getMethodName()
public int getMethodNum()
public int getMethodDispID()
DISPID of this method.public JILocalParamsDescriptor getParameterObject()
null if the method has no parameters.Copyright © 2022. All rights reserved.