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