Annotation Interface AlwaysByReference


@Target(TYPE) @Retention(SOURCE) @Repeatable(AlwaysByReferenceRepeated.class) public @interface AlwaysByReference
Annotation configuring a type as a by reference parameter in the whole annotated compilation unit. For classes that have many methods using ByReference parameters, using this annotation is more convenient. Instead of overriding these methods and specifying ByReference in each method, the whole class can be annotated with AlwaysByReference. It is always possible to override AlwaysByReference configuration with ByReference annotation on a particular method or parameter.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The class to instantiate for a foreign handle.
    Method parameter or return type that should always be handled as a ByReference in the annotated compilation unit.