Class MapProjection

java.lang.Object
org.neo4j.cypherdsl.core.MapProjection
All Implemented Interfaces:
Visitable, Expression

@API(status=STABLE, since="1.0") public final class MapProjection extends Object implements Expression
Represents a map projection as described here.
Author:
Michael J. Simons
  • Method Details

    • create

      @API(status=INTERNAL, since="2023.9.0") public static MapProjection create(SymbolicName name, Object... content)
      Create a new map projection with the given, mixed content
      Parameters:
      name - The symbolic name of this project
      content - The projected content
      Returns:
      A new map projection
      Since:
      2021.2.3
    • and

      @NotNull @Contract(pure=true) public @NotNull MapProjection and(Object... content)
      Adds additional content. The current projection is left unchanged and a new one is returned.
      Parameters:
      content - The additional content for a new projection.
      Returns:
      A new map projection with additional content.
    • 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}