Class: Locomotive::RelationalAlgebra::Leaf

Inherits:
Operator show all
Defined in:
lib/locomotive/relational_algebra/operators/basic_operators.rb

Overview

A leaf doesn’t have any child

Direct Known Subclasses

LiteralTable, Nil, RefTbl, Variable

Instance Attribute Summary

Attributes inherited from Operator

#schema

Attributes included from AstHelpers::AstNode

#kind, #left_child, #owner, #right_child, #value

Instance Method Summary collapse

Methods inherited from Operator

#bound, #free, #to_xml, #xml_content, #xml_kind, #xml_schema

Methods included from XML

included, #quote, #to_xml

Methods included from AstHelpers::Annotations

#method_missing, #respond_to?

Methods included from AstHelpers::AstNode

#has_left_child?, #has_right_child?, #is_leaf?, #traverse, #traverse_strategy=

Constructor Details

#initializeLeaf

undef left_child=

undef left_child
undef has_left_child?
undef right_child=
undef right_child
undef has_right_child?

Raises:



76
77
78
79
80
# File 'lib/locomotive/relational_algebra/operators/basic_operators.rb', line 76

def initialize()
  raise AbstractClassError,
        "#{self.class} is an abstract class" if self.class == Leaf
  super()
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Locomotive::AstHelpers::Annotations

Instance Method Details

#set(var, plan) ⇒ Object



82
83
84
# File 'lib/locomotive/relational_algebra/operators/basic_operators.rb', line 82

def set(var,plan)
  self.clone
end