class Neo4j::Cypher::MatchStart
Attributes
algorithm[RW]
match_list[R]
Public Class Methods
new(from)
click to toggle source
Calls superclass method
Neo4j::Cypher::Clause::new
# File lib/neo4j-cypher/match.rb 10 def initialize(from) 11 super(from.clause_list, :match) 12 @from = from 13 @match_list = [] 14 end
new_match_node(from, to, dir)
click to toggle source
# File lib/neo4j-cypher/match.rb 54 def self.new_match_node(from, to, dir) 55 MatchStart.new(from).new_match_node(from, to, dir) 56 end
Public Instance Methods
eval_context()
click to toggle source
# File lib/neo4j-cypher/match.rb 37 def eval_context 38 @match_list.last 39 end
new_match_node(from, to, dir)
click to toggle source
# File lib/neo4j-cypher/match.rb 16 def new_match_node(from, to, dir) 17 NodeMatchContext.new_first(self, from, to, dir) 18 self 19 end
new_match_rel(rel)
click to toggle source
# File lib/neo4j-cypher/match.rb 21 def new_match_rel(rel) 22 RelLeftMatchContext.new(self, @from).set_rel(rel) 23 self 24 end
new_match_rels(rels)
click to toggle source
# File lib/neo4j-cypher/match.rb 26 def new_match_rels(rels) 27 RelLeftMatchContext.new(self, @from).set_rels(rels) 28 self 29 end
new_match_rels?(rels)
click to toggle source
# File lib/neo4j-cypher/match.rb 31 def new_match_rels?(rels) 32 RelLeftMatchContext.new(self, @from).set_rels?(rels) 33 self 34 end
not()
click to toggle source
negate this match
# File lib/neo4j-cypher/match.rb 43 def not 44 clause_list.delete(self) 45 Operator.new(clause_list, self, nil, "not").unary! 46 end
to_cypher()
click to toggle source
# File lib/neo4j-cypher/match.rb 48 def to_cypher 49 match_string = @match_list.map(&:to_cypher).join 50 match_string = algorithm ? "#{algorithm}(#{match_string})" : match_string 51 referenced? ? "#{var_name} = #{match_string}" : match_string 52 end