-
Notifications
You must be signed in to change notification settings - Fork 31
/
jni_bind.h
112 lines (94 loc) · 3.86 KB
/
jni_bind.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
/*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef JNI_BIND_JNI_BIND_H_
#define JNI_BIND_JNI_BIND_H_
// IWYU pragma: begin_exports
#include "implementation/configuration.h" // IWYU pragma: export
namespace jni {
static constexpr Configuration kConfig{
.release_class_ids_on_teardown_ = false,
.release_method_ids_on_teardown_ = false,
};
} // namespace jni
// IWYU pragma: begin_exports
#include "implementation/jni_helper/fake_test_constants.h"
#include "jni_dep.h"
////////////////////////////////////////////////////////////////////////////////
// Phase 0 Compilation: JNI Bind bootstap, no class definitions permitted.
////////////////////////////////////////////////////////////////////////////////
// JNI Corpus.
#include "metaprogramming/corpus.h"
#include "metaprogramming/corpus_tag.h"
// JNI Porcelain Helpers.
#include "implementation/jni_helper/field_value.h"
#include "implementation/jni_helper/invoke_static.h"
#include "implementation/jni_helper/jni_env.h"
#include "implementation/jni_helper/jni_helper.h"
#include "implementation/jni_helper/lifecycle.h"
#include "implementation/jni_helper/static_field_value.h"
// Headers for static definitions.
#include "implementation/array.h"
#include "implementation/array_type_conversion.h"
#include "implementation/class.h"
#include "implementation/class_loader.h"
#include "implementation/constructor.h"
#include "implementation/default_class_loader.h"
#include "implementation/extends.h"
#include "implementation/field.h"
#include "implementation/forward_declarations.h"
#include "implementation/id.h"
#include "implementation/id_type.h"
#include "implementation/jni_type.h"
#include "implementation/jvm.h"
#include "implementation/loaded_by.h"
#include "implementation/method.h"
#include "implementation/no_idx.h"
#include "implementation/params.h"
#include "implementation/proxy_convenience_aliases.h"
#include "implementation/return.h"
#include "implementation/selector_static_info.h"
#include "implementation/self.h"
#include "implementation/static.h"
#include "implementation/static_ref.h"
#include "implementation/string_ref.h"
#include "implementation/supported_class_set.h"
#include "implementation/thread_guard.h"
// Convenience headers for system libraries.
#include "class_defs/java_lang_classes.h"
#include "class_defs/java_lang_exception.h"
#include "class_defs/java_lang_throwable.h"
#include "class_defs/java_util_array_list.h"
#include "class_defs/java_util_classes.h"
// Headers for dynamic definitions.
#include "implementation/array_view.h"
#include "implementation/global_class_loader.h"
#include "implementation/global_object.h"
#include "implementation/global_string.h"
#include "implementation/jvm_ref.h"
#include "implementation/local_array.h"
#include "implementation/local_array_string.h"
#include "implementation/local_class_loader.h"
#include "implementation/local_object.h"
#include "implementation/local_string.h"
#include "implementation/promotion_mechanics.h"
#include "implementation/promotion_mechanics_tags.h"
#include "implementation/ref_base.h"
////////////////////////////////////////////////////////////////////////////////
// Phase 1 Compilation: JNI Bind definitions permissible.
////////////////////////////////////////////////////////////////////////////////
#include "implementation/find_class_fallback.h"
// IWYU pragma: end_exports
#endif // JNI_BIND_JNI_BIND_H_