Class MatchOperation
java.lang.Object
org.evomaster.client.java.controller.neo4j.operations.CypherQueryOperation
org.evomaster.client.java.controller.neo4j.operations.MatchOperation
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 Summary
ConstructorsConstructorDescriptionMatchOperation(MatchPattern pattern, List<CypherCondition> conditions) MatchOperation(MatchPattern pattern, List<CypherCondition> conditions, String pathVariable) MatchOperation(MatchPattern pattern, List<CypherCondition> conditions, List<String> pathVariables, boolean optional) -
Method Summary
Modifier and TypeMethodDescriptionReturns all conditions extracted from both inline patterns and WHERE clause.Returns the first path variable assigned by the pattern (e.g.Returns every path variable assigned by the query, in source order (empty if there are none).Returns the structural pattern containing nodes and edges.booleanReturns true when the query involves anOPTIONAL MATCH.toString()
-
Constructor Details
-
MatchOperation
-
MatchOperation
-
MatchOperation
public MatchOperation(MatchPattern pattern, List<CypherCondition> conditions, List<String> pathVariables, boolean optional)
-
-
Method Details
-
getPattern
Returns the structural pattern containing nodes and edges. -
getConditions
Returns all conditions extracted from both inline patterns and WHERE clause. -
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
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 anOPTIONAL MATCH. The match still succeeds with no binding when the pattern is absent, so a consumer should not penalize a missing optional part. -
toString
-