Class: Fluent::FilterWhere::Parser::BinaryOpExp

Inherits:
Exp
  • Object
show all
Defined in:
lib/fluent/plugin/filter_where/parser/exp.rb

Direct Known Subclasses

BooleanOpExp, NumberOpExp, RegexpOpExp, StringOpExp

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Exp

#eval

Constructor Details

#initialize(left, right, operator) ⇒ BinaryOpExp

Returns a new instance of BinaryOpExp.

Parameters:

  • left (ParserLiteral)
  • right (ParserLiteral)
  • operator (Symbol)


19
20
21
22
23
# File 'lib/fluent/plugin/filter_where/parser/exp.rb', line 19

def initialize(left, right, operator)
  @left = left
  @right = right
  @operator = operator
end

Instance Attribute Details

#leftObject (readonly)

Returns the value of attribute left.



14
15
16
# File 'lib/fluent/plugin/filter_where/parser/exp.rb', line 14

def left
  @left
end

#operatorObject (readonly)

Returns the value of attribute operator.



14
15
16
# File 'lib/fluent/plugin/filter_where/parser/exp.rb', line 14

def operator
  @operator
end

#rightObject (readonly)

Returns the value of attribute right.



14
15
16
# File 'lib/fluent/plugin/filter_where/parser/exp.rb', line 14

def right
  @right
end