| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private static class | |
| private static class | |
| private static class | |
| private static class | |
| private abstract static class | |
| pack-priv static class | PyJavaType.
Constant |
| private static class | |
| private class | |
| private static class | PyJavaType.
A class containing a test that a given class is accessible to Jython, in the Modular Java sense. |
| Modifier and Type | Field and Description |
|---|---|
| private static final Set | BAD_AWT_METHODS
Deprecated methods in java.awt.* that have bean property equivalents we prefer. |
| private Set | conflicted
Other Java classes this type has MRO conflicts with. |
| private static final String | |
| private static final int | |
| private static final Set | |
| private Set | modified
The names of methods that have been added to this class. |
| private static final Class |
| Access | Constructor and Description |
|---|---|
| public | |
| pack-priv | PyJavaType(Class<?>
Java class for which this is a Python type. c)Create a Python type for a Java class that is not exposed, but may descend from
|
| pack-priv | PyJavaType(Class<?>
Java class for which this is a Python type. c, boolean true iff the class descends from PyObject isPyObject)Create a Python |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | addBeanEvents(Map<String, PyBeanEvent<?>> events)
Add the methods corresponding to a each discovered JavaBean event. |
| private void | addBeanProperties(Map<String, PyBeanProperty> props)
Add the methods corresponding to a each discovered JavaBean property. |
| private void | addCollectionProxies(Class<?>
the target class forClass)Add Python methods corresponding to the API of common Java collection types. |
| private void | addConstructors(Class<?> forClass, Constructor<?>[] constructors)
Process the given constructors defined on the target class (the |
| private void | |
| private void | addInheritedMethods(List<PyReflectedFunction>
to which reflected functions are added for further processing reflectedFuncs, Method[] of the target class methods)Add descriptors to this type's dictionary ( |
| private void | addMethods(Class<?>
ancestor of the target class baseClass, List<PyReflectedFunction> to which reflected functions are added for further processing reflectedFuncs, Map<String, PyBeanProperty> to which Java Bean properties are added for further processing props, Map<String, PyBeanEvent<?>> to which Java Bean events are added for further processing events, Method[] of the target class methods)Add descriptors to this type's dictionary ( |
| private void | |
| private void | |
| private void | |
| private void | addMethodsForSerializable()
Add special methods when this PyJavaType represents interface |
| private static Map | Returns: A map whose key is the base Java collection types and whose entry is a list of injected methods.Build a map of common Java collection base types (Map, Iterable, etc) that need to be injected with Python's equivalent types' builtin methods (__len__, __iter__, iteritems, etc). |
| private static Map | |
| private void | checkBeanMethod(Map<String, PyBeanProperty>
in which to store properties we discover props, Map<String, PyBeanEvent<?>> in which to store events we discover events, Method under consideration meth)Consider whether the given method of the current class indicates the existence of a JavaBean property or event. |
| private static <T> T | |
| private static boolean | Returns: true if the member is declared here on thefromClasssuper-class of the target of this baseClass, Member PyJavaType, or
null.of the member)forClass that might be exposed on this
PyJavaTypeTrue iff the target of this |
| private static Map | |
| private static Method | |
| private static Map | |
| pack-priv void | handleMroError(PyType.
partially processed algorithm state toMerge,output MRO (incomplete) mro)Overrides org. This method is called when the |
| private void | handleSuperMethodArgCollisions(Class<?>
of which the methods are currently being defined forClass)Methods implemented in private, protected or package protected classes, and classes not exported by their module, may not be called directly through reflection. |
| private static boolean | |
| protected void | init(Set<PyJavaType>
collects needsInners)PyJavaTypes that need further processingOverrides org. Complete the initialisation of the |
| pack-priv static boolean | Returns: true iff accessible to Jythonthe class c)Test whether a given class is accessible, meaning it is in a package exported to Jython and public (or we are ignoring accessibility). |
| private void | mergeMethods(Class<?>
class or interface parent)From a given class that is an ancestor of the Java class for which this PyJavaType is being initialised, or that is an interface implemented by it or an ancestor, process each method in the ancestor so that, if the class or interface that declares the method is public, that method becomes a method of the Python type we are constructing. |
| private static String | |
| public boolean | refersDirectlyTo(PyObject ob)
Overrides org. Implements org. Optional operation. |
| public int | traverse(Visitproc visit, Object arg)
Overrides org. Implements org. Traverses all directly contained |
| pack-priv void | |
| pack-priv void | |
| protected boolean | useMetatypeFirst(PyObject attr)
Overrides org. Returns true if the given attribute retrieved from an object's metatype should be used before looking for the object on the actual object. |
| public static PyObject |