Modifier and Type | Class and Description |
---|---|
pack-priv abstract static class | Exposer.BaseMethodSpec
A specialisation of |
pack-priv abstract static class | Exposer.CallableSpec
Specification in which we assemble information about a method in advance of creating a method descriptor or other callable. |
pack-priv static class | Exposer.MethodSpec
Specification in which we assemble information about a Python instance method in advance of creating a method definition or method descriptor. |
pack-priv abstract static class | Exposer.Spec
The base of classes that describe a named, built-in object, during the exposure process. |
pack-priv static class | Exposer.StaticMethodSpec
Specification in which we assemble information about a Python
static method in advance of creating a method definition
|
Modifier and Type | Field and Description |
---|---|
private static final String | |
pack-priv final Set | methodSpecs
The table of intermediate descriptions for methods (instance, static and class). |
pack-priv final Map | specs
The index of intermediate descriptions by name, in which we may locate specifications already made or begun, using the name. |
Access | Constructor and Description |
---|---|
protected |
Modifier and Type | Method and Description |
---|---|
pack-priv void | addMethodSpec(Method
method annotated meth, Exposed.annotation encountered annoProcess an annotation that identifies a method of a Python type or module defined in Java as one to be exposed to Python, into a specification for a method descriptor, and add it to the table of specifications by name. |
pack-priv < the type of MS extends Exposer.Spec being added or added to. | addSpec(Method
the method being adding to the m, String MS specified in the annotation or name, Function<Exposer.null to the cast,MS if possible or null constructor for an makeSpec, Consumer<MS> MS function to add the addSpec, BiConsumer<MS, Method> MS to the proper listfunction to update the addMethod)MS with a methodA helper that avoids repeating nearly the same code for adding
each particular sub-class of |
pack-priv void | addStaticMethodSpec(Method
method annotated meth, Exposed.annotation encountered annoProcess an annotation that identifies a method of a Python type or module defined in Java as one to be exposed to Python, into a specification for a method descriptor, and add it to the table of specifications by name. |
pack-priv static InterpreterError | Returns: the required errorbeing defined name, Member field or method annotated member, Exposer.of the new entry apparently requested newSpec,of the inconsistent, existing entry priorSpecCreate an exception with a message along the lines "'NAME', already exposed as SPEC, cannot be NEW_SPEC" where the place-holders are filled from the corresponding arguments (or their names or type names). |
pack-priv static ModuleExposer | Returns: exposure resultto introspect for members definingClass)On behalf of the given module defined in Java, build a description of the attributes discovered by introspection of the class provided. |
pack-priv static TypeExposer | Returns: a type exposer able to deliver the attributesto which these attributes apply type, Class<?> to introspect for members definingClass, Class<?> additional class to introspect for members (or
methodClass)null )On behalf of the given type defined in Java, build a description of the attributes discovered by introspection of the class (or classes) provided. |
pack-priv abstract ScopeKind | |
pack-priv void | scanJavaMethods(Class<?>
to introspect for definitions defsClass)Add to |
pack-priv static Collection | Returns: super-classes descending toc given ending class c)Walk down to a given class through all super-classes that might contain items to expose. |