.. _f-translationclass: module ``translation.translation_class`` ======================================== .. inheritance-diagram:: pysqllike.translation.translation_class Short summary +++++++++++++ module ``pysqllike.translation.translation_class`` One class which visits a syntax tree. :githublink:`%|py|5` Classes +++++++ +----------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------+ | class | truncated documentation | +==================================================================================+===================================================================================================+ | :class:`TranslateClass ` | Interface for a class which translates a code written in pseudo-SQL syntax into another language. | +----------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------+ Methods +++++++ +--------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ | method | truncated documentation | +========================================================================================================+================================================================================+ | :py:meth:`__init__ ` | Constructor. | +--------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ | :py:meth:`__str__ ` | Returns a string representing a tree. | +--------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ | :meth:`Code ` | Returns the code of the initial Python function into another language. | +--------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ | :meth:`init ` | Parses the function code and add it the class, it complements the constructor. | +--------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ | :meth:`interpretFunction ` | Starts the interpretation of node which begins a function. | +--------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ | :meth:`interpretReturn ` | Starts the interpretation of a node which sets a return. | +--------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ | :meth:`Intruction ` | Builds an instruction of a function based on its name and its children. | +--------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ | :meth:`RaiseCodeException ` | Raises an exception when interpreting the code. | +--------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ | :meth:`ResolveExpression ` | Produces an expression based on a a node and its children. | +--------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ | :meth:`Select ` | Interprets a select statement. | +--------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ | :meth:`setReturn ` | Indicates all nodes containing information about returned results. | +--------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ | :meth:`Signature ` | Build the signature of a function based on its name and its children. | +--------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ | :meth:`to_str ` | Returns a string representing a tree. | +--------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ | :meth:`Where ` | Interprets a select statement. | +--------------------------------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: pysqllike.translation.translation_class :members: :special-members: __init__ :show-inheritance: