java.lang.Object
org.apache.tinkerpop.gremlin.process.traversal.step.util.MutablePath
org.apache.tinkerpop.gremlin.structure.util.reference.ReferencePath
All Implemented Interfaces:
Serializable, Cloneable, Iterable<Object>, Path, Attachable<Path>

public class ReferencePath extends MutablePath implements Attachable<Path>
Author:
Marko A. Rodriguez (http://markorodriguez.com)
See Also:
  • Constructor Details

    • ReferencePath

      protected ReferencePath(Path path)
  • Method Details

    • get

      public Path get()
      Description copied from interface: Attachable
      Get the raw object trying to be attached.
      Specified by:
      get in interface Attachable<Path>
      Returns:
      the raw object to attach
    • attach

      public Path attach(Function<Attachable<Path>,Path> method)
      Description copied from interface: Attachable
      Provide a way to attach an Attachable implementation to a host. Note that the context of the host is not defined by way of the attachment method itself that is supplied as an argument. It is up to the implementer to supply that context.
      Specified by:
      attach in interface Attachable<Path>
      Parameters:
      method - a Function that takes an Attachable and returns the "re-attached" object
      Returns:
      the return value of the method