Class Properties

java.lang.Object
org.neo4j.cypherdsl.core.Properties
All Implemented Interfaces:
Visitable

@API(status=STABLE, since="1.0") public final class Properties extends Object implements Visitable
Represents the properties of a node or a relationship when used as part of the whole pattern (inside a MATCH, CREATE or MERGE clause as {p1: v1, p2: v2, pn: vn}.
Since:
1.0
Author:
Michael J. Simons
  • Method Details

    • create

      @Contract(pure=true) public static Properties create(MapExpression expression)
      Wraps an expression into a Properties node.
      Parameters:
      expression - Nullable expression
      Returns:
      A properties expression
    • accept

      public void accept(Visitor visitor)
      Description copied from interface: Visitable
      Accept a Visitor visiting this Visitable and its nested Visitables if applicable.
      Specified by:
      accept in interface Visitable
      Parameters:
      visitor - the visitor to notify, must not be null.
    • toString

      public String toString()
      Description copied from interface: Visitable
      Most visitables will render themselves into a Cypher fragment preceded with the actual classname. The representation however is not cached - in contrast to the ones for full statements. Using toString is recommended for debugging purposes mainly, and not for production use.

      The concrete classname has been prepended to help debugging and actually to discourage using fragments to build queries without explicitly rendering them, either as statement or going through the renderer on purpose.

      Specified by:
      toString in interface Visitable
      Overrides:
      toString in class Object
      Returns:
      A string representation of this visitable formatted as Classname{cypher=value}