geneticengine.grammar.metahandlers.base ======================================= .. py:module:: geneticengine.grammar.metahandlers.base Attributes ---------- .. autoapisummary:: geneticengine.grammar.metahandlers.base.T Exceptions ---------- .. autoapisummary:: geneticengine.grammar.metahandlers.base.SynthesisException Classes ------- .. autoapisummary:: geneticengine.grammar.metahandlers.base.MetaHandlerGenerator Module Contents --------------- .. py:data:: T .. py:exception:: SynthesisException Bases: :py:obj:`Exception` Common base class for all non-exit exceptions. Initialize self. See help(type(self)) for accurate signature. .. py:class:: MetaHandlerGenerator Bases: :py:obj:`abc.ABC` MetaHandlers are type refinements. They override the generation procedure of the base type. .. py:method:: validate(Any) :abstractmethod: .. py:method:: generate(random, grammar, base_type, rec, dependent_values, parent_values) :abstractmethod: Generates an instance of type base_type, according to some criterion. :param Source r: Random source for generation :param Grammar g: Grammar to follow in the generation :param Callable[[int, Type], Any] rec: The method to generate a new instance of type and maximum depth d :param int depth: the current depth budget :param Type base_type: The inner type being annotated :param str argname: The name of the field of the parent object which is being generated :param Dict[str, Type] context: The names and types of all fields in the parent object :param Dict[str, Type] dependent_values: The names and values of all previous fields in the parent object .. py:method:: get_dependencies()