gecko-dev/build/annotationProcessors
Jim Chen 6723035d5c Bug 1352177 - 2. Introduce new config file format for SDK bindings; r=snorp
Instead of specifying a class name per line, the new format uses the
.ini format, with each section name specifying the class, and each
property name specifying a member of the class. WrapForJNI options can
be specified with each class or member. Comments can be specified with
';' or '#'. For example,

 # Generate bindings for Bundle using default options:
 [android.os.Bundle]

 # Generate bindings for Bundle using class options:
 [android.os.Bundle = exceptionMode:nsresult]

 # Generate bindings for Bundle using method options:
 [android.os.Bundle]
 putInt = stubName:PutInteger

 # 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

 # Overloded methods can be specified using its signature
 [android.os.Bundle]
 # Skip the copy constructor
 <init>(Landroid/os/Bundle;)V = skip:true

 # Generic member types can be specified
 [android.view.KeyEvent = skip:true]
 # Skip everything except fields
 <field> = skip:false

 # Skip everything except putInt and putChar
 [android.os.Bundle = skip:true]
 putInt = skip:false
 putChar =

 # Avoid conflicts in native bindings
 [android.os.Bundle]
 # Bundle(PersistableBundle) native binding can conflict with Bundle(ClassLoader)
 <init>(Landroid/os/PersistableBundle;)V = stubName:NewFromPersistableBundle

 # Generate a getter instead of a literal for certain runtime constants
 [android.os.Build$VERSION = skip:true]
 SDK_INT = noLiteral:true
2017-05-03 11:36:18 -04:00
..
classloader Bug 1228684 - Make annotation processor handle unusual final cases. r=jchen 2015-11-27 14:21:04 -08:00
utils Bug 1352177 - 2. Introduce new config file format for SDK bindings; r=snorp 2017-05-03 11:36:18 -04:00
AnnotationInfo.java Bug 1352177 - 1. Add a "noLiteral" option for WrapForJNI; r=snorp 2017-05-03 11:36:18 -04:00
AnnotationProcessor.java Bug 1291375 - 2. Let AnnotationProcessor generate multiple sets of bindings; r=snorp 2016-09-16 15:13:47 -04:00
CodeGenerator.java Bug 1352177 - 2. Introduce new config file format for SDK bindings; r=snorp 2017-05-03 11:36:18 -04:00
Makefile.in Bug 1108782 - Part 1: straighten out Java classpaths. r=glandium 2015-08-31 13:35:05 -07:00
moz.build Bug 1338629 - Update annotation processing classpath to reflect SDK 25.3+ r=nalexander 2017-03-30 18:55:02 -07:00
SDKProcessor.java Bug 1352177 - 2. Introduce new config file format for SDK bindings; r=snorp 2017-05-03 11:36:18 -04:00