OmniSciDB  471d68cefb
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
generate_TableFunctionsFactory_init.SignatureTransformer Class Reference
+ Inheritance diagram for generate_TableFunctionsFactory_init.SignatureTransformer:
+ Collaboration diagram for generate_TableFunctionsFactory_init.SignatureTransformer:

Public Member Functions

def visit_udtf_node
 
def visit_arg_node
 
def visit_composed_node
 
def visit_primitive_node
 
def visit_annotation_node
 
- Public Member Functions inherited from generate_TableFunctionsFactory_init.AstTransformer
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 generate_TableFunctionsFactory_init.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

Definition at line 839 of file generate_TableFunctionsFactory_init.py.

Member Function Documentation

def generate_TableFunctionsFactory_init.SignatureTransformer.visit_annotation_node (   self,
  annotation_node 
)

Definition at line 885 of file generate_TableFunctionsFactory_init.py.

886  def visit_annotation_node(self, annotation_node):
887  key = annotation_node.key
888  value = annotation_node.value
889  return (key, value)
890 
def generate_TableFunctionsFactory_init.SignatureTransformer.visit_arg_node (   self,
  arg_node 
)

Definition at line 865 of file generate_TableFunctionsFactory_init.py.

866  def visit_arg_node(self, arg_node):
867  t = arg_node.type.accept(self)
868  anns = [a.accept(self) for a in arg_node.annotations]
869  return Declaration(t, anns)
def generate_TableFunctionsFactory_init.SignatureTransformer.visit_composed_node (   self,
  composed_node 
)

Definition at line 870 of file generate_TableFunctionsFactory_init.py.

871  def visit_composed_node(self, composed_node):
872  typ = translate_map.get(composed_node.type, composed_node.type)
873  inner = [i.accept(self) for i in composed_node.inner]
874  if composed_node.is_cursor():
875  inner = list(map(lambda x: x.apply_column(), inner))
876  return Bracket(typ, args=tuple(inner))
877  elif composed_node.is_output_buffer_sizer():
878  return Bracket(typ, args=tuple(inner))
879  else:
880  return Bracket(typ + str(inner[0]))
def generate_TableFunctionsFactory_init.SignatureTransformer.visit_primitive_node (   self,
  primitive_node 
)

Definition at line 881 of file generate_TableFunctionsFactory_init.py.

882  def visit_primitive_node(self, primitive_node):
883  t = primitive_node.type
884  return Bracket(translate_map.get(t, t))
def generate_TableFunctionsFactory_init.SignatureTransformer.visit_udtf_node (   self,
  udtf_node 
)

Definition at line 841 of file generate_TableFunctionsFactory_init.py.

References generate_TableFunctionsFactory_init.Signature.

842  def visit_udtf_node(self, udtf_node):
843  name = udtf_node.name
844  inputs = []
845  input_annotations = []
846  outputs = []
847  output_annotations = []
848  function_annotations = []
849 
850  for i in udtf_node.inputs:
851  decl = i.accept(self)
852  inputs.append(decl.type)
853  input_annotations.append(decl.annotations)
854 
855  for o in udtf_node.outputs:
856  decl = o.accept(self)
857  outputs.append(decl.type)
858  output_annotations.append(decl.annotations)
859 
860  for annot in udtf_node.annotations:
861  annot = annot.accept(self)
862  function_annotations.append(annot)
863 
864  return Signature(name, inputs, outputs, input_annotations, output_annotations, function_annotations)

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