Debian Codegraph @

src/main/c/jpy_jfield.h

raw symbols SCIP
1 /*
2 * Copyright 2015 Brockmann Consult GmbH
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
17 #ifndef JPY_JFIELD_H
18 #define JPY_JFIELD_H
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 #include "jpy_compat.h"
25
26 /**
27 * Python object representing a Java method. It's type is 'JMethod'.
28 */
29 typedef struct
30 {
31 PyObject_HEAD
32
33 // The declaring class.
34 JPy_JType* declaringClass;
35 // Field name.
36 PyObject* name;
37 // Field type.
38 JPy_JType* type;
39 // Method is static?
40 char isStatic;
41 // Method is final?
42 char isFinal;
43 // Field ID retrieved from JNI.
44 jfieldID fid;
45 }
46 JPy_JField;
47
48 /**
49 * The Python 'JMethod' type singleton.
50 */
51 extern PyTypeObject JField_Type;
52
53 JPy_JField* JField_New(JPy_JType* declaringType, PyObject* fieldKey, JPy_JType* fieldType, jboolean isStatic, jboolean isFinal, jfieldID fid);
54 void JField_Del(JPy_JField* field);
55
56 #ifdef __cplusplus
57 } /* extern "C" */
58 #endif
59
60 #endif /* !JPY_JFIELD_H */