- Type Parameters:
T- type of content
- All Superinterfaces:
Expression,Visitable
- All Known Implementing Classes:
Asterisk,BooleanLiteral,ListLiteral,MapLiteral,NullLiteral,NumberLiteral,StringLiteral,TemporalLiteral
Represents a literal with an optional content.
- Since:
- 1.0
- Author:
- Michael J. Simons
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classThrown when a given object cannot be used as a Cypher-DSL-Literal. -
Method Summary
Methods inherited from interface org.neo4j.cypherdsl.core.Expression
add, as, as, ascending, asCondition, concat, contains, descending, divide, endsWith, eq, gt, gte, hasSize, in, includesAll, includesAny, isEmpty, isEqualTo, isFalse, isNotEqualTo, isNotNull, isNull, isTrue, lt, lte, matches, matches, multiply, ne, pow, property, remainder, size, sorted, startsWith, subtract
-
Method Details
-
asString
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.
-