jnigen library
This library exports a high level programmatic API to jnigen, the entry point of which is runJniGenTask function, which takes run configuration as a JniGenTask.
Classes
- AndroidSdkConfig
- Configuration for Android SDK sources and stub JAR files.
- Annotation
- ArrayType
- BindingExclusions
- ClassDecl
- Classes
- ClassFilter
- A filter which tells if bindings for given ClassDecl are generated.
- ClassMember
- ClassNameFilter
-
Filter to include / exclude classes by matching on the binary name.
A binary name is like qualified name but with a
$
used to indicate nested class instead of.
, guaranteeing a unique name. - CombinedClassFilter
- Filter which excludes classes excluded by any one filter in filters.
-
CombinedMemberFilter<
T extends ClassMember> - Filter which excludes members excluded by any one filter in filters.
- Config
- Configuration for jnigen binding generation.
- CustomClassFilter
- This filter includes the declarations for which predicate returns true.
-
CustomMemberFilter<
T extends ClassMember> - Filter that includes or excludes a member based on a custom callback.
- DartCodeOutputConfig
- DeclaredType
-
Element<
T extends Element< T> > - Field
- JavaDocComment
- KotlinClass
- KotlinFunction
- MavenDownloads
- Configuration for dependencies to be downloaded using maven.
-
MemberFilter<
T extends ClassMember> -
MemberNameFilter<
T extends ClassMember> - Filter that excludes or includes members based on class and member name.
- Method
- OutputConfig
- Param
- PrimitiveType
- ReferredType
- SummarizerOptions
- Additional options to pass to the summary generator component.
- SymbolsOutputConfig
- TypeParam
- TypeUsage
- TypeVar
- Wildcard
Enums
- DeclKind
- A kind describes the type of a declaration.
- Kind
- OutputStructure
- SummarizerBackend
- Backend for reading summary of Java libraries
Functions
-
collectOutputStream(
Stream< List< stream, StringBuffer buffer) → voidint> > -
excludeAll<
T extends ClassMember> (List< List< names) → MemberFilter<Pattern> >T> -
generateJniBindings(
Config config) → Future< void> -
getOutputStructure(
String? name, OutputStructure defaultVal) → OutputStructure -
getSummarizerBackend(
String? name, SummarizerBackend? defaultVal) → SummarizerBackend?
Typedefs
-
CombinedFieldFilter
= CombinedMemberFilter<
Field> - This filter excludes fields if any one of sub-filters returns false.
-
CombinedMethodFilter
= CombinedMemberFilter<
Method> - This filter excludes methods if any one of sub-filters returns false.
-
CustomFieldFilter
= CustomMemberFilter<
Field> - Predicate based filter for field, which can access class declaration and the field.
-
CustomMethodFilter
= CustomMemberFilter<
Method> - Predicate based filter for method, which can access class declaration and the method.
-
FieldFilter
= MemberFilter<
Field> -
FieldNameFilter
= MemberNameFilter<
Field> - Filter using binary name of the class and name of the field.
-
MethodFilter
= MemberFilter<
Method> -
MethodNameFilter
= MemberNameFilter<
Method> - Filter using binary name of the class and name of the method.
Exceptions / Errors
- ConfigException
- Exception thrown when a configuration value is invalid.