org.jaxen
public class JaxenHandler extends Object implements XPathHandler
XPathHandler
implementation capable
of building Jaxen expression trees which can walk various
different object models.
Field Summary | |
---|---|
protected boolean | simplified
? |
protected LinkedList | stack
This may be changed to an ArrayList in the future (i.e. version >= 1.2).
|
XPathExpr | xpath |
XPathFactory | xpathFactory |
Constructor Summary | |
---|---|
JaxenHandler() Constructor |
Method Summary | |
---|---|
protected void | addParameters(FunctionCallExpr function, Iterator paramIter) |
protected void | addPredicates(Predicated obj, Iterator predIter) |
protected void | addSteps(LocationPath locationPath, Iterator stepIter) |
protected boolean | canPop() |
void | endAbsoluteLocationPath() |
void | endAdditiveExpr(int operator) |
void | endAllNodeStep() |
void | endAndExpr(boolean create) |
void | endCommentNodeStep() |
void | endEqualityExpr(int operator) |
void | endFilterExpr() |
void | endFunction() |
protected void | endLocationPath() |
void | endMultiplicativeExpr(int operator) |
void | endNameStep() |
void | endOrExpr(boolean create) |
void | endPathExpr() |
void | endPredicate() |
void | endProcessingInstructionNodeStep() |
void | endRelationalExpr(int operator) |
void | endRelativeLocationPath() |
protected void | endStep() |
void | endTextNodeStep() |
void | endUnaryExpr(int operator) |
void | endUnionExpr(boolean create) |
void | endXPath() |
XPathExpr | getXPathExpr() Retrieve the simplified Jaxen XPath expression tree.
|
XPathExpr | getXPathExpr(boolean shouldSimplify) Retrieve the Jaxen XPath expression tree, optionally
simplified.
|
XPathFactory | getXPathFactory() Retrieve the Jaxen XPathFactory used
during the parse to construct the XPath expression tree.
|
void | literal(String literal) |
void | number(int number) |
void | number(double number) |
protected LinkedList | peekFrame() |
protected Object | pop() |
protected LinkedList | popFrame() |
protected void | push(Object obj) |
protected void | pushFrame() |
protected void | returnExpr() |
void | setXPathFactory(XPathFactory xpathFactory) Set the Jaxen XPathFactory that constructs
the XPath expression tree during the parse.
|
protected int | stackSize() |
void | startAbsoluteLocationPath() |
void | startAdditiveExpr() |
void | startAllNodeStep(int axis) |
void | startAndExpr() |
void | startCommentNodeStep(int axis) |
void | startEqualityExpr() |
void | startFilterExpr() |
void | startFunction(String prefix, String functionName) |
void | startMultiplicativeExpr() |
void | startNameStep(int axis, String prefix, String localName) |
void | startOrExpr() |
void | startPathExpr() |
void | startPredicate() |
void | startProcessingInstructionNodeStep(int axis, String name) |
void | startRelationalExpr() |
void | startRelativeLocationPath() |
void | startTextNodeStep(int axis) |
void | startUnaryExpr() |
void | startUnionExpr() |
void | startXPath() |
void | variableReference(String prefix, String variableName) |
This method is only valid once XPathReader.parse(...)
successfully returned.
Returns: the XPath expression tree
This method is only valid once XPathReader.parse(...)
successfully returned.
Parameters: shouldSimplify ????
Returns: the XPath expression tree
XPathFactory
used
during the parse to construct the XPath expression tree.
Returns: the XPathFactory
used during the parse.
XPathFactory
that constructs
the XPath expression tree during the parse.
Parameters: xpathFactory the factory to use during the parse