blob: 4e797436da0bf6c5f002e05633fdaf3cbcd978fe [file] [log] [blame]
Christopher Wiley2f774172015-08-30 10:57:07 -07001#ifndef AIDL_GENERATE_JAVA_H_
2#define AIDL_GENERATE_JAVA_H_
Adam Lesinski282e1812014-01-23 18:17:42 -08003
4#include "aidl_language.h"
5#include "AST.h"
6
7#include <string>
8
9using namespace std;
10
11int generate_java(const string& filename, const string& originalSrc,
12 interface_type* iface);
13
14Class* generate_binder_interface_class(const interface_type* iface);
Adam Lesinski282e1812014-01-23 18:17:42 -080015
16string gather_comments(extra_text_type* extra);
17string append(const char* a, const char* b);
18
19class VariableFactory
20{
21public:
22 VariableFactory(const string& base); // base must be short
23 Variable* Get(Type* type);
24 Variable* Get(int index);
25private:
26 vector<Variable*> m_vars;
27 string m_base;
28 int m_index;
29};
30
Christopher Wiley2f774172015-08-30 10:57:07 -070031#endif // AIDL_GENERATE_JAVA_H_
Adam Lesinski282e1812014-01-23 18:17:42 -080032