The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | #ifndef GENERATE_JAVA_H |
| 2 | #define GENERATE_JAVA_H |
| 3 | |
| 4 | #include "aidl_language.h" |
Joe Onorato | fdfe2ff | 2011-08-30 17:24:17 -0700 | [diff] [blame] | 5 | #include "AST.h" |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 6 | |
| 7 | #include <string> |
| 8 | |
Christopher Wiley | 1eaa9ed | 2015-08-24 14:07:32 -0700 | [diff] [blame] | 9 | using std::string; |
| 10 | using std::vector; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 11 | |
| 12 | int generate_java(const string& filename, const string& originalSrc, |
| 13 | interface_type* iface); |
| 14 | |
Joe Onorato | fdfe2ff | 2011-08-30 17:24:17 -0700 | [diff] [blame] | 15 | Class* generate_binder_interface_class(const interface_type* iface); |
| 16 | Class* generate_rpc_interface_class(const interface_type* iface); |
| 17 | |
| 18 | string gather_comments(extra_text_type* extra); |
| 19 | string append(const char* a, const char* b); |
| 20 | |
| 21 | class VariableFactory |
| 22 | { |
| 23 | public: |
| 24 | VariableFactory(const string& base); // base must be short |
| 25 | Variable* Get(Type* type); |
| 26 | Variable* Get(int index); |
| 27 | private: |
| 28 | vector<Variable*> m_vars; |
| 29 | string m_base; |
| 30 | int m_index; |
| 31 | }; |
| 32 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 33 | #endif // GENERATE_JAVA_H |
| 34 | |