Class QuantifiedPathPattern

java.lang.Object
org.evomaster.client.java.controller.neo4j.operations.QuantifiedPathPattern

public class QuantifiedPathPattern extends Object
A quantified path pattern (QPP), i.e. a sub-pattern repeated a number of times, such as ((a)-[:KNOWS]->(b)){1,3}.
Unlike a variable-length relationship (*1..3), which repeats a single edge, a QPP repeats an entire MatchPattern (multiple nodes and edges, and possibly nested QPPs). The repetition bounds are [min, max], where a null max means unbounded (+ or *).
The labels, relationship types, properties and inline WHERE that constrain the sub-pattern are kept in getConditions(), scoped to this QPP rather than mixed into the outer operation's list — so when the calculator expands the repetition it can clone the sub-pattern's conditions per hop.
  • Constructor Details

  • Method Details

    • getSubPattern

      public MatchPattern getSubPattern()
    • getConditions

      public List<CypherCondition> getConditions()
      Returns the conditions scoped to this sub-pattern (labels, relationship types, properties, inline WHERE), in source order. Empty when the sub-pattern is purely structural.
    • getMin

      public int getMin()
    • getMax

      public Integer getMax()
    • isUnboundedMax

      public boolean isUnboundedMax()
    • toString

      public String toString()
      Overrides:
      toString in class Object