Interface ReadOnlyTraversalParent

All Superinterfaces:
AutoCloseable, PopContaining, TraversalParent
All Known Subinterfaces:
AddPropertyStepContract<S>
All Known Implementing Classes:
AddPropertyStep, AddPropertyStepPlaceholder, AllStep, AnyStep, GraphStep, HasStep, IsStep, NoneStep, TinkerGraphStep, WherePredicateStep

public interface ReadOnlyTraversalParent extends TraversalParent
Marker interface for TraversalParent steps whose child traversals must be read-only (no mutating steps allowed). Examples include has(key, traversal), is(P.gt(traversal)), V(traversal), and property(traversal).

The StandardVerificationStrategy validates the children of every step implementing this interface, rejecting child traversals that contain mutating steps. New steps that accept such traversals should implement this interface so they are validated automatically rather than relying on a hardcoded step list.

Since:
4.0.0