class documentation

class OssiTypeResolver(BaseTypeResolver):

View In Hierarchy

A class to resolve types.

Some types need to reference forward-declared types to avoid eg. cyclic definitions. The resolver allows to efficiently resolve these types if needs be.

Method __init__ Initialize a new instance of this class from a low-level connection and a binary id.
Method resolve Resolve a type from its name.
Method resolve_multiples Resolve all the types with the same name.
Method _assert_debug_binary_parsed Ensure that the debug object associated with this binary could be found
Method _resolve_maybe_type_description Resolve a type from its low level description.
Instance Variable _binary_id Undocumented
Instance Variable _rvn Undocumented
Instance Variable _types_cache Undocumented
def __init__(self, _rvn, binary_id):

Initialize a new instance of this class from a low-level connection and a binary id.

Warnings

This object is not currently meant to be constructed directly.

Parameters
_rvn:_reven_api.reven_connectionUndocumented
binary_id:strUndocumented
def resolve(self, type_name):

Resolve a type from its name.

Information

Parameters
type_name:strUndocumented
Returns
TypeUndocumented
Raises
RuntimeErrorif the debug object associated with this binary could not be found, or if the resolved type is None.
def resolve_multiples(self, type_name):

Resolve all the types with the same name.

Information

Parameters
type_name:strUndocumented
Returns
_List[Type]Undocumented
Raises
RuntimeErrorif the debug object associated with this binary could not be found, or if one of the resolved type is None.
def _assert_debug_binary_parsed(self):

Ensure that the debug object associated with this binary could be found

Information

Raises
RuntimeErrorif the debug object associated with this binary could not be found
def _resolve_maybe_type_description(self, maybe_type_description):

Resolve a type from its low level description.

Information

Parameters
maybe_type_description:_reven_api.MaybeTypeDescriptionUndocumented
Returns
TypeUndocumented
Raises
RuntimeErrorif the debug object associated with this binary could not be found, or if the resolved type is None.
_binary_id =

Undocumented

_rvn =

Undocumented

_types_cache: _Dict[str, _List[Type]] =

Undocumented