Top Description Methods
org.graalvm.nativebridge

public @Interface AlwaysByReference

extends Annotation
Annotations
@Target:TYPE
@Retention:SOURCE
@Repeatable:AlwaysByReferenceRepeated
Imports
java.lang.annotation.ElementType, .Repeatable, .Retention, .RetentionPolicy, .Target

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.

Method Summary

Modifier and TypeMethod and Description
public Class<?>
startPointClass()

The class to instantiate for a foreign handle.

public Class<?>
type()

Method parameter or return type that should always be handled as a ByReference in the annotated compilation unit.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

startPointClassback to summary
public Class<?> startPointClass()

The class to instantiate for a foreign handle.

See Also
{@link ByReference#value()} for the start point class requirements.
typeback to summary
public Class<?> type()

Method parameter or return type that should always be handled as a ByReference in the annotated compilation unit.

See Also
ByReference