class ScopedSearch::QueryLanguage::AST::Node

Base AST node class. Instances of this class are used to represent an abstract syntax tree. This syntax tree is created by the ScopedSearch::QueryLanguage parser and visited by the ScopedSearch::QueryBuilder to create SQL query conditions.

Public Instance Methods

compatible_with(node) click to toggle source
# File lib/scoped_search/query_language/ast.rb, line 34
def compatible_with(node) # :nodoc
  false
end
inspect() click to toggle source
# File lib/scoped_search/query_language/ast.rb, line 25
def inspect # :nodoc
  "<AST::#{self.class.to_s.split('::').last} #{self.to_a.inspect}>"
end
simplify() click to toggle source

Tree simplification. By default, do nothing and return the node as is.

# File lib/scoped_search/query_language/ast.rb, line 30
def simplify
  return self
end