Package org.htmlunit.xpath.patterns
Class ContextMatchStepPattern
- java.lang.Object
-
- org.htmlunit.xpath.Expression
-
- org.htmlunit.xpath.patterns.NodeTest
-
- org.htmlunit.xpath.patterns.StepPattern
-
- org.htmlunit.xpath.patterns.ContextMatchStepPattern
-
- All Implemented Interfaces:
javax.xml.transform.SourceLocator
,SubContextList
,ExpressionNode
,XPathVisitable
public class ContextMatchStepPattern extends StepPattern
Special context node pattern matcher.
-
-
Field Summary
-
Fields inherited from class org.htmlunit.xpath.patterns.StepPattern
m_axis, m_predicates, m_relativePathPattern, m_targetString
-
Fields inherited from class org.htmlunit.xpath.patterns.NodeTest
m_name, m_namespace, m_score, m_whatToShow, SCORE_NODETEST, SCORE_NONE, SCORE_NSWILD, SCORE_OTHER, SCORE_QNAME, SHOW_BYFUNCTION, WILD
-
-
Constructor Summary
Constructors Constructor Description ContextMatchStepPattern(int axis, int paxis)
Construct a ContextMatchStepPattern.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XObject
execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.-
Methods inherited from class org.htmlunit.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.htmlunit.xpath.patterns.NodeTest
getLocalName, getNamespace, getNodeTypeTest, getStaticScore, getWhatToShow, initNodeTest, initNodeTest, setLocalName, setNamespace, setStaticScore, setWhatToShow
-
Methods inherited from class org.htmlunit.xpath.Expression
asIterator, asNode, assertion, bool, error, execute, exprGetParent, exprSetParent, getColumnNumber, getExpressionOwner, getLineNumber, getPublicId, getSystemId, isSameClass, isStableNumber, num
-
-
-
-
Method Detail
-
execute
public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException
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:
javax.xml.transform.TransformerException
- if a runtime exception occurs.
-
-