Modifier and Type | Class and Description |
---|---|
pack-priv static class | TypeExposer.GetSetSpec
A specialisation of |
pack-priv static class | TypeExposer.MemberSpec
A specialisation of |
pack-priv static class | TypeExposer.WrapperSpec
Specification in which we assemble information about a Python special method in advance of creating a special method descriptor. |
Modifier and Type | Field and Description |
---|---|
pack-priv final Set | getSetSpecs
The table of intermediate descriptions for get-sets. |
pack-priv final Set | memberSpecs
The table of intermediate descriptions for members. |
pack-priv final PyType | type
Type for which attributes are to be exposed (or |
Access | Constructor and Description |
---|---|
pack-priv | TypeExposer(PyType
being exposed type)Construct the |
Modifier and Type | Method and Description |
---|---|
private void | addDeleter(Method
method annotated m, Exposed.annotation encountered annoProcess a method annotated as an exposed attribute get method,
into a specification, and find a |
private void | addGetter(Method
method annotated m, Exposed.annotation encountered annoProcess a method annotated as an exposed attribute get method,
into a specification, and find a |
pack-priv void | addMemberSpec(Field
field annotated f, Exposed.annotation encountered annoProcess an annotated field, that describes an exposed attribute, into a specification, and add it to the table of specifications by name. |
private void | addSetter(Method
method annotated m, Exposed.annotation encountered annoProcess a method annotated as an exposed attribute set method,
into a specification, and find a |
private void | addWrapperSpec(Method
method annotated meth, Slot annotation encountered slot)Process a method that matches a slot name to a descriptor specification and add it to the table of specifications by name. |
pack-priv static Map | Returns: attributes defined (in the order first encountered)authorisation to access methods lookup,to introspect for binary operations binops, PyType to which these descriptors apply type)Create a table of |
private static void | binopTableAdd(Map<Slot, Operations.
the method table to add to defs,being matched slot, Method implementing method m, MethodHandles.authorisation to access fields lookup,class defining class-specific binary operations binops, PyType to which these belong type)Add a method handle to the table, verifying that the method type
produced is compatible with the |
private static TypeExposer. | Returns: spec or null to cast specCast an arbitrary |
pack-priv void | |
pack-priv ScopeKind | |
pack-priv void | |
pack-priv void | scanJavaFields(Class<?>
to introspect for field definitions defsClass)Add to |
pack-priv void | scanJavaMethods(Class<?>
to introspect for methods defsClass)Overrides org. specs , definitions based on methods found in the
given class and either annotated for exposure or having the name
of a special method.
|
public String |