org.jinterop.dcom.common
Class JIMethodDescriptor

java.lang.Object
  extended by org.jinterop.dcom.common.JIMethodDescriptor

public final class JIMethodDescriptor
extends java.lang.Object

This class describes an IDL Method. Please remember to keep the Java implementation class(s) Method(s) conforming to exactly as they are described by this object. j-Interop Library uses Java reflection to invoke Java Servers.


Please refer to MSInternetExplorer example for more details on how to use this class.

Since:
1.0

Constructor Summary
JIMethodDescriptor(java.lang.String methodName, int dispId, JIParameterObject parameters)
          Creates a Method Descriptor.
JIMethodDescriptor(java.lang.String methodName, JIParameterObject parameters)
          Creates the Method Descriptor.
 
Method Summary
 int getMethodDispID()
          Gets the DispID of this method.
 java.lang.String getMethodName()
          Returns the method name.
 int getMethodNum()
          Gets the Opnum of this method in the order as defined in the IDL.
 JIParameterObject getParameterObject()
          Returns the Parameter Object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JIMethodDescriptor

public JIMethodDescriptor(java.lang.String methodName,
                          JIParameterObject parameters)
Creates the Method Descriptor. The Method Number is set by the order in which this instance is added to the JIInterfaceDefinition. This number is incremented by 1 for each subsequent and new addition into Interface definition.

Parameters:
methodName -
parameters -

JIMethodDescriptor

public JIMethodDescriptor(java.lang.String methodName,
                          int dispId,
                          JIParameterObject parameters)
Creates a Method Descriptor.

Parameters:
methodName -
dispId - DispID of this method as in the IDL or the TypeLibrary.
parameters - Please pass null if the method has no parameters.
Method Detail

getMethodName

public java.lang.String getMethodName()
Returns the method name.

Returns:

getMethodNum

public int getMethodNum()
Gets the Opnum of this method in the order as defined in the IDL.

Returns:

getMethodDispID

public int getMethodDispID()
Gets the DispID of this method. Incase this Method descriptor is for a COM event IDL, then the dispIDs should come from there.

Returns:

getParameterObject

public JIParameterObject getParameterObject()
Returns the Parameter Object.

Returns: