Class CypherConditionRenamer
java.lang.Object
org.evomaster.client.java.controller.neo4j.heuristics.CypherConditionRenamer
Deep-clones a
CypherCondition (or Operand) while substituting the variable names it
refers to, according to a rename map. Used by Neo4jPatternExpander when it clones a
variable-length edge into a chain: the edge's type/property conditions and the endpoints' labels
must be re-bound to the fresh variable names of the cloned edges and intermediate nodes.
Only variable names change; operators, literals and structure are preserved. A name not present in the map is left unchanged.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanreferencesVariable(CypherCondition c, String variable) True when the condition referencesvariableas a node/edge variable.static CypherConditionrename(CypherCondition c, Map<String, String> renames) static Operand
-
Method Details
-
rename
-
rename
-
referencesVariable
True when the condition referencesvariableas a node/edge variable. Used to decide which endpoint conditions an intermediate node should inherit.
-