|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=METHOD) public @interface Virtual
Mark a C++ method as virtual and specify its position in the virtual table.
The virtual table offset is optional but strongly recommended (will fail in many cases without it).
This position is relative to the struct's declared class, not to the parent structures/classes (unlike Field
, which index is absolute).
Optional Element Summary | |
---|---|
int |
value
Optional relative virtual table offset for the C++ method (starts at 0 for each C++ class, even if it has ancestors with virtual methods) |
public abstract int value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |