@Test void shouldCreatePropertyPointingToSymbolicName() { Property property = Cypher.property("a", "b"); property.accept(segment -> { if (segment instanceof Property) { assertThat(segment).extracting(s -> ((Property) s).getName().getPropertyKeyName()).isEqualTo("b"); } else if (segment instanceof PropertyLookup) { assertThat(segment).extracting(s -> ((PropertyLookup) s).getPropertyKeyName()).isEqualTo("b"); } else if (segment instanceof SymbolicName) { assertThat(segment).extracting("value").isEqualTo("a"); } else { fail("Unexpected segment: " + segment.getClass()); } }); }
public static Property property(String containerName, String name) { return property(name(containerName), name); }
Cypher { public static Property property(String containerName, String name) { return property(name(containerName), name); } }
Cypher { public static Property property(String containerName, String name) { return property(name(containerName), name); } private  Cypher(); }
Cypher { public static Property property(String containerName, String name) { return property(name(containerName), name); } private  Cypher(); static Node node(String primaryLabel, String... additionalLabels); static Node node(String primaryLabel, List<String> additionalLabels); static Node node(String primaryLabel, MapExpression properties, String... additionalLabels); static Node anyNode(); static Asterisk asterisk(); static Node anyNode(String symbolicName); static Node anyNode(SymbolicName symbolicName); static Property property(String containerName, String name); static Property property(Expression expression, String name); static NamedPath.OngoingDefinitionWithName path(String name); static NamedPath.OngoingDefinitionWithName path(SymbolicName name); static NamedPath.OngoingShortestPathDefinitionWithName shortestPath(String name); static NamedPath.OngoingShortestPathDefinitionWithName shortestPath(SymbolicName name); static SymbolicName name(String value); static Parameter parameter(String name); static StatementBuilder.OngoingReadingWithoutWhere optionalMatch(PatternElement... pattern); static StatementBuilder.OngoingReadingWithoutWhere match(PatternElement... pattern); static T create(
		PatternElement... pattern); static StatementBuilder.OrderableOngoingReadingAndWith with(AliasedExpression... expressions); static T merge(
		PatternElement... pattern); static StatementBuilder.OngoingUnwind unwind(Expression expression); static StatementBuilder.OngoingUnwind unwind(Expression... expressions); static SortItem sort(Expression expression); static MapExpression mapOf(Object... keysAndValues); static ListExpression listOf(Expression... expressions); static Literal<T> literalOf(Object object); static Literal<Boolean> literalTrue(); static Literal<Boolean> literalFalse(); static Statement union(Statement... statement); static Statement unionAll(Statement... statement); static StatementBuilder.OngoingReadingAndReturn returning(Expression... expressions); static OngoingDefinitionWithPattern listBasedOn(RelationshipPattern relationshipPattern); static OngoingDefinitionWithPattern listBasedOn(NamedPath namedPath); static OngoingDefinitionWithVariable listWith(SymbolicName variable); static String quote(String unquotedString); static Case caseExpression(); static Case caseExpression(Expression expression); static OngoingStandaloneCallWithoutArguments call(String procedureName); static OngoingStandaloneCallWithoutArguments call(String... namespaceAndProcedure); static Expression subList(Expression targetExpression, Integer start, Integer end); static Expression subList(Expression targetExpression, Expression start, Expression end); static Expression subListFrom(Expression targetExpression, Integer start); static Expression subListFrom(Expression targetExpression, Expression start); static Expression subListUntil(Expression targetExpression, Integer end); static Expression subListUntil(Expression targetExpression, Expression end); static ListOperator valueAt(Expression targetExpression, Integer index); static ListOperator valueAt(Expression targetExpression, Expression index); }
Cypher { public static Property property(String containerName, String name) { return property(name(containerName), name); } private  Cypher(); static Node node(String primaryLabel, String... additionalLabels); static Node node(String primaryLabel, List<String> additionalLabels); static Node node(String primaryLabel, MapExpression properties, String... additionalLabels); static Node anyNode(); static Asterisk asterisk(); static Node anyNode(String symbolicName); static Node anyNode(SymbolicName symbolicName); static Property property(String containerName, String name); static Property property(Expression expression, String name); static NamedPath.OngoingDefinitionWithName path(String name); static NamedPath.OngoingDefinitionWithName path(SymbolicName name); static NamedPath.OngoingShortestPathDefinitionWithName shortestPath(String name); static NamedPath.OngoingShortestPathDefinitionWithName shortestPath(SymbolicName name); static SymbolicName name(String value); static Parameter parameter(String name); static StatementBuilder.OngoingReadingWithoutWhere optionalMatch(PatternElement... pattern); static StatementBuilder.OngoingReadingWithoutWhere match(PatternElement... pattern); static T create(
		PatternElement... pattern); static StatementBuilder.OrderableOngoingReadingAndWith with(AliasedExpression... expressions); static T merge(
		PatternElement... pattern); static StatementBuilder.OngoingUnwind unwind(Expression expression); static StatementBuilder.OngoingUnwind unwind(Expression... expressions); static SortItem sort(Expression expression); static MapExpression mapOf(Object... keysAndValues); static ListExpression listOf(Expression... expressions); static Literal<T> literalOf(Object object); static Literal<Boolean> literalTrue(); static Literal<Boolean> literalFalse(); static Statement union(Statement... statement); static Statement unionAll(Statement... statement); static StatementBuilder.OngoingReadingAndReturn returning(Expression... expressions); static OngoingDefinitionWithPattern listBasedOn(RelationshipPattern relationshipPattern); static OngoingDefinitionWithPattern listBasedOn(NamedPath namedPath); static OngoingDefinitionWithVariable listWith(SymbolicName variable); static String quote(String unquotedString); static Case caseExpression(); static Case caseExpression(Expression expression); static OngoingStandaloneCallWithoutArguments call(String procedureName); static OngoingStandaloneCallWithoutArguments call(String... namespaceAndProcedure); static Expression subList(Expression targetExpression, Integer start, Integer end); static Expression subList(Expression targetExpression, Expression start, Expression end); static Expression subListFrom(Expression targetExpression, Integer start); static Expression subListFrom(Expression targetExpression, Expression start); static Expression subListUntil(Expression targetExpression, Integer end); static Expression subListUntil(Expression targetExpression, Expression end); static ListOperator valueAt(Expression targetExpression, Integer index); static ListOperator valueAt(Expression targetExpression, Expression index);  }