OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TableFunctionsFactory_transformers.AstTransformer Class Reference
+ Inheritance diagram for TableFunctionsFactory_transformers.AstTransformer:
+ Collaboration diagram for TableFunctionsFactory_transformers.AstTransformer:

Public Member Functions

def visit_udtf_node
 
def visit_composed_node
 
def visit_arg_node
 
def visit_primitive_node
 
def visit_template_node
 
def visit_annotation_node
 
- Public Member Functions inherited from TableFunctionsFactory_transformers.AstVisitor
def visit_udtf_node
 
def visit_composed_node
 
def visit_arg_node
 
def visit_primitive_node
 
def visit_annotation_node
 
def visit_template_node
 

Detailed Description

Only overload the methods you need

Definition at line 64 of file TableFunctionsFactory_transformers.py.

Member Function Documentation

def TableFunctionsFactory_transformers.AstTransformer.visit_annotation_node (   self,
  annotation_node 
)

Definition at line 94 of file TableFunctionsFactory_transformers.py.

94 
95  def visit_annotation_node(self, annotation_node):
96  return copy.copy(annotation_node)
97 
def TableFunctionsFactory_transformers.AstTransformer.visit_arg_node (   self,
  arg_node 
)

Definition at line 81 of file TableFunctionsFactory_transformers.py.

81 
82  def visit_arg_node(self, arg_node):
83  arg_node = copy.copy(arg_node)
84  arg_node.type = arg_node.type.accept(self)
85  if arg_node.annotations:
86  arg_node.annotations = [a.accept(self) for a in arg_node.annotations]
87  return arg_node
def TableFunctionsFactory_transformers.AstTransformer.visit_composed_node (   self,
  composed_node 
)

Definition at line 76 of file TableFunctionsFactory_transformers.py.

76 
77  def visit_composed_node(self, composed_node):
78  c = copy.copy(composed_node)
79  c.inner = [i.accept(self) for i in c.inner]
80  return c
def TableFunctionsFactory_transformers.AstTransformer.visit_primitive_node (   self,
  primitive_node 
)

Definition at line 88 of file TableFunctionsFactory_transformers.py.

88 
89  def visit_primitive_node(self, primitive_node):
90  return copy.copy(primitive_node)
def TableFunctionsFactory_transformers.AstTransformer.visit_template_node (   self,
  template_node 
)

Definition at line 91 of file TableFunctionsFactory_transformers.py.

91 
92  def visit_template_node(self, template_node):
93  return copy.copy(template_node)
def TableFunctionsFactory_transformers.AstTransformer.visit_udtf_node (   self,
  udtf_node 
)

Definition at line 67 of file TableFunctionsFactory_transformers.py.

67 
68  def visit_udtf_node(self, udtf_node):
69  udtf = copy.copy(udtf_node)
70  udtf.inputs = [arg.accept(self) for arg in udtf.inputs]
71  udtf.outputs = [arg.accept(self) for arg in udtf.outputs]
72  if udtf.templates:
73  udtf.templates = [t.accept(self) for t in udtf.templates]
74  udtf.annotations = [annot.accept(self) for annot in udtf.annotations]
75  return udtf

The documentation for this class was generated from the following file: