java.lang.Object
org.evomaster.client.java.controller.neo4j.operations.CypherQueryOperation
org.evomaster.client.java.controller.neo4j.operations.MatchOperation

public class MatchOperation extends CypherQueryOperation
Represents a parsed MATCH query containing the structural pattern and extracted conditions.

The structural pattern contains only the graph topology (nodes and edges). Conditions include labels, relationship types, property constraints, and WHERE clause predicates.

A query may assign several path variables (MATCH p = ..., q = ...); all are kept in order. isOptional() is true when the query involves an OPTIONAL MATCH (left-join semantics).

  • Constructor Details

  • Method Details

    • getPattern

      public MatchPattern getPattern()
      Returns the structural pattern containing nodes and edges.
    • getConditions

      public List<CypherCondition> getConditions()
      Returns all conditions extracted from both inline patterns and WHERE clause.
    • getPathVariable

      public String getPathVariable()
      Returns the first path variable assigned by the pattern (e.g. path = ...), or null if none. Kept for callers that expect a single assignment; getPathVariables() returns all.
    • getPathVariables

      public List<String> getPathVariables()
      Returns every path variable assigned by the query, in source order (empty if there are none).
    • isOptional

      public boolean isOptional()
      Returns true when the query involves an OPTIONAL MATCH. The match still succeeds with no binding when the pattern is absent, so a consumer should not penalize a missing optional part.
    • toString

      public String toString()
      Overrides:
      toString in class Object