rgviz 0.17 → 0.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rgviz/nodes.rb +42 -42
  2. metadata +3 -3
data/lib/rgviz/nodes.rb CHANGED
@@ -12,7 +12,7 @@ module Rgviz
12
12
  attr_accessor :options
13
13
 
14
14
  def accept(visitor)
15
- if visitor.visitQuery self
15
+ if visitor.visit_query self
16
16
  select.accept visitor if select
17
17
  where.accept visitor if where
18
18
  group_by.accept visitor if group_by
@@ -22,7 +22,7 @@ module Rgviz
22
22
  formats.each{|x| x.accept visitor} if formats
23
23
  options.each{|x| x.accept visitor} if options
24
24
  end
25
- visitor.endVisitQuery self
25
+ visitor.end_visit_query self
26
26
  end
27
27
 
28
28
  def to_s
@@ -61,28 +61,28 @@ module Rgviz
61
61
 
62
62
  class Select < ColumnsContainer
63
63
  def accept(visitor)
64
- if visitor.visitSelect(self)
64
+ if visitor.visit_select(self)
65
65
  columns.each{|x| x.accept visitor}
66
66
  end
67
- visitor.endVisitSelect self
67
+ visitor.end_visit_select self
68
68
  end
69
69
  end
70
70
 
71
71
  class GroupBy < ColumnsContainer
72
72
  def accept(visitor)
73
- if visitor.visitGroupBy(self)
73
+ if visitor.visit_group_by(self)
74
74
  columns.each{|x| x.accept visitor}
75
75
  end
76
- visitor.endVisitGroupBy self
76
+ visitor.end_visit_group_by self
77
77
  end
78
78
  end
79
79
 
80
80
  class Pivot < ColumnsContainer
81
81
  def accept(visitor)
82
- if visitor.visitPivot(self)
82
+ if visitor.visit_pivot(self)
83
83
  columns.each{|x| x.accept visitor}
84
84
  end
85
- visitor.endVisitPivot self
85
+ visitor.end_visit_pivot self
86
86
  end
87
87
  end
88
88
 
@@ -94,10 +94,10 @@ module Rgviz
94
94
  end
95
95
 
96
96
  def accept(visitor)
97
- if visitor.visitOrderBy(self)
97
+ if visitor.visit_order_by(self)
98
98
  sorts.each{|x| x.accept visitor}
99
99
  end
100
- visitor.endVisitOrderBy self
100
+ visitor.end_visit_order_by self
101
101
  end
102
102
 
103
103
  def to_s
@@ -119,10 +119,10 @@ module Rgviz
119
119
  end
120
120
 
121
121
  def accept(visitor)
122
- if visitor.visitSort(self)
122
+ if visitor.visit_sort(self)
123
123
  column.accept visitor
124
124
  end
125
- visitor.endVisitSort self
125
+ visitor.end_visit_sort self
126
126
  end
127
127
 
128
128
  def to_s
@@ -138,10 +138,10 @@ module Rgviz
138
138
  end
139
139
 
140
140
  def accept(visitor)
141
- if visitor.visitWhere(self)
141
+ if visitor.visit_where(self)
142
142
  expression.accept visitor
143
143
  end
144
- visitor.endVisitWhere self
144
+ visitor.end_visit_where self
145
145
  end
146
146
 
147
147
  def to_s
@@ -159,10 +159,10 @@ module Rgviz
159
159
  end
160
160
 
161
161
  def accept(visitor)
162
- if visitor.visitLabel(self)
162
+ if visitor.visit_label(self)
163
163
  column.accept visitor
164
164
  end
165
- visitor.endVisitLabel self
165
+ visitor.end_visit_label self
166
166
  end
167
167
 
168
168
  def to_s
@@ -180,10 +180,10 @@ module Rgviz
180
180
  end
181
181
 
182
182
  def accept(visitor)
183
- if visitor.visitFormat(self)
183
+ if visitor.visit_format(self)
184
184
  column.accept visitor
185
185
  end
186
- visitor.endVisitFormat self
186
+ visitor.end_visit_format self
187
187
  end
188
188
 
189
189
  def to_s
@@ -203,8 +203,8 @@ module Rgviz
203
203
  end
204
204
 
205
205
  def accept(visitor)
206
- visitor.visitOption(self)
207
- visitor.endVisitOption self
206
+ visitor.visit_option(self)
207
+ visitor.end_visit_option self
208
208
  end
209
209
 
210
210
  def to_s
@@ -239,11 +239,11 @@ module Rgviz
239
239
  end
