public final class JILocalParamsDescriptor extends Object implements Serializable
[in] parameters, the [out] parameters are decided
at the implementation level. If the IDL method being described
by this class is returning multiple objects then use the return type of the
implementation as an Object[]
For example:-
IDL from Microsoft Internet Explorer is:-
[id(0x000000fb), helpstring("A new, hidden, non-navigated WebBrowser window is needed.")]
Corresponding
void NewWindow2( [in, out] IDispatch** ppDisp, [in, out] VARIANT_BOOL*
Cancel);
JILocalParamsDescriptor would be :-
JILocalParamsDescriptor paramObject = new JILocalParamsDescriptor(); and the Java implementation must return an
paramObject.addInParamAsObject(new JIPointer(IJIComObject.class,false),
JIFlags.FLAG_NULL);
paramObject.addInParamAsType(JIVariant.class,JIFlags.FLAG_NULL);
Object[] in
this case, for returning the 2 parameters back.
Please refer to MSInternetExplorer, Test_ITestServer2_Impl,
SampleTestServer and MSShell examples for more details on how to use this
class.
| Constructor and Description |
|---|
JILocalParamsDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
addInParamAsObject(Object param,
int FLAGS)
Add
[in] parameter at the end of the out parameter list. |
void |
addInParamAsType(Class clazz,
int FLAGS)
Add
[in] parameter of the type clazz at the end
of the out parameter list. |
void |
removeInParamAt(int index,
int FLAGS)
Removes
[in] parameter at the specified index from the
parameter list. |
public void addInParamAsType(Class clazz, int FLAGS)
[in] parameter of the type clazz at the end
of the out parameter list.clazz - FLAGS - public void addInParamAsObject(Object param, int FLAGS)
[in] parameter at the end of the out parameter list.
Typically callers are composite in nature JIStruct,
JIUnions, JIPointer and JIString.param - FLAGS - public void removeInParamAt(int index,
int FLAGS)
[in] parameter at the specified index from the
parameter list.index - 0 based indexFLAGS - from JIFlags (if need be).Copyright © 2022. All rights reserved.