|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.xml.xpath.NodeSetExpr com.novell.xml.xpath.RelativeLocationPath
Class representing an XPath RelativeLocationPath. A RelativeLocationPath is composed of a series of Steps that are composed left-to-right. The result of a LocationPath is a node-set
AbsoluteLocationPath
,
Step
Constructor Summary | |
RelativeLocationPath(RelativeLocationPath lhs,
RelativeLocationPath rhs)
|
|
RelativeLocationPath(Step step)
Construct a RelativeLocationPath with a single step |
|
RelativeLocationPath(Step[] steps)
Construct a RelativeLocationPath with multiple steps. |
Method Summary | |
protected void |
evalStep(NodeSet result,
int index,
Node contextNode,
ExpressionContext context)
Recursively evaluate a step relative to a context. |
ExpressionValue |
evaluate(Node contextNode,
ExpressionContext context)
Evaluate this RelativeLocationPath with respect to a context node and expression context. |
String |
toString()
Provide a readable description for debugging. |
Methods inherited from class com.novell.xml.xpath.NodeSetExpr |
dump, getResultType, isConstant, registerForReset |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.novell.xml.xpath.Expression |
dump, getResultType, isConstant, registerForReset |
Constructor Detail |
public RelativeLocationPath(Step step)
step
- The step in the location pathpublic RelativeLocationPath(Step[] steps)
steps
- Array of steps that compose the pathpublic RelativeLocationPath(RelativeLocationPath lhs, RelativeLocationPath rhs)
Method Detail |
public String toString()
public ExpressionValue evaluate(Node contextNode, ExpressionContext context) throws XPathEvaluationException
evaluate
in interface Expression
contextNode
- The context nodecontext
- The expression context
XPathEvaluationException
protected void evalStep(NodeSet result, int index, Node contextNode, ExpressionContext context) throws XPathEvaluationException
result
- The NodeSet to contain result nodesindex
- The current index into the steps arraycontextNode
- The context node for this stepcontext
- The expression context for this step
XPathEvaluationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |