-
Notifications
You must be signed in to change notification settings - Fork 226
Expand file tree
/
Copy pathPyTypes.java
More file actions
117 lines (75 loc) · 3.96 KB
/
PyTypes.java
File metadata and controls
117 lines (75 loc) · 3.96 KB
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
113
114
115
116
117
package org.python.expose.generate;
import org.objectweb.asm.Type;
import org.python.core.Py;
import org.python.core.PyBoolean;
import org.python.core.PyBuiltinCallable;
import org.python.core.PyBuiltinMethod;
import org.python.core.PyBuiltinMethodNarrow;
import org.python.core.PyDataDescr;
import org.python.core.PyException;
import org.python.core.PyFloat;
import org.python.core.PyInteger;
import org.python.core.PyLong;
import org.python.core.PyNewWrapper;
import org.python.core.PyObject;
import org.python.core.PyString;
import org.python.core.PyType;
import org.python.core.ThreadState;
import org.python.expose.ExposeAsSuperclass;
import org.python.expose.ExposedClassMethod;
import org.python.expose.ExposedDelete;
import org.python.expose.ExposedGet;
import org.python.expose.ExposedMethod;
import org.python.expose.ExposedNew;
import org.python.expose.ExposedSet;
import org.python.expose.ExposedType;
import org.python.expose.TypeBuilder;
/**
* Type objects used by exposed generation.
*/
public interface PyTypes {
// Core Jython types
public static final Type PYOBJ = Type.getType(PyObject.class);
public static final Type APYOBJ = Type.getType(PyObject[].class);
public static final Type PYTYPE = Type.getType(PyType.class);
public static final Type ASSUPER = Type.getType(ExposeAsSuperclass.class);
public static final Type PYEXCEPTION = Type.getType(PyException.class);
public static final Type PY = Type.getType(Py.class);
public static final Type PYSTR = Type.getType(PyString.class);
public static final Type PYBOOLEAN = Type.getType(PyBoolean.class);
public static final Type PYINTEGER = Type.getType(PyInteger.class);
public static final Type PYLONG = Type.getType(PyLong.class);
public static final Type PYFLOAT = Type.getType(PyFloat.class);
public static final Type PYNEWWRAPPER = Type.getType(PyNewWrapper.class);
public static final Type BUILTIN_METHOD = Type.getType(PyBuiltinMethod.class);
public static final Type ABUILTIN_METHOD = Type.getType(PyBuiltinMethod[].class);
public static final Type BUILTIN_METHOD_NARROW = Type.getType(PyBuiltinMethodNarrow.class);
public static final Type BUILTIN_FUNCTION = Type.getType(PyBuiltinCallable.class);
public static final Type ABUILTIN_FUNCTION = Type.getType(PyBuiltinCallable[].class);
public static final Type DATA_DESCR = Type.getType(PyDataDescr.class);
public static final Type ADATA_DESCR = Type.getType(PyDataDescr[].class);
public static final Type BUILTIN_INFO = Type.getType(PyBuiltinCallable.Info.class);
public static final Type THREAD_STATE = Type.getType(ThreadState.class);
// Exposer Jython types
public static final Type EXPOSED_TYPE = Type.getType(ExposedType.class);
public static final Type EXPOSED_METHOD = Type.getType(ExposedMethod.class);
public static final Type EXPOSED_CLASS_METHOD = Type.getType(ExposedClassMethod.class);
public static final Type EXPOSED_NEW = Type.getType(ExposedNew.class);
public static final Type EXPOSED_GET = Type.getType(ExposedGet.class);
public static final Type EXPOSED_SET = Type.getType(ExposedSet.class);
public static final Type EXPOSED_DELETE = Type.getType(ExposedDelete.class);
public static final Type TYPEBUILDER = Type.getType(TypeBuilder.class);
// Java types
public static final Type OBJECT = Type.getType(Object.class);
public static final Type STRING = Type.getType(String.class);
public static final Type ASTRING = Type.getType(String[].class);
public static final Type STRING_BUILDER = Type.getType(StringBuilder.class);
public static final Type CLASS = Type.getType(Class.class);
// Primitives
public static final Type BYTE = Type.BYTE_TYPE;
public static final Type SHORT = Type.SHORT_TYPE;
public static final Type CHAR = Type.CHAR_TYPE;
public static final Type INT = Type.INT_TYPE;
public static final Type VOID = Type.VOID_TYPE;
public static final Type BOOLEAN = Type.BOOLEAN_TYPE;
}