Module: LogStashCompilerLSCLGrammar::LogStash::Compiler::LSCL::AST::BooleanOperator
- Includes:
- Helpers
- Defined in:
- lib/logstash/compiler/lscl.rb
Constant Summary
Constants included from Helpers
Helpers::AND_METHOD, Helpers::BOOLEAN_DSL_METHOD_SIGNATURE, Helpers::NAND_METHOD, Helpers::OR_METHOD, Helpers::XOR_METHOD
Instance Method Summary collapse
Methods included from Helpers
#base_id, #base_protocol, #base_source_with_metadata, #base_source_with_metadata=, #compose, #compose_for, #jdsl, jdsl, #line_and_column, #source_meta
Instance Method Details
#expr ⇒ Object
530 531 532 533 534 535 536 537 538 539 540 541 542 543 |
# File 'lib/logstash/compiler/lscl.rb', line 530 def expr case self.text_value when "and" AND_METHOD when "nand" NAND_METHOD when "or" OR_METHOD when "xor" XOR_METHOD else raise "Unknown operator #{self.text_value}" end end |