addParameters
protected void addParameters(FunctionCallExpr function,
Iterator paramIter)
addPredicates
protected void addPredicates(Predicated obj,
Iterator predIter)
addSteps
protected void addSteps(LocationPath locationPath,
Iterator stepIter)
canPop
protected boolean canPop()
endAllNodeStep
public void endAllNodeStep()
Receive notification of the end of a node() step.
- endAllNodeStep in interface XPathHandler
endAndExpr
public void endAndExpr(boolean create)
throws JaxenException
Receive notification of the end of an 'and' expression.
- endAndExpr in interface XPathHandler
create
- flag that indicates if this expression
should truly be instantiated, or if it was just
a pass-through, based upon the grammar productions
endFunction
public void endFunction()
Receive notification of the end of a function call
- endFunction in interface XPathHandler
endNameStep
public void endNameStep()
Receive notification of the end of a NameStep
- endNameStep in interface XPathHandler
endOrExpr
public void endOrExpr(boolean create)
throws JaxenException
Receive notification of the end of an 'or' expression.
- endOrExpr in interface XPathHandler
create
- flag that indicates if this expression
should truly be instantiated, or if it was just
a pass-through, based upon the grammar productions
endStep
protected void endStep()
endTextNodeStep
public void endTextNodeStep()
Receive notification of the end of a text() step.
- endTextNodeStep in interface XPathHandler
endUnionExpr
public void endUnionExpr(boolean create)
throws JaxenException
Receive notification of the end of a union ('|') expression.
- endUnionExpr in interface XPathHandler
create
- flag that indicates if this expression
should truly be instantiated, or if it was just
a pass-through, based upon the grammar productions
getXPathExpr
public XPathExpr getXPathExpr()
Retrieve the simplified Jaxen XPath expression tree.
This method is only valid once
XPathReader.parse(...)
successfully returned.
- 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.
- the XPath expression tree
getXPathFactory
public XPathFactory getXPathFactory()
Retrieve the Jaxen XPathFactory
used
during the parse to construct the XPath expression tree.
- the
XPathFactory
used during the parse.
literal
public void literal(String literal)
throws JaxenException
Receive notification of a literal expression.
- literal in interface XPathHandler
literal
- the string literal value
number
public void number(double number)
throws JaxenException
Receive notification of a number expression.
- number in interface XPathHandler
number
- the number value
number
public void number(int number)
throws JaxenException
Receive notification of a number expression.
- number in interface XPathHandler
number
- the number value
peekFrame
protected LinkedList peekFrame()
pop
protected Object pop()
popFrame
protected LinkedList popFrame()
push
protected void push(Object obj)
pushFrame
protected void pushFrame()
returnExpr
protected void returnExpr()
setXPathFactory
public void setXPathFactory(XPathFactory xpathFactory)
Set the Jaxen XPathFactory
that constructs
the XPath expression tree during the parse.
xpathFactory
- the factory to use during the parse
stackSize
protected int stackSize()
startAdditiveExpr
public void startAdditiveExpr()
Receive notification of the start of an additive ('+' or '-') expression.
- startAdditiveExpr in interface XPathHandler
startAndExpr
public void startAndExpr()
Receive notification of the start of an 'and' expression.
- startAndExpr in interface XPathHandler
startEqualityExpr
public void startEqualityExpr()
Receive notification of the start of an equality ('=' or '!=') expression.
- startEqualityExpr in interface XPathHandler
startFilterExpr
public void startFilterExpr()
Receive notification of the start of a filter expression.
- startFilterExpr in interface XPathHandler
startFunction
public void startFunction(String prefix,
String functionName)
throws JaxenException
Receive notification of a function call.
- startFunction in interface XPathHandler
prefix
- the namespace prefix of the functionfunctionName
- the local name of the function
startMultiplicativeExpr
public void startMultiplicativeExpr()
Receive notification of the start of a multiplicative ('*', 'div' or 'mod') expression.
- startMultiplicativeExpr in interface XPathHandler
startNameStep
public void startNameStep(int axis,
String prefix,
String localName)
throws JaxenException
Receive notification of the start of a name step.
- startNameStep in interface XPathHandler
axis
- the axis of this stepprefix
- the namespace prefix for the name to test,
or the empty string if no prefix is specifiedlocalName
- the local part of the name to test
startOrExpr
public void startOrExpr()
Receive notification of the start of an 'or' expression.
- startOrExpr in interface XPathHandler
startPathExpr
public void startPathExpr()
Receive notification of the start of a path expression.
- startPathExpr in interface XPathHandler
startPredicate
public void startPredicate()
Receive notification of the start of a predicate.
- startPredicate in interface XPathHandler
startProcessingInstructionNodeStep
public void startProcessingInstructionNodeStep(int axis,
String name)
throws JaxenException
Receive notification of the start of a processing-instruction(...) step.
- startProcessingInstructionNodeStep in interface XPathHandler
axis
- the axis of this stepname
- the name of the processing-instruction, or
the empty string if none is specified
startRelationalExpr
public void startRelationalExpr()
Receive notification of the start of a relational ('<', '>', '<=', or '>=') expression.
- startRelationalExpr in interface XPathHandler
startUnaryExpr
public void startUnaryExpr()
Receive notification of the start of a unary ('+' or '-') expression.
- startUnaryExpr in interface XPathHandler
startUnionExpr
public void startUnionExpr()
Receive notification of the start of a union ('|') expression.
- startUnionExpr in interface XPathHandler
startXPath
public void startXPath()
Receive notification of the start of an XPath expression parse.
- startXPath in interface XPathHandler
variableReference
public void variableReference(String prefix,
String variableName)
throws JaxenException
Receive notification of a variable-reference expression.
- variableReference in interface XPathHandler
prefix
- the namespace prefix of the variablevariableName
- the local name of the variable