Find
C
ase-sensitive
R
egexp search
Path
firefox-main
/
mobile
/
android
/
annotations
/
src
/
main
/
java
/
org
/
mozilla
/
gecko
/
annotationProcessors
Navigation
Enable keyboard shortcuts
Name
Description
Size
AnnotationInfo.java
Object holding annotation data. Used by GeneratableElementIterator.
2458
AnnotationProcessor.java
Main annotation processor for generating JNI bindings.
8772
classloader
CodeGenerator.java
Code generator for JNI bindings from annotated classes.
26826
SDKProcessor.java
Generate C++ bindings for SDK classes using a config file. <p>java SDKProcessor <sdkjar> <max-sdk-version> <outdir> [<configfile> <fileprefix>]+ <p><sdkjar>: jar file containing the SDK classes (e.g. android.jar) <max-sdk-version>: SDK version for generated class members (bindings will not be generated for members with SDK versions higher than max-sdk-version) <outdir>: output directory for generated binding files <configfile>: config file for generating bindings <fileprefix>: prefix used for generated binding files <p>Each config file is a text file following the .ini format: <p>; comment [section1] property = value <p># comment [section2] property = value <p>Each section specifies a qualified SDK class. Each property specifies a member of that class. The class and/or the property may specify options found in the WrapForJNI annotation. For example, <p># Generate bindings for Bundle using default options: [android.os.Bundle] <p># Generate bindings for Bundle using class options: [android.os.Bundle = exceptionMode:nsresult] <p># Generate bindings for Bundle using method options: [android.os.Bundle] putInt = stubName:PutInteger <p># Generate bindings for Bundle using class options with method override: # (note that all options are overriden at the same time.) [android.os.Bundle = exceptionMode:nsresult] # putInt will have stubName "PutInteger", and exceptionMode of "abort" putInt = stubName:PutInteger # putChar will have stubName "PutCharacter", and exceptionMode of "nsresult" putChar = stubName:PutCharacter, exceptionMode:nsresult <p># Overloded methods can be specified using its signature [android.os.Bundle] # Skip the copy constructor <init>(Landroid/os/Bundle;)V = skip:true <p># Generic member types can be specified [android.view.KeyEvent = skip:true] # Skip everything except fields <field> = skip:false <p># Skip everything except putInt and putChar [android.os.Bundle = skip:true] putInt = skip:false putChar = <p># Avoid conflicts in native bindings [android.os.Bundle] # Bundle(PersistableBundle) native binding can conflict with Bundle(ClassLoader) <init>(Landroid/os/PersistableBundle;)V = stubName:NewFromPersistableBundle <p># Generate a getter instead of a literal for certain runtime constants [android.os.Build$VERSION = skip:true] SDK_INT = noLiteral:true
22771
utils