@Member
annotations) to get and optionally set or delete
the value, with default type conversions.
Modifier and Type | Class and Description |
---|---|
private static class | |
private static class | |
private static class | PyMemberDescr._Object
An |
private static class | PyMemberDescr._String
A string attribute that may be deleted (represented by
|
pack-priv static enum | PyMemberDescr.Flag
Acceptable values in the |
private abstract static class | PyMemberDescr.Reference
Behaviour for reference types. |
Modifier and Type | Field and Description |
---|---|
pack-priv String | doc
Documentation string for the member (or |
protected final EnumSet | flags
Attributes controlling access and audit. |
pack-priv VarHandle | handle
Reference to the field (offset) to access. |
pack-priv static final PyType | TYPE
The type of Python object this class implements. |
private static final String |
Access | Constructor and Description |
---|---|
pack-priv | PyMemberDescr(PyType
Python type containing this member objclass, String by which the member is known to Python name, VarHandle to the Java member handle, EnumSet<PyMemberDescr.characteristics controlling access flags,documentation string doc)Construct a |
Modifier and Type | Method and Description |
---|---|
pack-priv void | __delete__(Object
object on which the attribute is sought obj)Implements abstract org. __delete__ special method of the Python descriptor
protocol, implementing del obj.name .
|
pack-priv Object | __get__(Object
object on which the attribute is sought or
obj, PyType null is ignored type)Implements abstract org. __get__ special method of the Python descriptor
protocol, implementing obj.name or possibly
type.name .
|
private Object | |
pack-priv void | __set__(Object
object on which the attribute is sought obj, Object to assign (not value)null )Implements abstract org. __set__ special method of the Python descriptor
protocol, implementing obj.name = value .
|
protected void | check(Object
target object (non-null argument to obj)__get__ )Overrides org. descr.__get__(obj, type) has been called on this
descriptor.
|
protected void | checkDelete(Object
target object (argument to obj)__delete__ )Overrides org. descr.__delete__(obj) has been called on this descriptor.
|
protected void | checkSet(Object
target object (argument to obj)__set__ )Overrides org. descr.__set__(obj, value) has been called on this
descriptor.
|
protected void | |
pack-priv static PyMemberDescr | Returns: descriptor for access to the fieldPython type that owns the descriptor objclass, String by which member known externally name, Field field to expose through this descriptor field, MethodHandles.authorisation to access fields lookup,supplying additional characteristics flags,documentation string (may be doc)null )Create a |
protected abstract Object | |
pack-priv static Object | |
protected abstract void | |
private static VarHandle |
doc | back to summary |
---|---|
pack-priv String doc Documentation string for the member (or |
flags | back to summary |
---|---|
protected final EnumSet<PyMemberDescr. Attributes controlling access and audit. (In CPython, the
RESTRICTED forms cause a call to |
handle | back to summary |
---|---|
pack-priv VarHandle handle Reference to the field (offset) to access. |
TYPE | back to summary |
---|---|
pack-priv static final PyType TYPE The type of Python object this class implements. |
UNSUPPORTED_TYPE | back to summary |
---|---|
private static final String UNSUPPORTED_TYPE |
PyMemberDescr | back to summary |
---|---|
pack-priv PyMemberDescr(PyType objclass, String name, VarHandle handle, EnumSet<PyMemberDescr. Construct a |
__delete__ | back to summary |
---|---|
pack-priv void __delete__(Object obj) throws TypeError, Throwable Implements abstract org. Doc from org. The |
__get__ | back to summary |
---|---|
pack-priv Object __get__(Object obj, PyType type) Implements abstract org. Doc from org. The |
__repr__ | back to summary |
---|---|
private Object __repr__()
|
__set__ | back to summary |
---|---|
pack-priv void __set__(Object obj, Object value) throws TypeError, Throwable Implements abstract org. Doc from org. The |
check | back to summary |
---|---|
protected void check(Object obj) throws TypeError Overrides org. Doc from org.
Implementation Note Compare CPython |
checkDelete | back to summary |
---|---|
protected void checkDelete(Object obj) throws TypeError Overrides org.
|
checkSet | back to summary |
---|---|
protected void checkSet(Object obj) throws TypeError Overrides org.
|
delete | back to summary |
---|---|
protected void delete(Object obj) throws TypeError, AttributeError A method to delete Implementation Note The default implementation is correct for primitive
types (i.e. the majority) in raising
|
forField | back to summary |
---|---|
pack-priv static PyMemberDescr forField(PyType objclass, String name, Field field, MethodHandles. Create a
|
get | back to summary |
---|---|
protected abstract Object get(Object obj) throws AttributeError A method to get |
member_get_doc | back to summary |
---|---|
pack-priv static Object member_get_doc(PyMemberDescr descr) |
set | back to summary |
---|---|
protected abstract void set(Object obj, Object v) throws AttributeError, TypeError, Throwable A method to set |
varHandle | back to summary |
---|---|
private static VarHandle varHandle(Field f, MethodHandles. |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
protected Object | get(Object
object to access via obj)handle (never null)Implements abstract org. o.name , with conversion from the internal
field value if necessary (which will always succeed).
|
protected void | set(Object
object to access via obj, Object handle (never null)value to assign: never null, may be value)None Implements abstract org. o.name = v , with conversion to the
internal field value if necessary.
|
_double | back to summary |
---|---|
pack-priv _double(PyType objclass, String name, VarHandle handle, EnumSet<PyMemberDescr. |
get | back to summary |
---|---|
protected Object get(Object obj) Implements abstract org. Doc from org. A method to get |
set | back to summary |
---|---|
protected void set(Object obj, Object value) throws TypeError, Throwable Implements abstract org. Doc from org. A method to set |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
protected Object | get(Object
object to access via obj)handle (never null)Implements abstract org. o.name , with conversion from the internal
field value if necessary (which will always succeed).
|
protected void | set(Object
object to access via obj, Object handle (never null)value to assign: never null, may be value)None Implements abstract org. o.name = v , with conversion to the
internal field value if necessary.
|
_int | back to summary |
---|---|
pack-priv _int(PyType objclass, String name, VarHandle handle, EnumSet<PyMemberDescr. |
get | back to summary |
---|---|
protected Object get(Object obj) Implements abstract org. Doc from org. A method to get |
set | back to summary |
---|---|
protected void set(Object obj, Object value) throws TypeError, Throwable Implements abstract org. Doc from org. A method to set |
object
attribute that may be deleted (represented by
null
in Java).
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
protected Object | get(Object
object to access via obj)handle (never null)Implements abstract org. o.name , with conversion from the internal
field value if necessary (which will always succeed).
|
protected void | set(Object
object to access via obj, Object handle (never null)value to assign: never null, may be value)None Implements abstract org. o.name = v , with conversion to the
internal field value if necessary.
|
_Object | back to summary |
---|---|
pack-priv _Object(PyType objclass, String name, VarHandle handle, EnumSet<PyMemberDescr. |
get | back to summary |
---|---|
protected Object get(Object obj) Implements abstract org. Doc from org. A method to get |
set | back to summary |
---|---|
protected void set(Object obj, Object value) throws TypeError, Throwable Implements abstract org. Doc from org. A method to set |
null
in Java).
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
protected Object | get(Object
object to access via obj)handle (never null)Implements abstract org. o.name , with conversion from the internal
field value if necessary (which will always succeed).
|
protected void | set(Object
object to access via obj, Object handle (never null)value to assign: never null, may be value)None Implements abstract org. o.name = v , with conversion to the
internal field value if necessary.
|
_String | back to summary |
---|---|
pack-priv _String(PyType objclass, String name, VarHandle handle, EnumSet<PyMemberDescr. |
get | back to summary |
---|---|
protected Object get(Object obj) Implements abstract org. Doc from org. A method to get |
set | back to summary |
---|---|
protected void set(Object obj, Object value) throws TypeError, Throwable Implements abstract org. Doc from org. A method to set |
flags
.
Modifier and Type | Field and Description |
---|---|
public static final PyMemberDescr. | |
public static final PyMemberDescr. | |
public static final PyMemberDescr. | |
public static final PyMemberDescr. |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public static PyMemberDescr. | |
public static PyMemberDescr. |
OPTIONAL | back to summary |
---|---|
public static final PyMemberDescr. |
READ_RESTRICTED | back to summary |
---|---|
public static final PyMemberDescr. |
READONLY | back to summary |
---|---|
public static final PyMemberDescr. |
WRITE_RESTRICTED | back to summary |
---|---|
public static final PyMemberDescr. |
Flag | back to summary |
---|---|
private Flag() |
valueOf | back to summary |
---|---|
public static PyMemberDescr. |
values | back to summary |
---|---|
public static PyMemberDescr. |
Modifier and Type | Field and Description |
---|---|
protected final boolean | optional
Controls what happens when the attribute implementation is
|
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
protected void | delete(Object
object to access via obj)handle (never null)Overrides org. del o.name .
|
optional | back to summary |
---|---|
protected final boolean optional Controls what happens when the attribute implementation is
|
Reference | back to summary |
---|---|
pack-priv Reference(PyType objclass, String name, VarHandle handle, EnumSet<PyMemberDescr. |
delete | back to summary |
---|---|
protected void delete(Object obj) Overrides org. Doc from org. A method to delete
If |