Class MapExpression

All Implemented Interfaces:
Visitable, Expression

@API(status=STABLE, since="1.0") public final class MapExpression extends TypedSubtree<Expression> implements Expression
A dedicated map expression.

Most of the comparison methods on this expression will not result in a sensible query fragment. A MapExpression is be useful as a concrete parameter to functions or as properties on nodes or relationships.

Since:
1.0
Author:
Michael J. Simons
  • Method Details

    • prepareVisit

      protected Visitable prepareVisit(Expression child)
      Description copied from class: TypedSubtree
      A hook for interfere with the visitation of child elements.
      Overrides:
      prepareVisit in class TypedSubtree<Expression>
      Parameters:
      child - The current child element
      Returns:
      The visitable that has been prepared
    • 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}