yahoo / squidb

SquiDB is a SQLite database library for Android and iOS
https://github.com/yahoo/squidb/wiki
Apache License 2.0
1.31k stars 132 forks source link

BasicPropertyGenerator getter/setter enhancements #218

Closed sbosley closed 8 years ago

sbosley commented 8 years ago

This PR adds some enhancements/new hooks to BasicPropertyGenerator that allow customizing the MethodDeclarationParams for the generated getter and setter. This could be used e.g. to generate getters/setters with different access modifiers or that throw checked exceptions. The writeGetterBody/writeSetterBody hooks have also been updated to have as an argument the params used to generate the method, so that all relevant information for generating the accessor is available.

jdkoren commented 8 years ago

LGTM