org.jaxen
Class JaxenHandler
java.lang.Object
|
+--org.jaxen.JaxenHandler
- All Implemented Interfaces:
- org.saxpath.XPathHandler
- Direct Known Subclasses:
- PatternHandler
- public class JaxenHandler
- extends Object
- implements org.saxpath.XPathHandler
SAXPath XPathHandler implementation capable
of building Jaxen expression trees which can walk various
different object models.
- Author:
- bob mcwhirter (bob@werken.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
simplified
protected boolean simplified
stack
protected LinkedList stack
JaxenHandler
public JaxenHandler()
- Construct.
setXPathFactory
public void setXPathFactory(XPathFactory xpathFactory)
- Set the Jaxen
XPathFactory to use
during the parse to construct the XPath expression tree.
- Parameters:
xpathFactory - The factory to use during the parse.
getXPathFactory
public XPathFactory getXPathFactory()
- Retrieve the Jaxen
XPathFactory used
during the parse to construct the XPath expression tree.
- Returns:
- The
XPathFactory used during the parse.
getXPathExpr
public XPathExpr getXPathExpr()
- Retrieve the simplified Jaxen XPath expression tree.
This method is only valid once XPathReader.parse(...)
successfully returned.
- Returns:
- The XPath expression tree.
getXPathExpr
public XPathExpr getXPathExpr(boolean shouldSimplify)
- Retrieve the Jaxen XPath expression tree, optionally
simplified.
This method is only valid once XPathReader.parse(...)
successfully returned.
- Returns:
- The XPath expression tree.
startXPath
public void startXPath()
throws JaxenException
- Specified by:
startXPath in interface org.saxpath.XPathHandler
endXPath
public void endXPath()
throws JaxenException
- Specified by:
endXPath in interface org.saxpath.XPathHandler
startPathExpr
public void startPathExpr()
throws JaxenException
- Specified by:
startPathExpr in interface org.saxpath.XPathHandler
endPathExpr
public void endPathExpr()
throws JaxenException
- Specified by:
endPathExpr in interface org.saxpath.XPathHandler
startAbsoluteLocationPath
public void startAbsoluteLocationPath()
throws JaxenException
- Specified by:
startAbsoluteLocationPath in interface org.saxpath.XPathHandler
endAbsoluteLocationPath
public void endAbsoluteLocationPath()
throws JaxenException
- Specified by:
endAbsoluteLocationPath in interface org.saxpath.XPathHandler
startRelativeLocationPath
public void startRelativeLocationPath()
throws JaxenException
- Specified by:
startRelativeLocationPath in interface org.saxpath.XPathHandler
endRelativeLocationPath
public void endRelativeLocationPath()
throws JaxenException
- Specified by:
endRelativeLocationPath in interface org.saxpath.XPathHandler
endLocationPath
protected void endLocationPath()
throws JaxenException
addSteps
protected void addSteps(LocationPath locationPath,
Iterator stepIter)
startNameStep
public void startNameStep(int axis,
String prefix,
String localName)
throws JaxenException
- Specified by:
startNameStep in interface org.saxpath.XPathHandler
endNameStep
public void endNameStep()
throws JaxenException
- Specified by:
endNameStep in interface org.saxpath.XPathHandler
startTextNodeStep
public void startTextNodeStep(int axis)
throws JaxenException
- Specified by:
startTextNodeStep in interface org.saxpath.XPathHandler
endTextNodeStep
public void endTextNodeStep()
throws JaxenException
- Specified by:
endTextNodeStep in interface org.saxpath.XPathHandler
startCommentNodeStep
public void startCommentNodeStep(int axis)
throws JaxenException
- Specified by:
startCommentNodeStep in interface org.saxpath.XPathHandler
endCommentNodeStep
public void endCommentNodeStep()
throws JaxenException
- Specified by:
endCommentNodeStep in interface org.saxpath.XPathHandler
startAllNodeStep
public void startAllNodeStep(int axis)
throws JaxenException
- Specified by:
startAllNodeStep in interface org.saxpath.XPathHandler
endAllNodeStep
public void endAllNodeStep()
throws JaxenException
- Specified by:
endAllNodeStep in interface org.saxpath.XPathHandler
startProcessingInstructionNodeStep
public void startProcessingInstructionNodeStep(int axis,
String name)
throws JaxenException
- Specified by:
startProcessingInstructionNodeStep in interface org.saxpath.XPathHandler
endProcessingInstructionNodeStep
public void endProcessingInstructionNodeStep()
throws JaxenException
- Specified by:
endProcessingInstructionNodeStep in interface org.saxpath.XPathHandler
endStep
protected void endStep()
startPredicate
public void startPredicate()
throws JaxenException
- Specified by:
startPredicate in interface org.saxpath.XPathHandler
endPredicate
public void endPredicate()
throws JaxenException
- Specified by:
endPredicate in interface org.saxpath.XPathHandler
startFilterExpr
public void startFilterExpr()
throws JaxenException
- Specified by:
startFilterExpr in interface org.saxpath.XPathHandler
endFilterExpr
public void endFilterExpr()
throws JaxenException
- Specified by:
endFilterExpr in interface org.saxpath.XPathHandler
addPredicates
protected void addPredicates(Predicated obj,
Iterator predIter)
returnExpr
protected void returnExpr()
startOrExpr
public void startOrExpr()
throws JaxenException
- Specified by:
startOrExpr in interface org.saxpath.XPathHandler
endOrExpr
public void endOrExpr(boolean create)
throws JaxenException
- Specified by:
endOrExpr in interface org.saxpath.XPathHandler
startAndExpr
public void startAndExpr()
throws JaxenException
- Specified by:
startAndExpr in interface org.saxpath.XPathHandler
endAndExpr
public void endAndExpr(boolean create)
throws JaxenException
- Specified by:
endAndExpr in interface org.saxpath.XPathHandler
startEqualityExpr
public void startEqualityExpr()
throws JaxenException
- Specified by:
startEqualityExpr in interface org.saxpath.XPathHandler
endEqualityExpr
public void endEqualityExpr(int operator)
throws JaxenException
- Specified by:
endEqualityExpr in interface org.saxpath.XPathHandler
startRelationalExpr
public void startRelationalExpr()
throws JaxenException
- Specified by:
startRelationalExpr in interface org.saxpath.XPathHandler
endRelationalExpr
public void endRelationalExpr(int operator)
throws JaxenException
- Specified by:
endRelationalExpr in interface org.saxpath.XPathHandler
startAdditiveExpr
public void startAdditiveExpr()
throws JaxenException
- Specified by:
startAdditiveExpr in interface org.saxpath.XPathHandler
endAdditiveExpr
public void endAdditiveExpr(int operator)
throws JaxenException
- Specified by:
endAdditiveExpr in interface org.saxpath.XPathHandler
startMultiplicativeExpr
public void startMultiplicativeExpr()
throws JaxenException
- Specified by:
startMultiplicativeExpr in interface org.saxpath.XPathHandler
endMultiplicativeExpr
public void endMultiplicativeExpr(int operator)
throws JaxenException
- Specified by:
endMultiplicativeExpr in interface org.saxpath.XPathHandler
startUnaryExpr
public void startUnaryExpr()
throws JaxenException
- Specified by:
startUnaryExpr in interface org.saxpath.XPathHandler
endUnaryExpr
public void endUnaryExpr(int operator)
throws JaxenException
- Specified by:
endUnaryExpr in interface org.saxpath.XPathHandler
startUnionExpr
public void startUnionExpr()
throws JaxenException
- Specified by:
startUnionExpr in interface org.saxpath.XPathHandler
endUnionExpr
public void endUnionExpr(boolean create)
throws JaxenException
- Specified by:
endUnionExpr in interface org.saxpath.XPathHandler
number
public void number(int number)
throws JaxenException
- Specified by:
number in interface org.saxpath.XPathHandler
number
public void number(double number)
throws JaxenException
- Specified by:
number in interface org.saxpath.XPathHandler
literal
public void literal(String literal)
throws JaxenException
- Specified by:
literal in interface org.saxpath.XPathHandler
variableReference
public void variableReference(String prefix,
String variableName)
throws JaxenException
- Specified by:
variableReference in interface org.saxpath.XPathHandler
startFunction
public void startFunction(String prefix,
String functionName)
throws JaxenException
- Specified by:
startFunction in interface org.saxpath.XPathHandler
endFunction
public void endFunction()
throws JaxenException
- Specified by:
endFunction in interface org.saxpath.XPathHandler
addParameters
protected void addParameters(FunctionCallExpr function,
Iterator paramIter)
stackSize
protected int stackSize()
push
protected void push(Object obj)
pop
protected Object pop()
canPop
protected boolean canPop()
pushFrame
protected void pushFrame()
popFrame
protected LinkedList popFrame()
peekFrame
protected LinkedList peekFrame()
Copyright © 2002 bob mcwhirter & James Strachan. All Rights Reserved. Hosted by