edu.uky.rch.ept.data.filesystem.cxpath
Class Parser

java.lang.Object
  extended byedu.uky.rch.ept.data.filesystem.cxpath.Parser

public class Parser
extends Object

Utility class for parsing concurrent XPath expressions. The expressions match the following grammar; forms marked with {braces} indicate currently unimplemented features.

TODO: generate a parser with ANTLR or such. TODO: support full XPath syntax.

Author:
neil

Constructor Summary
Parser()
           
 
Method Summary
static LocationStep[] parse(String expr)
          Parse a concurrent XPath expression into its component LocationSteps.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parser

public Parser()
Method Detail

parse

public static LocationStep[] parse(String expr)
                            throws CXPathException
Parse a concurrent XPath expression into its component LocationSteps.

Parameters:
expr - the expression to parse; must be a location path.
Returns:
Returns an array representing the location steps in the expression.
Throws:
CXPathException - if there is an error parsing the expression.