jnigen library

This library exports a high level programmatic API to JNIgen, the entry point of which is the JniGenGenerator.generate method on a JniGenerator object.

Classes

AndroidSdk
Configuration for Android SDK sources and stub JAR files.
ApiDumperVisitor
A visitor that dumps all visited Java AST nodes in a concise, greppable format.
ClassDecl
Represents a Java class declaration.
Classes
A collection of class declarations.
DartOutput
Configuration for outputting generated Dart code.
Field
Represents a Java field declaration.
Input
Configuration for input Java source files, classpaths, and SDK dependencies.
JniGenerator Java Differences Lifecycle Threading Interface Implementation Exceptions Java Runtime Types Debugging
Configuration for JNIgen binding generation.
MavenDownloads
Configuration for dependencies to be downloaded using maven.
Method
Represents a Java method declaration.
NullabilityAnnotations
Configuration for custom nullability annotations recognized by JNIgen.
Output
Configuration for outputting generated Dart code and symbol files.
Param
Represents a Java parameter declaration.
SymbolImports
Configuration for importing symbol files (symbols.yaml) from other packages.
SymbolsOutput
Configuration for outputting generated symbols YAML file.
Visitor
A visitor that can traverse the AST of Java elements.

Enums

OutputStructure
File structure of the generated Dart bindings.
SummarizerBackend
Backend for reading summary of Java libraries

Functions

collectOutputStream(Stream<List<int>> stream, StringBuffer buffer) → void
Collects UTF-8 output from stream and writes it to buffer.
getOutputStructure(String? name, OutputStructure defaultVal) → OutputStructure
Parses name into an OutputStructure enum value, or returns defaultVal.
getSummarizerBackend(String? name, SummarizerBackend? defaultVal) → SummarizerBackend?
Parses name into a SummarizerBackend enum value, or returns defaultVal.

Exceptions / Errors

ConfigException
Exception thrown when a configuration value is invalid.