org.bridj.ann
Annotation Type Virtual


@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).

Author:
ochafik

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)
 

value

public abstract 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)

Default:
-1


Copyright © 2009-2012. All Rights Reserved.