java.lang.Object
org.apache.tinkerpop.gremlin.process.traversal.P<V>
org.apache.tinkerpop.gremlin.process.traversal.util.ConnectiveP<V>
All Implemented Interfaces:
Serializable, Cloneable, Predicate<V>
Direct Known Subclasses:
AndP, OrP

public abstract class ConnectiveP<V> extends P<V>
Author:
Marko A. Rodriguez (http://markorodriguez.com)
See Also:
  • Field Details

    • predicates

      protected List<P<V>> predicates
  • Constructor Details

    • ConnectiveP

      public ConnectiveP(List<P<V>> predicates)
  • Method Details

    • getPredicates

      public List<P<V>> getPredicates()
    • negate

      public P<V> negate()
      Specified by:
      negate in interface Predicate<V>
      Overrides:
      negate in class P<V>
    • negate

      protected P<V> negate(ConnectiveP<V> p)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class P<V>
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class P<V>
    • clone

      public ConnectiveP<V> clone()
      Overrides:
      clone in class P<V>
    • and

      public P<V> and(Predicate<? super V> predicate)
      Specified by:
      and in interface Predicate<V>
      Overrides:
      and in class P<V>
    • or

      public P<V> or(Predicate<? super V> predicate)
      Specified by:
      or in interface Predicate<V>
      Overrides:
      or in class P<V>
    • isParameterized

      public boolean isParameterized()
      Overrides:
      isParameterized in class P<V>
    • updateVariable

      public void updateVariable(String name, Object value)
      Overrides:
      updateVariable in class P<V>
    • getGValues

      public Set<GValue<?>> getGValues()
      Overrides:
      getGValues in class P<V>
    • hasTraversal

      public boolean hasTraversal()
      Description copied from class: P
      Determines if this predicate holds a child traversal whose result is resolved at runtime.
      Overrides:
      hasTraversal in class P<V>
    • resolve

      public void resolve(Traverser.Admin<?> traverser)
      Description copied from class: P
      Resolves the child traversal(s) against the given traverser, replacing the traversal value with the resolved literal(s) for this test cycle. If no traversal is present, this method returns immediately.
      Overrides:
      resolve in class P<V>