Class ContextMatchStepPattern
java.lang.Object
org.loboevolution.apache.xpath.Expression
org.loboevolution.apache.xpath.patterns.NodeTest
org.loboevolution.apache.xpath.patterns.StepPattern
org.loboevolution.apache.xpath.patterns.ContextMatchStepPattern
- All Implemented Interfaces:
SourceLocator
,SubContextList
,ExpressionNode
,XPathVisitable
Special context node pattern matcher.
-
Field Summary
Fields inherited from class org.loboevolution.apache.xpath.patterns.StepPattern
m_axis
Fields inherited from class org.loboevolution.apache.xpath.patterns.NodeTest
m_name, m_whatToShow, SCORE_NODETEST, SCORE_NONE, SCORE_NSWILD, SCORE_OTHER, SCORE_QNAME, SHOW_BYFUNCTION, WILD
-
Constructor Summary
ConstructorDescriptionContextMatchStepPattern
(int axis, int paxis) Construct a ContextMatchStepPattern. -
Method Summary
Modifier and TypeMethodDescriptionexecute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.Methods inherited from class org.loboevolution.apache.xpath.patterns.StepPattern
calcScore, calcTargetString, callSubtreeVisitors, callVisitors, canTraverseOutsideSubtree, deepEquals, execute, execute, executePredicates, executeRelativePathPattern, getAxis, getLastPos, getPredicate, getPredicateCount, getPredicates, getProximityPosition, getRelativePathPattern, setAxis, setPredicates, setRelativePathPattern, toString
Methods inherited from class org.loboevolution.apache.xpath.patterns.NodeTest
getLocalName, getNamespace, getNodeTypeTest, getStaticScore, getWhatToShow, initNodeTest, initNodeTest, setLocalName, setNamespace, setStaticScore, setWhatToShow
Methods inherited from class org.loboevolution.apache.xpath.Expression
asIterator, asNode, assertion, bool, error, execute, exprGetParent, exprSetParent, getColumnNumber, getExpressionOwner, getLineNumber, getPublicId, getSystemId, isSameClass, isStableNumber, num
-
Constructor Details
-
ContextMatchStepPattern
public ContextMatchStepPattern(int axis, int paxis) Construct a ContextMatchStepPattern.- Parameters:
axis
- the axispaxis
- the p axis
-
-
Method Details
-
execute
Execute an expression in the XPath runtime context, and return the result of the expression.- Overrides:
execute
in classStepPattern
- Parameters:
xctxt
- The XPath runtime context.- Returns:
- The result of the expression in the form of a
XObject
. - Throws:
TransformerException
- if a runtime exception occurs.
-