|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jaxen.JaxenHandler
SAXPath XPathHandler
implementation capable
of building Jaxen expression trees which can walk various
different object models.
Field Summary | |
protected boolean |
simplified
|
protected java.util.LinkedList |
stack
|
Constructor Summary | |
JaxenHandler()
Construct. |
Method Summary | |
protected void |
addParameters(FunctionCallExpr function,
java.util.Iterator paramIter)
|
protected void |
addPredicates(Predicated obj,
java.util.Iterator predIter)
|
protected void |
addSteps(LocationPath locationPath,
java.util.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(java.lang.String literal)
|
void |
number(double number)
|
void |
number(int number)
|
protected java.util.LinkedList |
peekFrame()
|
protected java.lang.Object |
pop()
|
protected java.util.LinkedList |
popFrame()
|
protected void |
push(java.lang.Object obj)
|
protected void |
pushFrame()
|
protected void |
returnExpr()
|
void |
setXPathFactory(XPathFactory xpathFactory)
Set the Jaxen XPathFactory to use
during the parse to construct the XPath expression tree. |
protected int |
stackSize()
|
void |
startAbsoluteLocationPath()
|
void |
startAdditiveExpr()
|
void |
startAllNodeStep(int axis)
|
void |
startAndExpr()
|
void |
startCommentNodeStep(int axis)
|
void |
startEqualityExpr()
|
void |
startFilterExpr()
|
void |
startFunction(java.lang.String prefix,
java.lang.String functionName)
|
void |
startMultiplicativeExpr()
|
void |
startNameStep(int axis,
java.lang.String prefix,
java.lang.String localName)
|
void |
startOrExpr()
|
void |
startPathExpr()
|
void |
startPredicate()
|
void |
startProcessingInstructionNodeStep(int axis,
java.lang.String name)
|
void |
startRelationalExpr()
|
void |
startRelativeLocationPath()
|
void |
startTextNodeStep(int axis)
|
void |
startUnaryExpr()
|
void |
startUnionExpr()
|
void |
startXPath()
|
void |
variableReference(java.lang.String prefix,
java.lang.String variableName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean simplified
protected java.util.LinkedList stack
Constructor Detail |
public JaxenHandler()
Method Detail |
public void setXPathFactory(XPathFactory xpathFactory)
XPathFactory
to use
during the parse to construct the XPath expression tree.
xpathFactory
- The factory to use during the parse.public XPathFactory getXPathFactory()
XPathFactory
used
during the parse to construct the XPath expression tree.
XPathFactory
used during the parse.public XPathExpr getXPathExpr()
This method is only valid once XPathReader.parse(...)
successfully returned.
public XPathExpr getXPathExpr(boolean shouldSimplify)
This method is only valid once XPathReader.parse(...)
successfully returned.
public void startXPath() throws JaxenException
startXPath
in interface org.saxpath.XPathHandler
JaxenException
public void endXPath() throws JaxenException
endXPath
in interface org.saxpath.XPathHandler
JaxenException
public void startPathExpr() throws JaxenException
startPathExpr
in interface org.saxpath.XPathHandler
JaxenException
public void endPathExpr() throws JaxenException
endPathExpr
in interface org.saxpath.XPathHandler
JaxenException
public void startAbsoluteLocationPath() throws JaxenException
startAbsoluteLocationPath
in interface org.saxpath.XPathHandler
JaxenException
public void endAbsoluteLocationPath() throws JaxenException
endAbsoluteLocationPath
in interface org.saxpath.XPathHandler
JaxenException
public void startRelativeLocationPath() throws JaxenException
startRelativeLocationPath
in interface org.saxpath.XPathHandler
JaxenException
public void endRelativeLocationPath() throws JaxenException
endRelativeLocationPath
in interface org.saxpath.XPathHandler
JaxenException
protected void endLocationPath() throws JaxenException
JaxenException
protected void addSteps(LocationPath locationPath, java.util.Iterator stepIter)
public void startNameStep(int axis, java.lang.String prefix, java.lang.String localName) throws JaxenException
startNameStep
in interface org.saxpath.XPathHandler
JaxenException
public void endNameStep() throws JaxenException
endNameStep
in interface org.saxpath.XPathHandler
JaxenException
public void startTextNodeStep(int axis) throws JaxenException
startTextNodeStep
in interface org.saxpath.XPathHandler
JaxenException
public void endTextNodeStep() throws JaxenException
endTextNodeStep
in interface org.saxpath.XPathHandler
JaxenException
public void startCommentNodeStep(int axis) throws JaxenException
startCommentNodeStep
in interface org.saxpath.XPathHandler
JaxenException
public void endCommentNodeStep() throws JaxenException
endCommentNodeStep
in interface org.saxpath.XPathHandler
JaxenException
public void startAllNodeStep(int axis) throws JaxenException
startAllNodeStep
in interface org.saxpath.XPathHandler
JaxenException
public void endAllNodeStep() throws JaxenException
endAllNodeStep
in interface org.saxpath.XPathHandler
JaxenException
public void startProcessingInstructionNodeStep(int axis, java.lang.String name) throws JaxenException
startProcessingInstructionNodeStep
in interface org.saxpath.XPathHandler
JaxenException
public void endProcessingInstructionNodeStep() throws JaxenException
endProcessingInstructionNodeStep
in interface org.saxpath.XPathHandler
JaxenException
protected void endStep()
public void startPredicate() throws JaxenException
startPredicate
in interface org.saxpath.XPathHandler
JaxenException
public void endPredicate() throws JaxenException
endPredicate
in interface org.saxpath.XPathHandler
JaxenException
public void startFilterExpr() throws JaxenException
startFilterExpr
in interface org.saxpath.XPathHandler
JaxenException
public void endFilterExpr() throws JaxenException
endFilterExpr
in interface org.saxpath.XPathHandler
JaxenException
protected void addPredicates(Predicated obj, java.util.Iterator predIter)
protected void returnExpr()
public void startOrExpr() throws JaxenException
startOrExpr
in interface org.saxpath.XPathHandler
JaxenException
public void endOrExpr(boolean create) throws JaxenException
endOrExpr
in interface org.saxpath.XPathHandler
JaxenException
public void startAndExpr() throws JaxenException
startAndExpr
in interface org.saxpath.XPathHandler
JaxenException
public void endAndExpr(boolean create) throws JaxenException
endAndExpr
in interface org.saxpath.XPathHandler
JaxenException
public void startEqualityExpr() throws JaxenException
startEqualityExpr
in interface org.saxpath.XPathHandler
JaxenException
public void endEqualityExpr(int operator) throws JaxenException
endEqualityExpr
in interface org.saxpath.XPathHandler
JaxenException
public void startRelationalExpr() throws JaxenException
startRelationalExpr
in interface org.saxpath.XPathHandler
JaxenException
public void endRelationalExpr(int operator) throws JaxenException
endRelationalExpr
in interface org.saxpath.XPathHandler
JaxenException
public void startAdditiveExpr() throws JaxenException
startAdditiveExpr
in interface org.saxpath.XPathHandler
JaxenException
public void endAdditiveExpr(int operator) throws JaxenException
endAdditiveExpr
in interface org.saxpath.XPathHandler
JaxenException
public void startMultiplicativeExpr() throws JaxenException
startMultiplicativeExpr
in interface org.saxpath.XPathHandler
JaxenException
public void endMultiplicativeExpr(int operator) throws JaxenException
endMultiplicativeExpr
in interface org.saxpath.XPathHandler
JaxenException
public void startUnaryExpr() throws JaxenException
startUnaryExpr
in interface org.saxpath.XPathHandler
JaxenException
public void endUnaryExpr(int operator) throws JaxenException
endUnaryExpr
in interface org.saxpath.XPathHandler
JaxenException
public void startUnionExpr() throws JaxenException
startUnionExpr
in interface org.saxpath.XPathHandler
JaxenException
public void endUnionExpr(boolean create) throws JaxenException
endUnionExpr
in interface org.saxpath.XPathHandler
JaxenException
public void number(int number) throws JaxenException
number
in interface org.saxpath.XPathHandler
JaxenException
public void number(double number) throws JaxenException
number
in interface org.saxpath.XPathHandler
JaxenException
public void literal(java.lang.String literal) throws JaxenException
literal
in interface org.saxpath.XPathHandler
JaxenException
public void variableReference(java.lang.String prefix, java.lang.String variableName) throws JaxenException
variableReference
in interface org.saxpath.XPathHandler
JaxenException
public void startFunction(java.lang.String prefix, java.lang.String functionName) throws JaxenException
startFunction
in interface org.saxpath.XPathHandler
JaxenException
public void endFunction() throws JaxenException
endFunction
in interface org.saxpath.XPathHandler
JaxenException
protected void addParameters(FunctionCallExpr function, java.util.Iterator paramIter)
protected int stackSize()
protected void push(java.lang.Object obj)
protected java.lang.Object pop()
protected boolean canPop()
protected void pushFrame()
protected java.util.LinkedList popFrame()
protected java.util.LinkedList peekFrame()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |