blob: c665922829429cd2d6bd47f17baebb92e2a57e0a [file] [log] [blame]
Christopher Wiley2f774172015-08-30 10:57:07 -07001#ifndef AIDL_GENERATE_JAVA_H_
2#define AIDL_GENERATE_JAVA_H_
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08003
4#include "aidl_language.h"
Joe Onoratofdfe2ff2011-08-30 17:24:17 -07005#include "AST.h"
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08006
7#include <string>
8
Christopher Wiley1eaa9ed2015-08-24 14:07:32 -07009using std::string;
10using std::vector;
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080011
12int generate_java(const string& filename, const string& originalSrc,
13 interface_type* iface);
14
Joe Onoratofdfe2ff2011-08-30 17:24:17 -070015Class* generate_binder_interface_class(const interface_type* iface);
Joe Onoratofdfe2ff2011-08-30 17:24:17 -070016
17string gather_comments(extra_text_type* extra);
18string append(const char* a, const char* b);
19
20class VariableFactory
21{
22public:
23 VariableFactory(const string& base); // base must be short
24 Variable* Get(Type* type);
25 Variable* Get(int index);
26private:
27 vector<Variable*> m_vars;
28 string m_base;
29 int m_index;
30};
31
Christopher Wiley2f774172015-08-30 10:57:07 -070032#endif // AIDL_GENERATE_JAVA_H_
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080033