java.lang.Object
org.neo4j.cypherdsl.core.QuantifiedPathPattern
- All Implemented Interfaces:
Visitable,PatternElement
@Neo4jVersion(minimum="5.9")
@API(status=STABLE,
since="2023.9.0")
public final class QuantifiedPathPattern
extends Object
implements PatternElement
- Since:
- 2023.9.0
- Author:
- Michael J. Simons
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceQuantifier for path patterns.static final classSynthetic element for the Cypher-DSL AST. -
Method Summary
Modifier and TypeMethodDescriptionvoidCreates an interval quantifierplus()Returns the+quantifier.star()Returns the*quantifier.@NotNull PatternElementwhere(@Nullable Expression predicate) Creates a newPatternElementwhich including an additional filter.
-
Method Details
-
interval
Creates an interval quantifier- Parameters:
lowerBound- lower bound, must be greater than or equal to 0upperBound- upper bound, must be greater than or equal to the lower bound- Returns:
- a quantifier
-
plus
Returns the+quantifier.- Returns:
- the
+quantifier
-
star
Returns the*quantifier.- Returns:
- the
*quantifier
-
accept
Description copied from interface:Visitable -
where
Description copied from interface:PatternElementCreates a newPatternElementwhich including an additional filter. Returnsthispattern. whenpredicateis literalnull.The pattern might be a
node patternor arelationship pattern.A
WHEREon a pattern is only supported from Neo4j 5.0 onwards.- Specified by:
wherein interfacePatternElement- Parameters:
predicate- the predicate to filter on- Returns:
- a new pattern element or this instance if the predicate to this method was literal
null
-