Package org.neo4j.cypherdsl.core
Class NamedPath
- java.lang.Object
-
- org.neo4j.cypherdsl.core.NamedPath
-
- All Implemented Interfaces:
Named
,PatternElement
,Visitable
@API(status=EXPERIMENTAL, since="1.1") public final class NamedPath extends java.lang.Object implements PatternElement, Named
Represents a named path. A named path can be either aRelationshipPattern
that has been assigned to a variable as inp := (a)-->(b)
, a call to functions known to return paths or an existing, symbolic name that might come from an arbitrary procedure returning path elements.
Note: We cannot check a value that has been yielded from a procedure upfront to verify that it is a named path. This is up to the caller.- Since:
- 1.1
- Author:
- Michael J. Simons
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
NamedPath.OngoingDefinitionWithName
Partial path that has a name (p =
).static interface
NamedPath.OngoingShortestPathDefinitionWithName
Partial path that has a name (p =
) and is based on a graph algorithm function.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Visitor visitor)
java.util.Optional<SymbolicName>
getSymbolicName()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.neo4j.cypherdsl.core.Named
getRequiredSymbolicName
-
-
-
-
Method Detail
-
getSymbolicName
public java.util.Optional<SymbolicName> getSymbolicName()
- Specified by:
getSymbolicName
in interfaceNamed
- Returns:
- An optional symbolic name.
-
-