Class StringLiteral

  • All Implemented Interfaces:
    Visitable, Expression, Literal<CharSequence>

    @API(status=STABLE,
         since="1.0")
    public final class StringLiteral
    extends LiteralBase<CharSequence>
    The string representation of a string literal will be a quoted Cypher string in single tickmarks with escaped reserved characters.
    Since:
    1.0
    Author:
    Michael J. Simons
    • Method Detail

      • 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.
        Returns:
        A string representation to be used literally in a cypher statement.