Module org.neo4j.cypherdsl.core
Package org.neo4j.cypherdsl.core
Class QuantifiedPathPattern.TargetPattern
java.lang.Object
org.neo4j.cypherdsl.core.QuantifiedPathPattern.TargetPattern
- All Implemented Interfaces:
Visitable
,PatternElement
- Enclosing class:
QuantifiedPathPattern
@API(status=INTERNAL)
public static final class QuantifiedPathPattern.TargetPattern
extends Object
implements PatternElement
Synthetic element for the Cypher-DSL AST.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
@NotNull PatternElement
where
(@Nullable Expression predicate) Creates a newPatternElement
which including an additional filter.
-
Method Details
-
accept
Description copied from interface:Visitable
-
where
Description copied from interface:PatternElement
Creates a newPatternElement
which including an additional filter. Returnsthis
pattern. whenpredicate
is literalnull
.The pattern might be a
node pattern
or arelationship pattern
.A
WHERE
on a pattern is only supported from Neo4j 5.0 onwards.- Specified by:
where
in 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
-