class documentation

class JSONableBoundMethod(Generic[JSONableSelf]): (source)

View In Hierarchy

A bound method that conforms to JSONable and can be serialized and deserialized.

Method __call__ Call this bound method's function with its instance as self.
Method toJSON Convert this method's instance to a JSON-dumpable dict.
Method typeCodeForJSON Combine the bound method's name with its owning class's type code.
Instance Variable descriptor the descriptor that this bound method is binding, created by JSONRegistry.method.
Instance Variable instance the instance that this bound method is bound to; a JSONableInstance of some kind.
def __call__(self): (source)

Call this bound method's function with its instance as self.

def toJSON(self, registry: JSONRegistry[BootstrapT]) -> JSONObject: (source)

Convert this method's instance to a JSON-dumpable dict.

def typeCodeForJSON(self) -> str: (source)

Combine the bound method's name with its owning class's type code.

the descriptor that this bound method is binding, created by JSONRegistry.method.

the instance that this bound method is bound to; a JSONableInstance of some kind.