class Neo4j::Cypher::MatchStart::NodeMatchContext

Constants

DIR_OPERATORS

Public Class Methods

new(match_start, from, to, dir) click to toggle source
    # File lib/neo4j-cypher/match.rb
288 def initialize(match_start, from, to, dir)
289   super(match_start)
290   @from = from
291   @to = to
292   convert_create_clauses(from)
293   convert_create_clauses(to)
294   @dir = dir
295 end
new_first(match_start, from, to, dir) click to toggle source
    # File lib/neo4j-cypher/match.rb
298 def self.new_first(match_start, from, to, dir)
299   from_var = NodeVar.as_var(match_start.clause_list, from)
300   to_var = NodeVar.as_var(match_start.clause_list, to)
301   NodeMatchContext.new(match_start, from_var, to_var, dir)
302 end

Public Instance Methods

to_cypher_join() click to toggle source
    # File lib/neo4j-cypher/match.rb
309 def to_cypher_join
310   "#{DIR_OPERATORS[@dir]}(#{@to.match_value})"
311 end
to_cypher_no_join() click to toggle source
    # File lib/neo4j-cypher/match.rb
304 def to_cypher_no_join
305   x = @to.match_value
306   "(#{@from.match_value})#{DIR_OPERATORS[@dir]}(#{x})"
307 end