Package com.evolvedbinary.xpath.parser
Class XPathUtil
- java.lang.Object
-
- com.evolvedbinary.xpath.parser.XPathUtil
-
public class XPathUtil extends Object
Simple utility class showing how to use the XPathParser Created by aretter on 16/03/2016.
-
-
Constructor Summary
Constructors Constructor Description XPathUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)static ExprparseXPath(String xpath, PrintStream out, PrintStream err)Parses an XPath Expression and generates an AST
-
-
-
Method Detail
-
main
public static final void main(String[] args)
-
parseXPath
public static Expr parseXPath(String xpath, PrintStream out, PrintStream err)
Parses an XPath Expression and generates an AST- Parameters:
xpath- The XPath to parseout- Either a print stream for receiving a debug print of the NodeTree generated by the parser, or null otherwiseerr- Either a print stream for receiving errors that occurred during parsing or null otherwise- Returns:
- An
Exprwhich is the root of the generated AST
-
-