240
240
 
241
241
  def accept(visitor)
242
- if visitor.visitBinaryExpression(self)
242
+ if visitor.visit_binary_expression(self)
243
243
  left.accept visitor
244
244
  right.accept visitor
245
245
  end
246
- visitor.endVisitBinaryExpression self
246
+ visitor.end_visit_binary_expression self
247
247
  end
248
248
 
249
249
  def to_s
@@ -265,10 +265,10 @@ module Rgviz
265
265
  end
266
266
 
267
267
  def accept(visitor)
268
- if visitor.visitUnaryExpression(self)
268
+ if visitor.visit_unary_expression(self)
269
269
  operand.accept visitor
270
270
  end
271
- visitor.endVisitUnaryExpression self
271
+ visitor.end_visit_unary_expression self
272
272
  end
273
273
 
274
274
  def to_s
@@ -284,8 +284,8 @@ module Rgviz
284
284
  end
285
285
 
286
286
  def accept(visitor)
287
- visitor.visitIdColumn(self)
288
- visitor.endVisitIdColumn self
287
+ visitor.visit_id_column(self)
288
+ visitor.end_visit_id_column self
289
289
  end
290
290
 
291
291
  def to_s
@@ -307,15 +307,15 @@ module Rgviz
307
307
 
308
308
  class NumberColumn < ValueColumn
309
309
  def accept(visitor)
310
- visitor.visitNumberColumn(self)
311
- visitor.endVisitNumberColumn self
310
+ visitor.visit_number_column(self)
311
+ visitor.end_visit_number_column self
312
312
  end
313
313
  end
314
314
 
315
315
  class StringColumn < ValueColumn
316
316
  def accept(visitor)
317
- visitor.visitStringColumn(self)
318
- visitor.endVisitStringColumn self
317
+ visitor.visit_string_column(self)
318
+ visitor.end_visit_string_column self
319
319
  end
320
320
 
321
321
  def to_s
@@ -325,29 +325,29 @@ module Rgviz
325
325
 
326
326
  class BooleanColumn < ValueColumn
327
327
  def accept(visitor)
328
- visitor.visitBooleanColumn(self)
329
- visitor.endVisitBooleanColumn self
328
+ visitor.visit_boolean_column(self)
329
+ visitor.end_visit_boolean_column self
330
330
  end
331
331
  end
332
332
 
333
333
  class DateColumn < ValueColumn
334
334
  def accept(visitor)
335
- visitor.visitDateColumn(self)
336
- visitor.endVisitDateColumn self
335
+ visitor.visit_date_column(self)
336
+ visitor.end_visit_date_column self
337
337
  end
338
338
  end
339
339
 
340
340
  class DateTimeColumn < ValueColumn
341
341
  def accept(visitor)
342
- visitor.visitDateTimeColumn(self)
343
- visitor.endVisitDateTimeColumn self
342
+ visitor.visit_date_time_column(self)
343
+ visitor.end_visit_date_time_column self
344
344
  end
345
345
  end
346
346
 
347
347
  class TimeOfDayColumn < ValueColumn
348
348
  def accept(visitor)
349
- visitor.visitTimeOfDayColumn(self)
350
- visitor.endVisitTimeOfDayColumn self
349
+ visitor.visit_time_of_day_column(self)
350
+ visitor.end_visit_time_of_day_column self
351
351
  end
352
352
 
353
353
  def to_s
@@ -385,10 +385,10 @@ module Rgviz
385
385
  end
386
386
 
387
387
  def accept(visitor)
388
- if visitor.visitScalarFunctionColumn(self)
388
+ if visitor.visit_scalar_function_column(self)
389
389
  arguments.each{|x| x.accept visitor}
390
390
  end
391
- visitor.endVisitScalarFunctionColumn self
391
+ visitor.end_visit_scalar_function_column self
392
392
  end
393
393
 
394
394
  def to_s
@@ -418,10 +418,10 @@ module Rgviz
418
418
  end
419
419
 
420
420
  def accept(visitor)
421
- if visitor.visitAggregateColumn(self)
421
+ if visitor.visit_aggregate_column(self)
422
422
  argument.accept visitor
423
423
  end
424
- visitor.endVisitAggregateColumn self
424
+ visitor.end_visit_aggregate_column self
425
425
  end
426
426
 
427
427
  def to_s
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rgviz
3
3
  version: !ruby/object:Gem::Version
4
- hash: 41
4
+ hash: 47
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 17
9
- version: "0.17"
8
+ - 18
9
+ version: "0.18"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ary Borenszweig