pub struct JavaConfig { /* private fields */ }
Expand description

Configuration for Java binding generation

Implementations

Create JavaConfig

Arguments
  • output_dir - directory where place generated java files
  • package_name - package name for generated java files
👎 Deprecated:

Use use_null_annotation_from_package instead

Use @NonNull for types where appropriate

Arguments
  • import_annotation - import statement for @NonNull, for example android.support.annotation.NonNull

Use @NonNull/@Nullable for types where appropriate

Arguments
  • null_annotation_package - from which package import annotations like NonNull, for example for Android Studio you should pass android.support.annotation

If you use JDK without java.util.Optional*, then you can provide name of custom package with Optional. Default value is “java.util”

Choose reachability fence variant, JavaReachabilityFence::Std provide ability to generate better code, but not available untill Java 9 and Android API level 28

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.