diff options
author | Casey Dahlin <sadmac@google.com> | 2015-10-09 18:16:45 -0700 |
---|---|---|
committer | Casey Dahlin <sadmac@google.com> | 2015-10-12 11:13:11 -0700 |
commit | 59401da7787cbc224785c0a03c30f6392445c1ec (patch) | |
tree | f91dde3592fed0393bcdc10fa42732d1559a7a84 /aidl_language.h | |
parent | ad3392747003a30928da6cd206e41f66398c2062 (diff) | |
download | android_system_tools_aidl-59401da7787cbc224785c0a03c30f6392445c1ec.tar.gz android_system_tools_aidl-59401da7787cbc224785c0a03c30f6392445c1ec.tar.bz2 android_system_tools_aidl-59401da7787cbc224785c0a03c30f6392445c1ec.zip |
Put parcelable members behind getters
Bug: 24410295
Change-Id: I28b70254c8e1846eaeab8523da5975843e86e0de
Test: Full android build
Signed-off-by: Casey Dahlin <sadmac@google.com>
Diffstat (limited to 'aidl_language.h')
-rw-r--r-- | aidl_language.h | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/aidl_language.h b/aidl_language.h index d076e94..5037c86 100644 --- a/aidl_language.h +++ b/aidl_language.h @@ -21,7 +21,6 @@ enum which_extra_text { }; struct extra_text_type { - unsigned lineno; which_extra_text which; char* data; unsigned len; @@ -29,7 +28,6 @@ struct extra_text_type { }; struct buffer_type { - unsigned lineno; unsigned token; char *data; extra_text_type* extra; @@ -166,19 +164,19 @@ class AidlDocumentItem : public AidlNode { class AidlParcelable : public AidlDocumentItem { public: - AidlParcelable() = default; + AidlParcelable(const std::string& name, unsigned line, + const std::string& package); virtual ~AidlParcelable() = default; - std::string GetName() const { return name.data; } - unsigned GetLine() const { return name.lineno; } - - buffer_type keyword_token; // only the first one - char* package; - buffer_type name; - buffer_type semicolon_token; - bool parcelable; + const std::string& GetName() const { return name_; } + unsigned GetLine() const { return line_; } + const std::string& GetPackage() const { return package_; } private: + std::string name_; + unsigned line_; + std::string package_; + DISALLOW_COPY_AND_ASSIGN(AidlParcelable); }; |