pax_global_header00006660000000000000000000000064127007451020014510gustar00rootroot0000000000000052 comment=93290581f70e5dfa4693d21a9e42704c5399f527 auto-value-gson-0.2.2/000077500000000000000000000000001270074510200145375ustar00rootroot00000000000000auto-value-gson-0.2.2/.gitignore000066400000000000000000000001471270074510200165310ustar00rootroot00000000000000# IntelliJ IDEA .idea *.iml annotations # Gradle .gradle gradlew.bat build local.properties .DS_Storeauto-value-gson-0.2.2/.travis.yml000066400000000000000000000000171270074510200166460ustar00rootroot00000000000000language: java auto-value-gson-0.2.2/CHANGELOG.md000066400000000000000000000005501270074510200163500ustar00rootroot00000000000000# Change Log ## Version 0.2.2 (2016-04-05) #### Supports: AutoValue 1.2-rc1 * Fixes issue causing method prefixes (`get`, `is`) to be ignored. ## Version 0.2.1 (2016-03-22) Fixes snapshot issues with 0.2.0 release. Only guaranteed to support AutoValue 1.2-rc1 ## Version 0.2.0 (2016-03-21) Initial release. Only guaranteed to support AutoValue 1.2-rc1 auto-value-gson-0.2.2/LICENSE.txt000066400000000000000000000261351270074510200163710ustar00rootroot00000000000000 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.auto-value-gson-0.2.2/README.md000066400000000000000000000035031270074510200160170ustar00rootroot00000000000000# AutoValue: Gson Extension [![Build Status](https://travis-ci.org/rharter/auto-value-gson.svg?branch=master)](https://travis-ci.org/rharter/auto-value-gson) An extension for Google's [AutoValue](https://github.com/google/auto) that creates a simple [Gson](https://github.com/google/gson) TypeAdapterFactory for each AutoValue annotated object. ## Usage Simply include auto-value-gson in your project and add the generated Serializer and Deserializer as a TypeAdapter. You can also annotate your properties using `@SerializedName` to define an alternate name for de/serialization. ```java @AutoValue public abstract class Foo { abstract String bar(); @SerializedName("Baz") abstract String baz(); public static TypeAdapterFactory typeAdapterFactory() { return AutoValue_Foo.typeAdapterFactory(); } } final Gson gson = new GsonBuilder() .registerTypeAdapterFactory(Foo.typeAdapterFactory()) .create(); ``` Now build your project and de/serialize your Foo. ## TODO This wouldn't be quite complete without some added features. * Automatic registration * Default value support ## Download Add a Gradle dependency: ```groovy apt 'com.ryanharter.auto.value:auto-value-gson:0.2.2' ``` (Using the [android-apt](https://bitbucket.org/hvisser/android-apt) plugin) ## License ``` Copyright 2015 Ryan Harter. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ``` auto-value-gson-0.2.2/RELEASING.md000066400000000000000000000013321270074510200163710ustar00rootroot00000000000000Releasing ======== 1. Change the version in `gradle.properties` to a non-SNAPSHOT version. 2. Update the `CHANGELOG.md` for the impending release. 3. Update the `README.md` with the new version. 4. `git commit -am "Prepare for release X.Y.Z."` (where X.Y.Z is the new version) 5. `./gradlew clean uploadArchives`. 6. Visit [Sonatype Nexus](https://oss.sonatype.org/) and promote the artifact. 7. `git tag -a X.Y.X -m "Version X.Y.Z"` (where X.Y.Z is the new version) 8. Update the `gradle.properties` to the next SNAPSHOT version. 9. `git commit -am "Prepare next development version."` 10. `git push && git push --tags` If step 5 or 6 fails, drop the Sonatype repo, fix the problem, commit, and start again at step 5.auto-value-gson-0.2.2/build.gradle000066400000000000000000000014611270074510200170200ustar00rootroot00000000000000apply plugin: 'java' apply plugin: 'maven-publish' sourceCompatibility = JavaVersion.VERSION_1_7 targetCompatibility = JavaVersion.VERSION_1_7 repositories { maven { url 'http://oss.sonatype.org/content/repositories/snapshots' } mavenCentral() } dependencies { compile 'com.squareup:javapoet:1.1.0' compile 'com.google.auto.value:auto-value:1.2-rc1' compile 'com.google.auto.service:auto-service:1.0-rc2' compile 'com.google.auto:auto-common:0.6' compile 'com.google.code.gson:gson:2.4' testCompile 'junit:junit:4.11' testCompile 'com.google.truth:truth:0.27' testCompile 'com.google.testing.compile:compile-testing:0.7' testCompile files(org.gradle.internal.jvm.Jvm.current().getToolsJar()) } apply from: rootProject.file('gradle/gradle-mvn-push.gradle') auto-value-gson-0.2.2/gradle.properties000066400000000000000000000012331270074510200201120ustar00rootroot00000000000000GROUP=com.ryanharter.auto.value VERSION_NAME=0.2.2 POM_ARTIFACT_ID=auto-value-gson POM_NAME=AutoValue: Gson Extension POM_PACKAGING=jar POM_DESCRIPTION=AutoValue extension that creates a Gson TypeAdapterFactory POM_URL=https://github.com/rharter/auto-value-gson/ POM_SCM_URL=https://github.com/rharter/auto-value-gson/ POM_SCM_CONNECTION=scm:git:git://github.com/rharter/auto-value-gson POM_SCM_DEV_CONNECTION=scm:git:ssh://git@github.com/rharter/auto-value-gson POM_LICENCE_NAME=The Apache Software License, Version 2.0 POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt POM_LICENCE_DIST=repo POM_DEVELOPER_ID=rharter POM_DEVELOPER_NAME=Ryan Harter auto-value-gson-0.2.2/gradle/000077500000000000000000000000001270074510200157755ustar00rootroot00000000000000auto-value-gson-0.2.2/gradle/gradle-mvn-push.gradle000066400000000000000000000155061270074510200221750ustar00rootroot00000000000000/* * Copyright 2013 Chris Banes * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ apply plugin: 'maven' apply plugin: 'signing' version = VERSION_NAME group = GROUP def isReleaseBuild() { return VERSION_NAME.contains("SNAPSHOT") == false } def getReleaseRepositoryUrl() { return hasProperty('RELEASE_REPOSITORY_URL') ? RELEASE_REPOSITORY_URL : "https://oss.sonatype.org/service/local/staging/deploy/maven2/" } def getSnapshotRepositoryUrl() { return hasProperty('SNAPSHOT_REPOSITORY_URL') ? SNAPSHOT_REPOSITORY_URL : "https://oss.sonatype.org/content/repositories/snapshots/" } def getRepositoryUsername() { return hasProperty('SONATYPE_NEXUS_USERNAME') ? SONATYPE_NEXUS_USERNAME : "" } def getRepositoryPassword() { return hasProperty('SONATYPE_NEXUS_PASSWORD') ? SONATYPE_NEXUS_PASSWORD : "" } afterEvaluate { project -> uploadArchives { repositories { mavenDeployer { beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } pom.groupId = GROUP pom.artifactId = POM_ARTIFACT_ID pom.version = VERSION_NAME repository(url: getReleaseRepositoryUrl()) { authentication(userName: getRepositoryUsername(), password: getRepositoryPassword()) } snapshotRepository(url: getSnapshotRepositoryUrl()) { authentication(userName: getRepositoryUsername(), password: getRepositoryPassword()) } pom.project { name POM_NAME packaging POM_PACKAGING description POM_DESCRIPTION url POM_URL scm { url POM_SCM_URL connection POM_SCM_CONNECTION developerConnection POM_SCM_DEV_CONNECTION } licenses { license { name POM_LICENCE_NAME url POM_LICENCE_URL distribution POM_LICENCE_DIST } } developers { developer { id POM_DEVELOPER_ID name POM_DEVELOPER_NAME } } } } } } signing { required { isReleaseBuild() && gradle.taskGraph.hasTask("uploadArchives") } sign configurations.archives } if (project.getPlugins().hasPlugin('com.android.application') || project.getPlugins().hasPlugin('com.android.library')) { task install(type: Upload, dependsOn: assemble) { repositories.mavenInstaller { configuration = configurations.archives pom.groupId = GROUP pom.artifactId = POM_ARTIFACT_ID pom.version = VERSION_NAME pom.project { name POM_NAME packaging POM_PACKAGING description POM_DESCRIPTION url POM_URL scm { url POM_SCM_URL connection POM_SCM_CONNECTION developerConnection POM_SCM_DEV_CONNECTION } licenses { license { name POM_LICENCE_NAME url POM_LICENCE_URL distribution POM_LICENCE_DIST } } developers { developer { id POM_DEVELOPER_ID name POM_DEVELOPER_NAME } } } } } task androidJavadocs(type: Javadoc) { source = android.sourceSets.main.java.source classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) } task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) { classifier = 'javadoc' from androidJavadocs.destinationDir } task androidSourcesJar(type: Jar) { classifier = 'sources' from android.sourceSets.main.java.source } } else { install { repositories.mavenInstaller { pom.groupId = GROUP pom.artifactId = POM_ARTIFACT_ID pom.version = VERSION_NAME pom.project { name POM_NAME packaging POM_PACKAGING description POM_DESCRIPTION url POM_URL scm { url POM_SCM_URL connection POM_SCM_CONNECTION developerConnection POM_SCM_DEV_CONNECTION } licenses { license { name POM_LICENCE_NAME url POM_LICENCE_URL distribution POM_LICENCE_DIST } } developers { developer { id POM_DEVELOPER_ID name POM_DEVELOPER_NAME } } } } } task sourcesJar(type: Jar, dependsOn:classes) { classifier = 'sources' from sourceSets.main.allSource } task javadocJar(type: Jar, dependsOn:javadoc) { classifier = 'javadoc' from javadoc.destinationDir } } if (JavaVersion.current().isJava8Compatible()) { allprojects { tasks.withType(Javadoc) { options.addStringOption('Xdoclint:none', '-quiet') } } } artifacts { if (project.getPlugins().hasPlugin('com.android.application') || project.getPlugins().hasPlugin('com.android.library')) { archives androidSourcesJar archives androidJavadocsJar } else { archives sourcesJar archives javadocJar } } }auto-value-gson-0.2.2/gradle/wrapper/000077500000000000000000000000001270074510200174555ustar00rootroot00000000000000auto-value-gson-0.2.2/gradle/wrapper/gradle-wrapper.jar000066400000000000000000001456551270074510200231070ustar00rootroot00000000000000PK d1PF META-INF/PK d1PFbS?TMETA-INF/MANIFEST.MFMLK-. K-*ϳR03-IM+I, dZ)%bµrrPK d1PForg/PK d1PF org/gradle/PK d1PForg/gradle/wrapper/PK d1PFhdf#org/gradle/wrapper/Download$1.class}M 0h5Z+v/ ׆p!.H3SK;a(Id0®lWO*i)2Xsd1,:"! G5=R+ȃɹws??~XªQx)I)`^F\F ṂzQFRhMK K [A*_ɮoANϖvӟtp854˰ZsM0ݍ+e錞K{zahӱa{jr⿅ >4fڦ?(06 %L7k}8e*)v0 DqZ5*>F]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QK?et&P>X/#]\5_<+ƒ~9Ye$&rJG^uTrٟC3.h*X)̳UTZbT( ?h *qW;KW98hjqID&p/ i,Sp.^m@`5BuJyJx8ЄT̛T na+B(6Q6 b:Q6v3g+ ~lPùȪ!j?CUTనE[o*:.;H*agY'}8qv[ ci7jni`Yz4 ` .Ɍ{/#F%V-2PK d1PFj jV8org/gradle/wrapper/PathAssembler$LocalDistribution.classR[KAftq[yk[KA!|(L!N MJP?U<3Ҩ|ؙs.s˿ū9`OM}Q&m5ȏT0芟"VY~ܪ+Mc56-ډiK` {DjyT򏄽Ilֲ$,4T*? {M Fɡkmjs M%ydw-~[ؑ%Ru<[5'_n$6E<`=fAxwZIDډ?7 U46?S@h=W-ĝPK d1PFcJK!org/gradle/wrapper/Download.classWg~f3; 9X( l" $v4, ]Pq;,lgf TmnU^[l(UT#bσ*Ge|LU4*ISb Q|V4Sy|A%<|YW𸌯*zDoxT-TSL-S TU=WOe<# Aafu1 k,췭a;on&-qS#wNO-AIX=j "J FMh[`J Z8n遴q`[yV8X愾`HՏYL];c-\mưvtqk̸{$DZsJf$G7gLc"0k٬Գ3gMͬ I˜ˤ2 ³*)H-gTjd /LYOláڭD!e8n,nՕ;4rbё nckئe1^?ً}l8s~}uECwY) vl7qfhF+E;.ﭺ/y#8Ǯbph%!-!tj{#w|roרQ+23wavb#v&J2pÄގy  S(a8IfUVe`->Cx d~M"ɾ|X,HיHxT'v"v] /`x@trfelO4P!H F 7h!mʩLA-^8LB-JAPK d1PFT PN#gradle-wrapper-classpath.propertiesSO)IUHIM,RSpKMR04S00242Tpv Q0204*(JM.)M/JLIM**+MPK O1PF.L1build-receipt.properties5O;o TABHhBem` Cߢ/42YPa9{s?p# 5ϕBy9yEx\Ye ZpՆaEjw I7|ZU c:tiw]HaٲzQdu;BrQfظ&DV\%6# ǹƙun]s̷X3ػe9H%ҲIk.=,ȍ-1ak^1蔕)9(id0^}y_7бp:%`i6t*㰊jBL F vUWm_ImuוD I8H7Լ&%DDՄ3qONB :ACvsπb0\8y 3CEw&T*kY+$@B!K͡5IYF6VANwh`+&XEKH,έQFV# J#hRq +dAy ~#TN*)oްOOSxΑ 86'??'k<ų@zV`PK O1PF2_e(org/gradle/cli/CommandLineParser$1.classA 0EhZ v庈kCPEv-iIp.<S\p>?fxCDlnmMJ]k'iu#0BWՔ!f,By@wZ͕t!BI]#HI9|g|{ -|PK O1PFRB <org/gradle/cli/CommandLineParser$MissingOptionArgState.class]O`6d 2 c&/1N4`W5S/ ^H#2-sKƖ&9O״ 1UQ4%ի*gE)D15u KD10ؓp :@^3\ٲŪ+^1UqQ)B&@)ʊ! B@n!fU(AiW|ۤᲵMnR# yd8!>] ZEGO*%UoulGQ/\TMn˹-02#/hAlu@t%-q*2Nw e&BgsQ\gݧ-F͌& nX{~ϐ2zfZC R6A Ӱἆ%GAa3@Lv0Lc8~csC7]Saf=/b !i!WiXN$!9!:">i!z&|'d&w`8Ig9NOXFiХ uD5x Rl( 38qhKCO p:mO.6p'%0o %rC?7o@Ӹ<=@QO b쫇|CMa"!˰߰d^7Uܰ^t^EY3G5Dh8%h+aVE3D*PK O1PFM2=org/gradle/cli/CommandLineParser$OptionStringComparator.classTOAfeam`ZPd) HJ  ަ Yvɛ{&ƳvBkj8tޛyo/ jѱcр%:UlQNJU-`!?`nbHzT(gHuO:{|"<Cbq,l ߷YqDݶ̚-M oyޕJ z-Qӹ|H Nl#Kݑ]:Պ}^!C ެ\kW=jA;W{D9!ŒeAS/@%ئRƾj n5nIJ dOcy_e[o9 =}&fH]ͰqiR-x/ rahf2=BF=Y \ KaڙdiZ_L*SHhpPsED?!Fq`pZl{ݺ=1#[s!B{./zi|CG1ǐIVy&$nR$B;C'r."{i"Llr".03m`Y(N͒V055QM<3t Ʃ`1< mcd3B= `OPK O1PF# GK1org/gradle/cli/CommandLineArgumentException.classJ1O3Zm+Uו0tD23k*|(1IK-Y  2aEE9炧=OQzTqvK9fU v#tiˀFCb!ė*BE{2ȅ 9`)K,Ihh\x &J>p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pw'3y=RHI8[-vtn5@ $}_+:)+C EoPK O1PF'H g)org/gradle/cli/CommandLineConverter.classQMK@}ԯ'"4 FM)HQ ޷lI7ݔ6MBya=t$S l)8A {Oyb :˄3I5' JXdT"qx{a/4OR1=Q615 ڹ6ƇEWbRh{'qj1M8zta,gZTRwZ\SYVSݜnhUYB/n/1Oz_G86\fjAʚajJuG-UʙeZ7^[u(5}2(Y٪Zk$N(@yA(تeٺip|0Xh5UUJ`[QtZw&~ժ:ѷ3<MSn9j*ߌq\6 G J*yN;{2#hfc f*SL Èaq!y" Ǘ axIbtxh.x%0&X}?:Ui4^}R֚Be*"nE& ̗he;*J"b68pÕ7rC.?V-0fO~^y뱉6{*B^*Y-z=:7CRyʍհjHC*dfN͔W{M ^pCMPzkt_gBR,]x;^Vw+eM+" ;zf7i^/O3}xb]C[B]d5c|Q%G7GO=m~} ҈'ҮOC.i^yb;30rؑ^!yڢ{f U5$:2lދ9eX Lm1 }IbR$Yy|M7PK O1PF;|9org/gradle/cli/SystemPropertiesCommandLineConverter.classJ@ثmjE5BDąR/P~ӑ$&BJW 'iAY3͜l "lYlE <& d@HgL{:rRs:C*X4NĬQ ۴;hZ3a ѽG!]Gv7S"5eb o}ɸGtFMz9y~X{()spL`7e.KV, TXxɢfDTEGPWJmh~49AjxѰ sh gԙn85].FԒs9Q΢*s/@Ug J*ce+s+1 $p6/t-,;h-.Z >kZPK O1PF-h2org/gradle/cli/CommandLineParser$ParserState.classSoPN) sT4706|3M$m f{@ú[s-?&>GmdiҞ|~pF62΢jv,-4WׄTqB0;%v=^(>{J` aŴ9,D!PK O1PFF= ;org/gradle/cli/CommandLineParser$AfterFirstSubCommand.classVRPN[J;be-x)U.R(XE_( |gtPq猏C8I K0㟳{v|gw9| E͈4тHA/pK\3*B;ExqOH0ԛoB Нҍ\$gȫy%ͫ!k)USdqW5ռ0l%^--1x[+T^ɓğҳr~I6T/ =]kS1&U`fV Ҍ)F2/ Y88f-IMy$ M1eLo H2ڼ})MzٛZʑ"P\\y6O\}9ݲ'JBKeվm gËYzK/ Z1}**2 ~CG&1%`Z 3t9eaёgںokǔ@g%Ku`|G%E5e uS閻5ϗ4ڪ۲b}B\EU6:YPFJjh>3L578")&COH)YslH#?nA;ΙZwQW+S ^ͼ8W'AE[=|>>Јs6MMT > wH{im::^A:HG8d"Fx&O+\AX!vѸq HW69Z e+˝}с; \G7Ĺ(( ]LSh`cB p.9Bj1 D'($U<"z@'bj']GZ f<_PK O1PFηFDgradle-cli-classpath.propertiesSO)IUHIM,RSpKMR04S002426Tpv Q0204*(JM.)**+MPK d1PF AMETA-INF/PK d1PFbS?T)META-INF/MANIFEST.MFPK d1PFAorg/PK d1PF Aorg/gradle/PK d1PFAorg/gradle/wrapper/PK d1PFhdf#org/gradle/wrapper/Download$1.classPK d1PFޅpDorg/gradle/wrapper/Download$SystemPropertiesProxyAuthenticator.classPK d1PFXs"vorg/gradle/wrapper/IDownload.classPK d1PFz\Q-`org/gradle/wrapper/GradleUserHomeLookup.classPK d1PF] 3org/gradle/wrapper/ExclusiveFileAccessManager.classPK d1PFc`-org/gradle/wrapper/WrapperConfiguration.classPK d1PFQ}i 0org/gradle/wrapper/SystemPropertiesHandler.classPK d1PFy0Vorg/gradle/wrapper/Logger.classPK d1PFrn&org/gradle/wrapper/PathAssembler.classPK d1PF=Ym! org/gradle/wrapper/Install.classPK d1PFL -org/gradle/wrapper/GradleWrapperMain.classPK d1PFpd "Iorg/gradle/wrapper/Install$1.classPK d1PFj jV8Porg/gradle/wrapper/PathAssembler$LocalDistribution.classPK d1PFcJK!'Rorg/gradle/wrapper/Download.classPK d1PFT PN#Zgradle-wrapper-classpath.propertiesPK O1PF.L1[build-receipt.propertiesPK O1PFA\org/gradle/cli/PK O1PF<S1?\org/gradle/cli/AbstractCommandLineConverter.classPK O1PF2_e(^org/gradle/cli/CommandLineParser$1.classPK O1PFRB <_org/gradle/cli/CommandLineParser$MissingOptionArgState.classPK O1PFM2=borg/gradle/cli/CommandLineParser$OptionStringComparator.classPK O1PF# GK1eorg/gradle/cli/CommandLineArgumentException.classPK O1PF?h=:gorg/gradle/cli/CommandLineParser$KnownOptionParserState.classPK O1PFk7\oorg/gradle/cli/CommandLineParser$OptionComparator.classPK O1PFb'n?~rorg/gradle/cli/CommandLineParser$UnknownOptionParserState.classPK O1PF"zZ &uorg/gradle/cli/CommandLineOption.classPK O1PFl\ϧ8{org/gradle/cli/CommandLineParser$OptionParserState.classPK O1PF#4P*&}org/gradle/cli/ParsedCommandLine.classPK O1PFA5l| :org/gradle/cli/ProjectPropertiesCommandLineConverter.classPK O1PF2lWJFцorg/gradle/cli/CommandLineParser$CaseInsensitiveStringComparator.classPK O1PF( ]UT*&org/gradle/cli/CommandLineParser.classPK O1PF_>ң)3org/gradle/cli/CommandLineParser$AfterOptions.classPK O1PFGf3 org/gradle/cli/CommandLineParser$OptionString.classPK O1PFx&T` ;org/gradle/cli/AbstractPropertiesCommandLineConverter.classPK O1PF ,org/gradle/cli/ParsedCommandLineOption.classPK O1PFs=org/gradle/cli/CommandLineParser$OptionAwareParserState.classPK O1PF'H g)org/gradle/cli/CommandLineConverter.classPK O1PFC| <org/gradle/cli/CommandLineParser$BeforeFirstSubCommand.classPK O1PF;|9Dorg/gradle/cli/SystemPropertiesCommandLineConverter.classPK O1PF-h2org/gradle/cli/CommandLineParser$ParserState.classPK O1PFF= ;norg/gradle/cli/CommandLineParser$AfterFirstSubCommand.classPK O1PFηFDgradle-cli-classpath.propertiesPK11auto-value-gson-0.2.2/gradle/wrapper/gradle-wrapper.properties000066400000000000000000000003461270074510200245120ustar00rootroot00000000000000#Fri Aug 14 10:57:01 CDT 2015 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-2.6-all.zip auto-value-gson-0.2.2/gradlew000077500000000000000000000117301270074510200161140ustar00rootroot00000000000000#!/usr/bin/env bash ############################################################################## ## ## Gradle start up script for UN*X ## ############################################################################## # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. DEFAULT_JVM_OPTS="" APP_NAME="Gradle" APP_BASE_NAME=`basename "$0"` # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD="maximum" warn ( ) { echo "$*" } die ( ) { echo echo "$*" echo exit 1 } # OS specific support (must be 'true' or 'false'). cygwin=false msys=false darwin=false case "`uname`" in CYGWIN* ) cygwin=true ;; Darwin* ) darwin=true ;; MINGW* ) msys=true ;; esac # For Cygwin, ensure paths are in UNIX format before anything is touched. if $cygwin ; then [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` fi # Attempt to set APP_HOME # Resolve links: $0 may be a link PRG="$0" # Need this for relative symlinks. while [ -h "$PRG" ] ; do ls=`ls -ld "$PRG"` link=`expr "$ls" : '.*-> \(.*\)$'` if expr "$link" : '/.*' > /dev/null; then PRG="$link" else PRG=`dirname "$PRG"`"/$link" fi done SAVED="`pwd`" cd "`dirname \"$PRG\"`/" >&- APP_HOME="`pwd -P`" cd "$SAVED" >&- CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar # Determine the Java command to use to start the JVM. if [ -n "$JAVA_HOME" ] ; then if [ -x "$JAVA_HOME/jre/sh/java" ] ; then # IBM's JDK on AIX uses strange locations for the executables JAVACMD="$JAVA_HOME/jre/sh/java" else JAVACMD="$JAVA_HOME/bin/java" fi if [ ! -x "$JAVACMD" ] ; then die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME Please set the JAVA_HOME variable in your environment to match the location of your Java installation." fi else JAVACMD="java" which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. Please set the JAVA_HOME variable in your environment to match the location of your Java installation." fi # Increase the maximum file descriptors if we can. if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then MAX_FD_LIMIT=`ulimit -H -n` if [ $? -eq 0 ] ; then if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then MAX_FD="$MAX_FD_LIMIT" fi ulimit -n $MAX_FD if [ $? -ne 0 ] ; then warn "Could not set maximum file descriptor limit: $MAX_FD" fi else warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" fi fi # For Darwin, add options to specify how the application appears in the dock if $darwin; then GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" fi # For Cygwin, switch paths to Windows format before running java if $cygwin ; then APP_HOME=`cygpath --path --mixed "$APP_HOME"` CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` # We build the pattern for arguments to be converted via cygpath ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` SEP="" for dir in $ROOTDIRSRAW ; do ROOTDIRS="$ROOTDIRS$SEP$dir" SEP="|" done OURCYGPATTERN="(^($ROOTDIRS))" # Add a user-defined pattern to the cygpath arguments if [ "$GRADLE_CYGPATTERN" != "" ] ; then OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" fi # Now convert the arguments - kludge to limit ourselves to /bin/sh i=0 for arg in "$@" ; do CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` else eval `echo args$i`="\"$arg\"" fi i=$((i+1)) done case $i in (0) set -- ;; (1) set -- "$args0" ;; (2) set -- "$args0" "$args1" ;; (3) set -- "$args0" "$args1" "$args2" ;; (4) set -- "$args0" "$args1" "$args2" "$args3" ;; (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; esac fi # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules function splitJvmOpts() { JVM_OPTS=("$@") } eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" auto-value-gson-0.2.2/gradlew.bat000066400000000000000000000045441270074510200166630ustar00rootroot00000000000000@if "%DEBUG%" == "" @echo off @rem ########################################################################## @rem @rem Gradle startup script for Windows @rem @rem ########################################################################## @rem Set local scope for the variables with windows NT shell if "%OS%"=="Windows_NT" setlocal @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. set DEFAULT_JVM_OPTS= set DIRNAME=%~dp0 if "%DIRNAME%" == "" set DIRNAME=. set APP_BASE_NAME=%~n0 set APP_HOME=%DIRNAME% @rem Find java.exe if defined JAVA_HOME goto findJavaFromJavaHome set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 if "%ERRORLEVEL%" == "0" goto init echo. echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. echo. echo Please set the JAVA_HOME variable in your environment to match the echo location of your Java installation. goto fail :findJavaFromJavaHome set JAVA_HOME=%JAVA_HOME:"=% set JAVA_EXE=%JAVA_HOME%/bin/java.exe if exist "%JAVA_EXE%" goto init echo. echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% echo. echo Please set the JAVA_HOME variable in your environment to match the echo location of your Java installation. goto fail :init @rem Get command-line arguments, handling Windowz variants if not "%OS%" == "Windows_NT" goto win9xME_args if "%@eval[2+2]" == "4" goto 4NT_args :win9xME_args @rem Slurp the command line arguments. set CMD_LINE_ARGS= set _SKIP=2 :win9xME_args_slurp if "x%~1" == "x" goto execute set CMD_LINE_ARGS=%* goto execute :4NT_args @rem Get arguments from the 4NT Shell from JP Software set CMD_LINE_ARGS=%$ :execute @rem Setup the command line set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar @rem Execute Gradle "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% :end @rem End local scope for the variables with windows NT shell if "%ERRORLEVEL%"=="0" goto mainEnd :fail rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of rem the _cmd.exe /c_ return code! if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 exit /b 1 :mainEnd if "%OS%"=="Windows_NT" endlocal :omega auto-value-gson-0.2.2/settings.gradle000066400000000000000000000000461270074510200175570ustar00rootroot00000000000000rootProject.name = 'auto-value-gson' auto-value-gson-0.2.2/src/000077500000000000000000000000001270074510200153265ustar00rootroot00000000000000auto-value-gson-0.2.2/src/main/000077500000000000000000000000001270074510200162525ustar00rootroot00000000000000auto-value-gson-0.2.2/src/main/java/000077500000000000000000000000001270074510200171735ustar00rootroot00000000000000auto-value-gson-0.2.2/src/main/java/com/000077500000000000000000000000001270074510200177515ustar00rootroot00000000000000auto-value-gson-0.2.2/src/main/java/com/ryanharter/000077500000000000000000000000001270074510200221305ustar00rootroot00000000000000auto-value-gson-0.2.2/src/main/java/com/ryanharter/auto/000077500000000000000000000000001270074510200231005ustar00rootroot00000000000000auto-value-gson-0.2.2/src/main/java/com/ryanharter/auto/value/000077500000000000000000000000001270074510200242145ustar00rootroot00000000000000auto-value-gson-0.2.2/src/main/java/com/ryanharter/auto/value/gson/000077500000000000000000000000001270074510200251625ustar00rootroot00000000000000auto-value-gson-0.2.2/src/main/java/com/ryanharter/auto/value/gson/AutoValueGsonExtension.java000066400000000000000000000367011270074510200324650ustar00rootroot00000000000000package com.ryanharter.auto.value.gson; import com.google.auto.service.AutoService; import com.google.auto.value.extension.AutoValueExtension; import com.google.common.base.Defaults; import com.google.common.base.Strings; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Lists; import com.google.common.primitives.Primitives; import com.google.gson.Gson; import com.google.gson.TypeAdapter; import com.google.gson.TypeAdapterFactory; import com.google.gson.annotations.SerializedName; import com.google.gson.reflect.TypeToken; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonToken; import com.google.gson.stream.JsonWriter; import com.squareup.javapoet.ClassName; import com.squareup.javapoet.CodeBlock; import com.squareup.javapoet.FieldSpec; import com.squareup.javapoet.JavaFile; import com.squareup.javapoet.MethodSpec; import com.squareup.javapoet.ParameterSpec; import com.squareup.javapoet.ParameterizedTypeName; import com.squareup.javapoet.TypeName; import com.squareup.javapoet.TypeSpec; import com.squareup.javapoet.TypeVariableName; import java.io.IOException; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import javax.lang.model.element.AnnotationMirror; import javax.lang.model.element.ExecutableElement; import static javax.lang.model.element.Modifier.ABSTRACT; import static javax.lang.model.element.Modifier.FINAL; import static javax.lang.model.element.Modifier.PRIVATE; import static javax.lang.model.element.Modifier.PUBLIC; import static javax.lang.model.element.Modifier.STATIC; @AutoService(AutoValueExtension.class) public class AutoValueGsonExtension extends AutoValueExtension { public static class Property { final String methodName; final String humanName; final ExecutableElement element; final TypeName type; final ImmutableSet annotations; public Property(String humanName, ExecutableElement element) { this.methodName = element.getSimpleName().toString(); this.humanName = humanName; this.element = element; type = TypeName.get(element.getReturnType()); annotations = buildAnnotations(element); } public String serializedName() { SerializedName serializedName = element.getAnnotation(SerializedName.class); if (serializedName != null) { return serializedName.value(); } else { return humanName; } } public Boolean nullable() { return annotations.contains("Nullable"); } private ImmutableSet buildAnnotations(ExecutableElement element) { ImmutableSet.Builder builder = ImmutableSet.builder(); List annotations = element.getAnnotationMirrors(); for (AnnotationMirror annotation : annotations) { builder.add(annotation.getAnnotationType().asElement().getSimpleName().toString()); } return builder.build(); } } @Override public boolean applicable(Context context) { return true; } @Override public String generateClass(Context context, String className, String classToExtend, boolean isFinal) { List properties = readProperties(context.properties()); Map types = convertPropertiesToTypes(context.properties()); ClassName classNameClass = ClassName.get(context.packageName(), className); ClassName autoValueClass = ClassName.bestGuess(context.autoValueClass().getQualifiedName().toString()); TypeSpec typeAdapter = createTypeAdapter(classNameClass, autoValueClass, properties); TypeSpec typeAdapterFactory = createTypeAdapterFactory(classNameClass, autoValueClass, typeAdapter, types); MethodSpec typeAdapterFactoryMethod = createTypeAdapterFactoryMethod(typeAdapterFactory); TypeSpec.Builder subclass = TypeSpec.classBuilder(className) .superclass(TypeVariableName.get(classToExtend)) .addType(typeAdapterFactory) .addType(typeAdapter) .addMethod(generateConstructor(types)) .addMethod(typeAdapterFactoryMethod); if (isFinal) { subclass.addModifiers(FINAL); } else { subclass.addModifiers(ABSTRACT); } return JavaFile.builder(context.packageName(), subclass.build()).build().toString(); } public List readProperties(Map properties) { List values = new LinkedList(); for (Map.Entry entry : properties.entrySet()) { values.add(new Property(entry.getKey(), entry.getValue())); } return values; } ImmutableMap createFields(List properties) { ImmutableMap.Builder fields = ImmutableMap.builder(); ClassName jsonAdapter = ClassName.get(TypeAdapter.class); for (Property property : properties) { TypeName type = property.type.isPrimitive() ? property.type.box() : property.type; ParameterizedTypeName adp = ParameterizedTypeName.get(jsonAdapter, type); fields.put(property, FieldSpec.builder(adp, property.humanName + "Adapter", PRIVATE, FINAL).build()); } return fields.build(); } MethodSpec generateConstructor(Map properties) { List params = Lists.newArrayList(); for (Map.Entry entry : properties.entrySet()) { params.add(ParameterSpec.builder(entry.getValue(), entry.getKey()).build()); } MethodSpec.Builder builder = MethodSpec.constructorBuilder() .addParameters(params); StringBuilder superFormat = new StringBuilder("super("); for (int i = properties.size(); i > 0; i--) { superFormat.append("$N"); if (i > 1) superFormat.append(", "); } superFormat.append(")"); builder.addStatement(superFormat.toString(), properties.keySet().toArray()); return builder.build(); } /** * Converts the ExecutableElement properties to TypeName properties */ Map convertPropertiesToTypes(Map properties) { Map types = new LinkedHashMap(); for (Map.Entry entry : properties.entrySet()) { ExecutableElement el = entry.getValue(); types.put(entry.getKey(), TypeName.get(el.getReturnType())); } return types; } public MethodSpec createTypeAdapterFactoryMethod(TypeSpec typeAdapterFactory) { return MethodSpec.methodBuilder("typeAdapterFactory") .addModifiers(PUBLIC, STATIC) .returns(ClassName.bestGuess(typeAdapterFactory.name)) .addStatement("return new $N()", typeAdapterFactory) .build(); } public TypeSpec createTypeAdapterFactory(ClassName className, ClassName autoValueClassName, TypeSpec typeAdapter, Map properties) { String customTypeAdapterFactoryName = String.format("%sTypeAdapterFactory", autoValueClassName.simpleName()); TypeVariableName t = TypeVariableName.get("T"); TypeName typeAdapterType = ParameterizedTypeName.get(ClassName.get(TypeAdapter.class), t); TypeName typeTokenType = ParameterizedTypeName.get(ClassName.get(TypeToken.class), t); ParameterSpec gson = ParameterSpec.builder(Gson.class, "gson").build(); ParameterSpec typeToken = ParameterSpec.builder(typeTokenType, "typeToken").build(); MethodSpec createMethod = MethodSpec.methodBuilder("create") .addModifiers(PUBLIC) .addAnnotation(Override.class) .addTypeVariable(t) .returns(typeAdapterType) .addParameter(gson) .addParameter(typeToken) .addStatement("if (!$T.class.isAssignableFrom($N.getRawType())) return null", autoValueClassName, typeToken) .addStatement("return ($T) new $N($N)", typeAdapterType, typeAdapter, gson) .build(); return TypeSpec.classBuilder(customTypeAdapterFactoryName) .addModifiers(PUBLIC, STATIC, FINAL) .addSuperinterface(TypeAdapterFactory.class) .addMethod(createMethod) .build(); } public TypeSpec createTypeAdapter(ClassName className, ClassName autoValueClassName, List properties) { ClassName typeAdapterClass = ClassName.get(TypeAdapter.class); ParameterizedTypeName superClass = ParameterizedTypeName.get(typeAdapterClass, autoValueClassName); ImmutableMap adapters = createFields(properties); ParameterSpec gsonParam = ParameterSpec.builder(Gson.class, "gson").build(); MethodSpec.Builder constructor = MethodSpec.constructorBuilder() .addModifiers(PUBLIC) .addParameter(gsonParam); for (Map.Entry entry : adapters.entrySet()) { Property prop = entry.getKey(); FieldSpec field = entry.getValue(); if (entry.getKey().type instanceof ParameterizedTypeName) { constructor.addStatement("this.$N = $N.getAdapter($L)", field, gsonParam, makeType((ParameterizedTypeName) prop.type)); } else { TypeName type = prop.type.isPrimitive() ? prop.type.box() : prop.type; constructor.addStatement("this.$N = $N.getAdapter($T.class)", field, gsonParam, type); } } String customTypeAdapterClass = String.format("%sTypeAdapter", autoValueClassName.simpleName()); TypeSpec.Builder classBuilder = TypeSpec.classBuilder(customTypeAdapterClass) .addModifiers(PUBLIC, STATIC, FINAL) .addModifiers(PUBLIC, STATIC, FINAL) .superclass(superClass) .addFields(adapters.values()) .addMethod(constructor.build()) .addMethod(createWriteMethod(autoValueClassName, adapters)) .addMethod(createReadMethod(className, autoValueClassName, adapters)); return classBuilder.build(); } public MethodSpec createWriteMethod(ClassName autoValueClassName, ImmutableMap adapters) { ParameterSpec jsonWriter = ParameterSpec.builder(JsonWriter.class, "jsonWriter").build(); ParameterSpec annotatedParam = ParameterSpec.builder(autoValueClassName, "object").build(); MethodSpec.Builder writeMethod = MethodSpec.methodBuilder("write") .addAnnotation(Override.class) .addModifiers(PUBLIC) .addParameter(jsonWriter) .addParameter(annotatedParam) .addException(IOException.class); writeMethod.addStatement("$N.beginObject()", jsonWriter); for (Map.Entry entry : adapters.entrySet()) { Property prop = entry.getKey(); FieldSpec field = entry.getValue(); if (prop.nullable()) { writeMethod.beginControlFlow("if ($N.$N() != null)", annotatedParam, prop.methodName); writeMethod.addStatement("$N.name($S)", jsonWriter, prop.serializedName()); writeMethod.addStatement("$N.write($N, $N.$N())", field, jsonWriter, annotatedParam, prop.methodName); writeMethod.endControlFlow(); } else { writeMethod.addStatement("$N.name($S)", jsonWriter, prop.serializedName()); writeMethod.addStatement("$N.write($N, $N.$N())", field, jsonWriter, annotatedParam, prop.methodName); } } writeMethod.addStatement("$N.endObject()", jsonWriter); return writeMethod.build(); } public MethodSpec createReadMethod(ClassName className, ClassName autoValueClassName, ImmutableMap adapters) { ParameterSpec jsonReader = ParameterSpec.builder(JsonReader.class, "jsonReader").build(); MethodSpec.Builder readMethod = MethodSpec.methodBuilder("read") .addAnnotation(Override.class) .addModifiers(PUBLIC) .returns(autoValueClassName) .addParameter(jsonReader) .addException(IOException.class); ClassName token = ClassName.get(JsonToken.NULL.getClass()); readMethod.addStatement("$N.beginObject()", jsonReader); // add the properties Map fields = new LinkedHashMap(adapters.size()); for (Property prop : adapters.keySet()) { FieldSpec field = FieldSpec.builder(prop.type, prop.humanName).build(); fields.put(prop, field); if (field.type.isPrimitive()) { String defaultValue = getDefaultPrimitiveValue(field.type); if (defaultValue != null) { readMethod.addStatement("$T $N = $L", field.type, field, defaultValue); } else { readMethod.addStatement("$T $N = $T.valueOf(null)", field.type, field, field.type.box()); } } else { readMethod.addStatement("$T $N = null", field.type, field); } } readMethod.beginControlFlow("while ($N.hasNext())", jsonReader); FieldSpec name = FieldSpec.builder(String.class, "_name").build(); readMethod.addStatement("$T $N = $N.nextName()", name.type, name, jsonReader); // check if JSON field value is NULL readMethod.beginControlFlow("if ($N.peek() == $T.NULL)", jsonReader, token); readMethod.addStatement("$N.skipValue()", jsonReader); readMethod.addStatement("continue"); readMethod.endControlFlow(); readMethod.beginControlFlow("switch ($N)", name); for (Map.Entry entry : fields.entrySet()) { Property prop = entry.getKey(); FieldSpec field = entry.getValue(); readMethod.beginControlFlow("case $S:", prop.serializedName()); readMethod.addStatement("$N = $N.read($N)", field, adapters.get(prop), jsonReader); readMethod.addStatement("break"); readMethod.endControlFlow(); } // skip value if field is not serialized... readMethod.beginControlFlow("default:"); readMethod.addStatement("$N.skipValue()", jsonReader); readMethod.endControlFlow(); readMethod.endControlFlow(); // switch readMethod.endControlFlow(); // while readMethod.addStatement("$N.endObject()", jsonReader); StringBuilder format = new StringBuilder("return new "); format.append(className.simpleName().replaceAll("\\$", "")); format.append("("); Iterator iterator = fields.values().iterator(); while (iterator.hasNext()) { iterator.next(); format.append("$N"); if (iterator.hasNext()) format.append(", "); } format.append(")"); readMethod.addStatement(format.toString(), fields.values().toArray()); return readMethod.build(); } /** * * @param type * @return the default primitive value as a String. Returns null if unable to determine default value */ private String getDefaultPrimitiveValue(TypeName type) { String valueString = null; try { Class primitiveClass = Primitives.unwrap(Class.forName(type.box().toString())); if (primitiveClass != null) { Object defaultValue = Defaults.defaultValue(primitiveClass); if (defaultValue != null) { valueString = defaultValue.toString(); if (!Strings.isNullOrEmpty(valueString)) { switch (type.toString()) { case "double": valueString = valueString + "d"; break; case "float": valueString = valueString + "f"; break; case "long": valueString = valueString + "L"; break; } } } } } catch (ClassNotFoundException ignored) { //Swallow and return null } return valueString; } private CodeBlock makeType(ParameterizedTypeName type) { CodeBlock.Builder block = CodeBlock.builder(); block.add("new TypeToken<$T>(){}", type); return block.build(); } } auto-value-gson-0.2.2/src/test/000077500000000000000000000000001270074510200163055ustar00rootroot00000000000000auto-value-gson-0.2.2/src/test/java/000077500000000000000000000000001270074510200172265ustar00rootroot00000000000000auto-value-gson-0.2.2/src/test/java/com/000077500000000000000000000000001270074510200200045ustar00rootroot00000000000000auto-value-gson-0.2.2/src/test/java/com/ryanharter/000077500000000000000000000000001270074510200221635ustar00rootroot00000000000000auto-value-gson-0.2.2/src/test/java/com/ryanharter/auto/000077500000000000000000000000001270074510200231335ustar00rootroot00000000000000auto-value-gson-0.2.2/src/test/java/com/ryanharter/auto/value/000077500000000000000000000000001270074510200242475ustar00rootroot00000000000000auto-value-gson-0.2.2/src/test/java/com/ryanharter/auto/value/gson/000077500000000000000000000000001270074510200252155ustar00rootroot00000000000000auto-value-gson-0.2.2/src/test/java/com/ryanharter/auto/value/gson/AutoValueGsonExtensionTest.java000066400000000000000000000331461270074510200333600ustar00rootroot00000000000000package com.ryanharter.auto.value.gson; import com.google.auto.value.processor.AutoValueProcessor; import com.google.testing.compile.JavaFileObjects; import org.junit.Before; import org.junit.Test; import java.util.Arrays; import javax.tools.JavaFileObject; import static com.google.common.truth.Truth.assertAbout; import static com.google.testing.compile.JavaSourceSubjectFactory.javaSource; import static com.google.testing.compile.JavaSourcesSubjectFactory.javaSources; /** * Created by rharter on 7/20/15. */ public class AutoValueGsonExtensionTest { private JavaFileObject nullable; @Before public void setup() { nullable = JavaFileObjects.forSourceString("com.ryanharter.auto.value.gson.Nullable", "" + "package com.ryanharter.auto.value.gson;\n" + "import java.lang.annotation.Retention;\n" + "import java.lang.annotation.Target;\n" + "import static java.lang.annotation.ElementType.METHOD;\n" + "import static java.lang.annotation.ElementType.PARAMETER;\n" + "import static java.lang.annotation.ElementType.FIELD;\n" + "import static java.lang.annotation.RetentionPolicy.SOURCE;\n" + "@Retention(SOURCE)\n" + "@Target({METHOD, PARAMETER, FIELD})\n" + "public @interface Nullable {\n" + "}"); } @Test public void simple() { JavaFileObject source = JavaFileObjects.forSourceString("test.Test", "" + "package test;\n" + "import com.google.gson.annotations.SerializedName;\n" + "import com.ryanharter.auto.value.gson.Nullable;\n" + "import com.google.auto.value.AutoValue;\n" + "import java.util.Map;\n" + "import java.util.Set;\n" + "@AutoValue public abstract class Test {\n" // Reference type + "public abstract String a();\n" // Array type + "public abstract int[] b();\n" // Primitive type + "public abstract int c();\n" // SerializedName + "@SerializedName(\"_D\") public abstract String d();\n" // Nullable type + "@Nullable abstract String e();\n" // Parametrized type, multiple parameters + "public abstract Map f();\n" // Parametrized type, single parameter + "public abstract Set g();\n" // Nested parameterized type + "public abstract Map> h();\n" + " @AutoValue.Builder public static abstract class Builder {\n" + " public abstract Builder a(String a);\n" + " public abstract Builder b(int[] b);\n" + " public abstract Builder c(int c);\n" + " public abstract Builder d(String d);\n" + " public abstract Builder e(String e);\n" + " public abstract Builder f(Map f);\n" + " public abstract Builder g(Set g);\n" + " public abstract Builder h(Map> h);\n" + " public abstract Test build();\n" + " }\n" + "}\n" ); JavaFileObject expected = JavaFileObjects.forSourceString("test/AutoValue_Test", "" + "package test;\n" + "\n" + "import com.google.gson.Gson;\n" + "import com.google.gson.TypeAdapter;\n" + "import com.google.gson.TypeAdapterFactory;\n" + "import com.google.gson.reflect.TypeToken;\n" + "import com.google.gson.stream.JsonReader;\n" + "import com.google.gson.stream.JsonToken;\n" + "import com.google.gson.stream.JsonWriter;\n" + "import java.io.IOException;\n" + "import java.lang.Integer;\n" + "import java.lang.Number;\n" + "import java.lang.Override;\n" + "import java.lang.String;\n" + "import java.util.Map;\n" + "import java.util.Set;\n" + "\n" + "final class AutoValue_Test extends $AutoValue_Test {\n" + " AutoValue_Test(String a, int[] b, int c, String d, String e, Map f, Set g, Map> h) {\n" + " super(a, b, c, d, e, f, g, h);\n" + " }\n" + "\n" + " public static TestTypeAdapterFactory typeAdapterFactory() {\n" + " return new TestTypeAdapterFactory();\n" + " }\n" + "\n" + " public static final class TestTypeAdapterFactory implements TypeAdapterFactory {\n" + " @Override\n" + " public TypeAdapter create(Gson gson, TypeToken typeToken) {\n" + " if (!Test.class.isAssignableFrom(typeToken.getRawType())) return null;\n" + " return (TypeAdapter) new TestTypeAdapter(gson);\n" + " }\n" + " }\n" + "\n" + " public static final class TestTypeAdapter extends TypeAdapter {\n" + " private final TypeAdapter aAdapter;\n" + " private final TypeAdapter bAdapter;\n" + " private final TypeAdapter cAdapter;\n" + " private final TypeAdapter dAdapter;\n" + " private final TypeAdapter eAdapter;\n" + " private final TypeAdapter> fAdapter;\n" + " private final TypeAdapter> gAdapter;\n" + " private final TypeAdapter>> hAdapter;\n" + " public TestTypeAdapter(Gson gson) {\n" + " this.aAdapter = gson.getAdapter(String.class);\n" + " this.bAdapter = gson.getAdapter(int[].class);\n" + " this.cAdapter = gson.getAdapter(Integer.class);\n" + " this.dAdapter = gson.getAdapter(String.class);\n" + " this.eAdapter = gson.getAdapter(String.class);\n" + " this.fAdapter = gson.getAdapter(new TypeToken>(){});\n" + " this.gAdapter = gson.getAdapter(new TypeToken>(){});\n" + " this.hAdapter = gson.getAdapter(new TypeToken>>(){});\n" + " }\n" + " @Override\n" + " public void write(JsonWriter jsonWriter, Test object) throws IOException {\n" + " jsonWriter.beginObject();\n" + " jsonWriter.name(\"a\");\n" + " aAdapter.write(jsonWriter, object.a());\n" + " jsonWriter.name(\"b\");\n" + " bAdapter.write(jsonWriter, object.b());\n" + " jsonWriter.name(\"c\");\n" + " cAdapter.write(jsonWriter, object.c());\n" + " jsonWriter.name(\"_D\");\n" + " dAdapter.write(jsonWriter, object.d());\n" + " if (object.e() != null) {\n" + " jsonWriter.name(\"e\");\n" + " eAdapter.write(jsonWriter, object.e());\n" + " }\n" + " jsonWriter.name(\"f\");\n" + " fAdapter.write(jsonWriter, object.f());\n" + " jsonWriter.name(\"g\");\n" + " gAdapter.write(jsonWriter, object.g());\n" + " jsonWriter.name(\"h\");\n" + " hAdapter.write(jsonWriter, object.h());\n" + " jsonWriter.endObject();\n" + " }\n" + " @Override\n" + " public Test read(JsonReader jsonReader) throws IOException {\n" + " jsonReader.beginObject();\n" + " String a = null;\n" + " int[] b = null;\n" + " int c = 0;\n" + " String d = null;\n" + " String e = null;\n" + " Map f = null;\n" + " Set g = null;\n" + " Map> h = null;\n" + " while (jsonReader.hasNext()) {\n" + " String _name = jsonReader.nextName();\n" + " if (jsonReader.peek() == JsonToken.NULL) {\n" + " jsonReader.skipValue();\n" + " continue;\n" + " }\n" + " switch (_name) {\n" + " case \"a\": {\n" + " a = aAdapter.read(jsonReader);\n" + " break;\n" + " }\n" + " case \"b\": {\n" + " b = bAdapter.read(jsonReader);\n" + " break;\n" + " }\n" + " case \"c\": {\n" + " c = cAdapter.read(jsonReader);\n" + " break;\n" + " }\n" + " case \"_D\": {\n" + " d = dAdapter.read(jsonReader);\n" + " break;\n" + " }\n" + " case \"e\": {\n" + " e = eAdapter.read(jsonReader);\n" + " break;\n" + " }\n" + " case \"f\": {\n" + " f = fAdapter.read(jsonReader);\n" + " break;\n" + " }\n" + " case \"g\": {\n" + " g = gAdapter.read(jsonReader);\n" + " break;\n" + " }\n" + " case \"h\": {\n" + " h = hAdapter.read(jsonReader);\n" + " break;\n" + " }\n" + " default: {\n" + " jsonReader.skipValue();\n" + " }\n" + " }\n" + " }\n" + " jsonReader.endObject();\n" + " return new AutoValue_Test(a, b, c, d, e, f, g, h);\n" + " }\n" + " }\n" + "}" ); assertAbout(javaSources()) .that(Arrays.asList(nullable, source)) .processedWith(new AutoValueProcessor()) .compilesWithoutError() .and() .generatesSources(expected); } @Test public void propertyMethodReferencedWithPrefix() { JavaFileObject source = JavaFileObjects.forSourceString("test.Test", "" + "package test;\n" + "import com.google.auto.value.AutoValue;\n" + "@AutoValue public abstract class Test {\n" + " public abstract String getName();\n" + " public abstract boolean isAwesome();\n" + "}" ); JavaFileObject expected = JavaFileObjects.forSourceString("test/AutoValue_Test", "" + "package test;\n" + "\n" + "import com.google.gson.Gson;\n" + "import com.google.gson.TypeAdapter;\n" + "import com.google.gson.TypeAdapterFactory;\n" + "import com.google.gson.reflect.TypeToken;\n" + "import com.google.gson.stream.JsonReader;\n" + "import com.google.gson.stream.JsonToken;\n" + "import com.google.gson.stream.JsonWriter;\n" + "import java.io.IOException;\n" + "import java.lang.Boolean;\n" + "import java.lang.Override;\n" + "import java.lang.String;\n" + "\n" + "final class AutoValue_Test extends $AutoValue_Test {\n" + " AutoValue_Test(String name, boolean awesome) {\n" + " super(name, awesome);\n" + " }\n" + "\n" + " public static TestTypeAdapterFactory typeAdapterFactory() {\n" + " return new TestTypeAdapterFactory();\n" + " }\n" + "\n" + " public static final class TestTypeAdapterFactory implements TypeAdapterFactory {\n" + " @Override\n" + " public TypeAdapter create(Gson gson, TypeToken typeToken) {\n" + " if (!Test.class.isAssignableFrom(typeToken.getRawType())) return null;\n" + " return (TypeAdapter) new TestTypeAdapter(gson);\n" + " }\n" + " }\n" + "\n" + " public static final class TestTypeAdapter extends TypeAdapter {\n" + " private final TypeAdapter nameAdapter;\n" + " private final TypeAdapter awesomeAdapter;\n" + " public TestTypeAdapter(Gson gson) {\n" + " this.nameAdapter = gson.getAdapter(String.class);\n" + " this.awesomeAdapter = gson.getAdapter(Boolean.class);\n" + " }\n" + " @Override\n" + " public void write(JsonWriter jsonWriter, Test object) throws IOException {\n" + " jsonWriter.beginObject();\n" + " jsonWriter.name(\"name\");\n" + " nameAdapter.write(jsonWriter, object.getName());\n" + " jsonWriter.name(\"awesome\");\n" + " awesomeAdapter.write(jsonWriter, object.isAwesome());\n" + " jsonWriter.endObject();\n" + " }\n" + " @Override\n" + " public Test read(JsonReader jsonReader) throws IOException {\n" + " jsonReader.beginObject();\n" + " String name = null;\n" + " boolean awesome = false;\n" + " while (jsonReader.hasNext()) {\n" + " String _name = jsonReader.nextName();\n" + " if (jsonReader.peek() == JsonToken.NULL) {\n" + " jsonReader.skipValue();\n" + " continue;\n" + " }\n" + " switch (_name) {\n" + " case \"name\": {\n" + " name = nameAdapter.read(jsonReader);\n" + " break;\n" + " }\n" + " case \"awesome\": {\n" + " awesome = awesomeAdapter.read(jsonReader);\n" + " break;\n" + " }\n" + " default: {\n" + " jsonReader.skipValue();\n" + " }\n" + " }\n" + " }\n" + " jsonReader.endObject();\n" + " return new AutoValue_Test(name, awesome);\n" + " }\n" + " }\n" + "}"); assertAbout(javaSource()) .that(source) .processedWith(new AutoValueProcessor()) .compilesWithoutError() .and() .generatesSources(expected); } }