class ReplacingExternalTraversal(CloningExternalTraversal): (source)
Known subclasses: sqlalchemy.sql.util.ClauseAdapter
Base class for visitor objects which can traverse using the :func:`.visitors.replacement_traverse` function. Direct usage of the :func:`.visitors.replacement_traverse` function is usually preferred.
Method | replace |
Receive pre-copied elements during a cloning traversal. |
Method | traverse |
Traverse and visit the given expression structure. |
Class Variable | __slots__ |
Undocumented |
Inherited from CloningExternalTraversal
:
Method | copy |
Apply cloned traversal to the given list of elements, and return the new list. |
Inherited from ExternalTraversal
(via CloningExternalTraversal
):
Method | chain |
'Chain' an additional ExternalTraversal onto this ExternalTraversal |
Method | iterate |
Traverse the given expression structure, returning an iterator of all elements. |
Method | traverse |
Undocumented |
Class Variable | __traverse |
Undocumented |
Property | visitor |
Iterate through this visitor and each 'chained' visitor. |
Method | _memoized |
Undocumented |
Class Variable | _next |
Undocumented |
Inherited from MemoizedSlots
(via CloningExternalTraversal
, ExternalTraversal
):
Method | __getattr__ |
Undocumented |
Method | _fallback |
Undocumented |
sqlalchemy.sql.util.ClauseAdapter
Receive pre-copied elements during a cloning traversal. If the method returns a new element, the element is used instead of creating a simple copy of the element. Traversal will halt on the newly returned element if it is re-encountered.
sqlalchemy.sql.util.ClauseAdapter
Traverse and visit the given expression structure.