Class 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 a RelationshipPattern that has been assigned to a variable as in p := (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
    • Method Detail

      • getSymbolicName

        public java.util.Optional<SymbolicName> getSymbolicName()
        Specified by:
        getSymbolicName in interface Named
        Returns:
        An optional symbolic name.
      • accept

        public void accept​(Visitor visitor)
        Description copied from interface: Visitable
        Accept a Visitor visiting this Visitable and its nested Visitables if applicable.
        Specified by:
        accept in interface Visitable
        Parameters:
        visitor - the visitor to notify, must not be null.