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 34 def compatible_with(node) # :nodoc 35 false 36 end
inspect()
click to toggle source
# File lib/scoped_search/query_language/ast.rb 25 def inspect # :nodoc 26 "<AST::#{self.class.to_s.split('::').last} #{self.to_a.inspect}>" 27 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 30 def simplify 31 return self 32 end