Modifier and Type | Optional Element and Description |
---|---|
Class<? extends Com4jObject>[] |
defaultPropertyThrough
Indicates that the return value is actually a result from invoking
default properties.
|
int |
index
The index of the parameter with [retval] marker.
|
boolean |
inout
True if the [retval] parameter is "in/out" (therefore it also shows up in the
Java parameter list.) Otherwise, the return value is not a part of the
Java parameter list.
|
NativeType |
type
The native type to be unmarshalled.
|
public abstract int index
If 0, the retval parameter is the 1st parameter in the parameter list. The default value '-1' means the return value is the last parameter.
If the method has the return type void, the COM method is assumed to have no return value (regardless of this annotation.)
public abstract boolean inout
public abstract NativeType type
public abstract Class<? extends Com4jObject>[] defaultPropertyThrough
For example, when the underlying type definitions are as follows:
interface IFoo { @VTID(10) IBar abc(); } interface IBar { @DefaultProperty IZot def(); } interface IZot { @ int value(int index); }
The following method on the IFoo interface effectively works as a short-cut of the following chain:
IFoo { @ReturnValue(defaultPropertyThrough={IFoo.class,IBar.class}) @VTID(10) int abc(int index); } // equivalent pFoo.value(5); pFoo.abc().def().value(5);
Copyright © 2014. All rights reserved.