Package org.bytedeco.javacpp.annotation
Annotation Type Cast
-
@Documented @Retention(RUNTIME) @Target({METHOD,PARAMETER,ANNOTATION_TYPE}) public @interface Cast
Indicates a type cast required on the argument to satisfy the native compiler. When used withAdapter
a second cast can also be specified making it possible to apply a cast to both the argument and the adapter, in this order. A third "precast" can also be specified, which gets applied before the second one, but also on return values passed to adapters.At the moment,
Generator
makes use of the simple C-style cast. If one requires a different kind of type conversion, such as thedynamic_cast
operator, those can be accessed as if they were functions (with theName
annotation to specify the type) because they have the same syntax.- See Also:
Generator
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String[]
value
-