Class: Alf::Sql::Processor::Requalify

Inherits:
Alf::Sql::Processor show all
Defined in:
lib/alf/sql/processor/requalify.rb

Constant Summary

Constants inherited from Alf::Sql::Processor

UnexpectedError

Instance Attribute Summary collapse

Attributes inherited from Alf::Sql::Processor

#builder

Instance Method Summary collapse

Methods inherited from Alf::Sql::Processor

#on_set_operator, #on_with_exp

Constructor Details

#initialize(builder) ⇒ Requalify

Returns a new instance of Requalify.



6
7
8
9
10
11
# File 'lib/alf/sql/processor/requalify.rb', line 6

def initialize(builder)
  super
  @requalify = Hash.new{|h,k|
    h[k] = Grammar.sexpr [:range_var_name, builder.next_qualifier!]
  }
end

Instance Attribute Details

#requalifyObject (readonly)

Returns the value of attribute requalify.



12
13
14
# File 'lib/alf/sql/processor/requalify.rb', line 12

def requalify
  @requalify
end

Instance Method Details

#on_range_var_name(sexpr) ⇒ Object



17
18
19
# File 'lib/alf/sql/processor/requalify.rb', line 17

def on_range_var_name(sexpr)
  requalify[sexpr]
end