Class: LogStashCompilerLSCLGrammar::LogStash::Compiler::LSCL::AST::String

Inherits:
Value
  • Object
show all
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 inherited from Node

#section_type

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

#exprObject



148
149
150
151
152
153
154
155
# File 'lib/logstash/compiler/lscl.rb', line 148

def expr
  value = if get_meta(PROCESS_ESCAPE_SEQUENCES)
    ::LogStash::Config::StringEscape.process_escapes(text_value[1...-1])
  else
    text_value[1...-1]
  end
  jdsl.eValue(source_meta, value)
end