JniGenerator class final Java Differences Lifecycle Threading Interface Implementation Exceptions Java Runtime Types Debugging

Configuration for JNIgen binding generation.

Available extensions

Constructors

JniGenerator({required Input input, required Output output, SymbolImports imports = const SymbolImports(), NullabilityAnnotations nullability = const NullabilityAnnotations(), List<Visitor> visitors = const [], Map<String, String> customClassBody = const {}})

Properties

configRoot → Uri?
Directory containing the YAML configuration file.
no setter
customClassBody → Map<String, String>
Custom code that is added to the end of the class body with the specified binary name.
final
hashCode → int
The hash code for this object.
no setterinherited
imports → SymbolImports
External symbol file imports for cross-package type sharing.
final
input → Input
Input source paths, classpaths, target classes, and SDK dependencies.
final
nullability → NullabilityAnnotations
Custom nullability annotation configuration.
final
output → Output
Output destination and file settings (Dart code, symbol files, preamble).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
visitors → List<Visitor>
AST visitors for filtering, renaming, and AST transformation passes.
final

Methods

generate({Logger? logger}) → Future<void>

Available on JniGenerator, provided by the JniGenGenerator extension

Runs the entire generation pipeline for this config.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

parseArgs(List<String> args) → JniGenerator