Class Asterisk

java.lang.Object
org.neo4j.cypherdsl.core.Asterisk
All Implemented Interfaces:
Visitable, Expression, IdentifiableElement, Literal<String>

@API(status=STABLE, since="1.0") public final class Asterisk extends Object implements IdentifiableElement
The *.
Since:
1.0
Author:
Michael J. Simons
  • Field Details

    • INSTANCE

      public static final Asterisk INSTANCE
      The single instance of the *.
    • content

      protected final String content
      The content of this literal.
  • Method Details

    • asString

      @NotNull public @NotNull String asString()
      Description copied from interface: Literal
      The string representation should be designed in such a way the a renderer can use it correctly in the given context of the literal, i.e. a literal containing a string should quote that string and escape all reserved characters.
      Specified by:
      asString in interface Literal<String>
      Returns:
      A string representation to be used literally in a cypher statement.
    • asExpression

      @NotNull public @NotNull Expression asExpression()
      Description copied from interface: IdentifiableElement
      Transform this element into an expression
      Specified by:
      asExpression in interface IdentifiableElement
      Returns:
      this element as an expression. Will return the same instance if it is already an expression.
    • 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}
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object