ac1c676b1256aaa85c5cc22494ea56bd2d276b9f |
|
12-Nov-2015 |
Neil Fuller <nfuller@google.com> |
Cleanup refactorings for currysrc Renamed Locater -> Locator Renamed Transformer -> Processor (and collapsed ASTTransformer and DocumentTransformer into a single class): the Transformers being written are often just reporting, not necessarily transforming. Renamed transform package to process. Pulled TransformRule.Context to a top level class for use in Processor. Renamed TransformRule -> Rule. Added a Reporter class for Processors that do reporting. Added overload to Main for specifying a report Writer. Default goes to System.out. Modified various Processor implementations to take a Reporter argument. Bug: 22023363 Change-Id: I785759c848c5ef6c7a9473bbad28898029e62941
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/api/output/BasicOutputSourceFileGenerator.java
|
93cf604e9dd0525f15bc0a7450b2a35f3884c298 |
|
12-Nov-2015 |
Neil Fuller <nfuller@google.com> |
Improvements to currysrc / srcgen Supply the original file name to OutputSourceFileGenerator so the code doesn't have to guess the file name. Extended BodyDeclarationLocater/BodyDeclarationLocaters to support string-form locaters and modify BodyDeclarationLocaters now the behavior of JavaDoc on field declarations is better understood. Modify Icu4jTransformRules.createInputFileGenerator to expect the full set of directory names. Modify the string form of TypeLocater to not distinguish between enums and classes: use "type:" not "enum:" or "class:". OCD-inspired modification to generated javadoc text from "@hide original deprecated method" to "@hide original deprecated declaration" (because they're not all methods). In CaptureDeprecatedElements deal with the fact that enum constants and interface declarations are implicity public. This caused one additional entry in Icu4jTransform and modification to generated code for MeasureUnit$Factory#create(String,String). Bug: 22023363 Change-Id: I32435e5af0c43b210d7978efbfcb2daecf9071aa
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/api/output/BasicOutputSourceFileGenerator.java
|
cc49f813b0d7bf6664102b30b5513fd21c362e0d |
|
02-Nov-2015 |
Neil Fuller <nfuller@google.com> |
Add support for @.jcite references in srcgen Convert {@.jcite .... to Doclava's {@sample .... format. Generate source code for ICU4J sample code repackaged to android.icu. Only some of the ICU4J samples are repackaged: the aim is to compile these against the latest APIs once they become public. The android.icu.util.Output class has been added to the public API as it is required to use them. Refactoring of currysrc / srcgen to avoid some code duplication. This change also contains the regenerated android_icu4j source code. Bug: 22023363 Change-Id: I2661041998898bafe1592522f9c9ec758c96da3b
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/api/output/BasicOutputSourceFileGenerator.java
|
bb8f95bc32b7eaa43c162dc6687276fb34d9c49c |
|
09-Oct-2015 |
Neil Fuller <nfuller@google.com> |
Add an initial version of a source-code manipulation library. Adds the bones of a generic library for source code manipulation (currysrc) and associated build rules. Bug: 22023363 Change-Id: I828f0f45e7d3c5bc26bccc40ab375e5ebcc7f9c7
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/api/output/BasicOutputSourceFileGenerator.java
|