VettingsCache

A VettingsCache is stored as a pojo in an object to cache tests of membership against object types. It consists of two 'positive' arrays of WeakObjectTypeReferences that the owning object was found to be an instance of, and two 'negative' arrays of WeakObjectTypeReferences that the owning object was found not to be an instance of.

Author

Mark van Gulik

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

One of the two negative caches. If the object that holds this VettingsCache has a particular object type in this slot (inside a WeakObjectTypeReference), the object is known not to be an instance of that object type.

Link copied to clipboard

One of the two negative caches. If the object that holds this VettingsCache has a particular object type in this slot (inside a WeakObjectTypeReference), the object is known not to be an instance of that object type.

Link copied to clipboard

One of the two positive caches. If the object that holds this VettingsCache has a particular object type in this slot (inside a WeakObjectTypeReference), the object is known to be an instance of that object type.

Link copied to clipboard

One of the two positive caches. If the object that holds this VettingsCache has a particular object type in this slot (inside a WeakObjectTypeReference), the object is known to be an instance of that object type.

Functions

Link copied to clipboard

Test if theObject, which is instantiation of ObjectDescriptor, is an instance of objectType, which is a Mutability.SHARED instantiation of ObjectTypeDescriptor. The receiver is theObject's vettings cache, and may be updated by this test.