Class: Janeway::AST::Selector

Inherits:
Expression show all
Defined in:
lib/janeway/ast/selector.rb

Overview

Represent a selector, which is an expression that filters nodes from a list based on a predicate.

Instance Attribute Summary collapse

Attributes inherited from Expression

#value

Instance Method Summary collapse

Methods inherited from Expression

#indented, #initialize, #literal?, #singular_query?, #tree, #type

Constructor Details

This class inherits a constructor from Janeway::AST::Expression

Instance Attribute Details

#nextObject

Subsequent expression that modifies the result of this selector list.



28
29
30
# File 'lib/janeway/ast/selector.rb', line 28

def next
  @next
end

Instance Method Details

#==(other) ⇒ Object



30
31
32
# File 'lib/janeway/ast/selector.rb', line 30

def ==(other)
  value == other&.value
end