Annotation Interface Cast


Indicates a type cast required on the argument to satisfy the native compiler. When used with Adapter 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 the dynamic_cast operator, those can be accessed as if they were functions (with the Name annotation to specify the type) because they have the same syntax.

See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Element Details