blob: 7408ee7008705f07a8aae95fecd4be84de341165 [file] [log] [blame]
Christopher Wiley3a9da172016-01-29 11:10:49 -08001/*
2 * Copyright (C) 2016, The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Steven Moreland9fccf582018-08-27 20:36:27 -070017#pragma once
Adam Lesinskiffa16862014-01-23 18:17:42 -080018
Christopher Wiley038485e2015-09-12 11:14:14 -070019#include "aidl_language.h"
20#include "ast_java.h"
Christopher Wileya30a45e2015-10-17 10:56:59 -070021#include "io_delegate.h"
Jiyong Park2c44f072018-07-30 21:52:21 +090022#include "options.h"
23#include "type_java.h"
24
25#include <string>
Christopher Wiley038485e2015-09-12 11:14:14 -070026
Christopher Wileyfdeb0f42015-09-11 15:38:22 -070027namespace android {
28namespace aidl {
Christopher Wileydb154a52015-09-28 16:32:25 -070029namespace java {
30
Jiyong Park74595c12018-07-23 15:22:50 +090031bool generate_java(const std::string& filename, const std::string& original_src,
32 const AidlDefinedType* iface, java::JavaTypeNamespace* types,
33 const IoDelegate& io_delegate, const Options& options);
Adam Lesinskiffa16862014-01-23 18:17:42 -080034
Jiyong Park74595c12018-07-23 15:22:50 +090035android::aidl::java::Class* generate_binder_interface_class(const AidlInterface* iface,
36 java::JavaTypeNamespace* types,
37 const Options& options);
Christopher Wileydb154a52015-09-28 16:32:25 -070038
Steven Moreland5557f1c2018-07-02 13:50:23 -070039android::aidl::java::Class* generate_parcel_class(const AidlStructuredParcelable* parcel,
40 java::JavaTypeNamespace* types,
Jiyong Park74595c12018-07-23 15:22:50 +090041 const Options& options);
Steven Moreland5557f1c2018-07-02 13:50:23 -070042
Jiyong Parka6605ab2018-11-11 14:30:21 +090043std::vector<std::string> generate_java_annotations(const AidlAnnotatable& a);
44
Christopher Wileydb154a52015-09-28 16:32:25 -070045} // namespace java
Christopher Wileyfdeb0f42015-09-11 15:38:22 -070046} // namespace android
47} // namespace aidl