Interface CypherParser

All Known Implementing Classes:
Cypher25AntlrParser

public interface CypherParser
Parses the MATCH clause of a Cypher query into a structural MatchOperation.
Implementations are built on top of the official Neo4j Cypher grammar (ANTLR4), so that any query accepted by this parser is guaranteed to be valid for Neo4j.
  • Method Summary

    Modifier and Type
    Method
    Description
    parse(String query)
    Parse a Cypher query, extracting its MATCH pattern and conditions.
  • Method Details

    • parse

      Parse a Cypher query, extracting its MATCH pattern and conditions.
      Parameters:
      query - the Cypher query string
      Returns:
      the structural pattern and conditions of the MATCH clause
      Throws:
      CypherParserException - if the query is not syntactically valid Cypher, or does not contain a MATCH clause