|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--clark.xpath.MainXPath
This is the main method of the XPath engine. It first calls the tree constructor to translate the string XPath expression to tree for easier evaluation. After that the execute method is called for the tree. All these methods here are static, so they can be accessed from outside the package separately.
| Constructor Summary | |
MainXPath()
|
|
| Method Summary | |
static boolean |
checkRoot(clark.xpath.GeneralNode tree)
Checks if the root of the XPath tree starts with a root axis. |
static clark.xpath.GeneralNode |
compile(java.lang.String expr)
Converts a string XPath expression into tree. |
static java.util.LinkedList |
execute(clark.xpath.GeneralNode tree,
w3c.dom.Node context)
Evaluates a XPath tree with a DOM tree. |
static clark.xpath.AtomicObject |
executeCanonical(clark.xpath.GeneralNode tree,
w3c.dom.Node context)
|
static java.util.LinkedList |
processXPath(java.lang.String expr,
w3c.dom.Node context)
First compiles the XPath string to tree and after that evaluates it. |
static clark.xpath.AtomicObject |
processXPathCanonical(java.lang.String expr,
w3c.dom.Node context)
|
static java.util.LinkedList |
toList(clark.xpath.AtomicObject obj)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MainXPath()
| Method Detail |
public static clark.xpath.GeneralNode compile(java.lang.String expr)
throws ParseException
expr - The XPath expression to be translated (parsed).
ParseException
public static java.util.LinkedList execute(clark.xpath.GeneralNode tree,
w3c.dom.Node context)
throws ParseException
tree - The root of the XPath tree;context - The root of the DOM tree (subtree)
ParseExceptionpublic static boolean checkRoot(clark.xpath.GeneralNode tree)
public static java.util.LinkedList processXPath(java.lang.String expr,
w3c.dom.Node context)
throws ParseException
expr - The string XPath expression to be compiled.context - The root of the DOM tree on which the XPath should be evaluated.
ParseException
public static clark.xpath.AtomicObject processXPathCanonical(java.lang.String expr,
w3c.dom.Node context)
throws ParseException
ParseException
public static clark.xpath.AtomicObject executeCanonical(clark.xpath.GeneralNode tree,
w3c.dom.Node context)
public static java.util.LinkedList toList(clark.xpath.AtomicObject obj)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||