Uses of Class
org.htmlunit.xpath.XPathContext
-
Packages that use XPathContext Package Description org.htmlunit.xpath Implementation of XPath; for the most part, only classes meant for public use are found at this root level of the XPath packages.org.htmlunit.xpath.axes Implementation of XPath LocationPath support -- primary classes are LocPathIterator and UnionPathIterator.org.htmlunit.xpath.functions Implements XPath functions -- each function is derived from Function, FunctionOneArg, Function2Args, etc, with number-of-arguments checking being applied mainly at compile time -- this package only implements XPath functions, XSLT functions are found in the "templates" package.org.htmlunit.xpath.objects Implementation of XPath polymorphic type objects -- this package will grow as XPath objects are expanded to support XML Schema data types.org.htmlunit.xpath.operations Support for XPath operations, such as +, -, string(), etc.org.htmlunit.xpath.patterns Implementation of XPath nodeTest support, and XSLT pattern matching support. -
-
Uses of XPathContext in org.htmlunit.xpath
Methods in org.htmlunit.xpath with parameters of type XPathContext Modifier and Type Method Description void
NodeSetDTM. addNodeInDocOrder(int node, boolean test, XPathContext support)
Add the node into a vector of nodes where it should occur in document order.void
NodeSetDTM. addNodeInDocOrder(int node, XPathContext support)
Add the node into a vector of nodes where it should occur in document order.DTMIterator
Expression. asIterator(XPathContext xctxt, int contextNode)
Given an select expression and a context, evaluate the XPath and return the resulting iterator.int
Expression. asNode(XPathContext xctxt)
Return the first node out of the nodeset, if this expression is a nodeset expression.boolean
Expression. bool(XPathContext xctxt)
Evaluate expression to a boolean.void
Expression. error(XPathContext xctxt, java.lang.String msg, java.lang.Object[] args)
Tell the user of an error, and probably throw an exception.void
XPath. error(XPathContext xctxt, java.lang.String msg, java.lang.Object[] args)
Tell the user of an error, and probably throw an exception.abstract XObject
Expression. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
Expression. execute(XPathContext xctxt, boolean destructiveOK)
Execute an expression in the XPath runtime context, and return the result of the expression, but tell that a "safe" object doesn't have to be returned.XObject
Expression. execute(XPathContext xctxt, int currentNode)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
Expression. execute(XPathContext xctxt, int currentNode, DTM dtm, int expType)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
XPath. execute(XPathContext xctxt, int contextNode, PrefixResolver namespaceContext)
Given an expression and a context, evaluate the XPath and return the result.XObject
XPath. execute(XPathContext xctxt, org.w3c.dom.Node contextNode, PrefixResolver namespaceContext)
Given an expression and a context, evaluate the XPath and return the result.double
Expression. num(XPathContext xctxt)
Evaluate expression to a number. -
Uses of XPathContext in org.htmlunit.xpath.axes
Fields in org.htmlunit.xpath.axes declared as XPathContext Modifier and Type Field Description protected XPathContext
LocPathIterator. m_execContext
The XPathContext reference, needed for execution of many operations.Methods in org.htmlunit.xpath.axes that return XPathContext Modifier and Type Method Description XPathContext
LocPathIterator. getXPathContext()
The XPath execution context we are operating on.Methods in org.htmlunit.xpath.axes with parameters of type XPathContext Modifier and Type Method Description DTMIterator
LocPathIterator. asIterator(XPathContext xctxt, int contextNode)
Given an select expression and a context, evaluate the XPath and return the resulting iterator.int
ChildIterator. asNode(XPathContext xctxt)
Return the first node out of the nodeset, if this expression is a nodeset expression.int
DescendantIterator. asNode(XPathContext xctxt)
Return the first node out of the nodeset, if this expression is a nodeset expression.int
LocPathIterator. asNode(XPathContext xctxt)
Return the first node out of the nodeset, if this expression is a nodeset expression.int
SelfIteratorNoPredicate. asNode(XPathContext xctxt)
Return the first node out of the nodeset, if this expression is a nodeset expression.boolean
LocPathIterator. bool(XPathContext xctxt)
Evaluate expression to a boolean.XObject
LocPathIterator. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.static XNodeSet
FilterExprWalker. executeFilterExpr(int context, XPathContext xctxt, PrefixResolver prefixResolver, boolean isTopLevel, Expression expr)
Execute the expression.(package private) boolean
PredicatedNodeTest. executePredicates(int context, XPathContext xctxt)
Process the predicates.int
AxesWalker. getLastPos(XPathContext xctxt)
Get the number of nodes in the node list, which, in the XSLT 1 based counting system, is the last index position.int
FilterExprWalker. getLastPos(XPathContext xctxt)
Get the number of nodes in the node list, which, in the XSLT 1 based counting system, is the last index position.int
LocPathIterator. getLastPos(XPathContext xctxt)
Get the number of nodes in the node list, which, in the XSLT 1 based counting system, is the last index position.abstract int
PredicatedNodeTest. getLastPos(XPathContext xctxt)
Get the number of nodes in the node list, which, in the XSLT 1 based counting system, is the last index position.int
ReverseAxesWalker. getLastPos(XPathContext xctxt)
Get the number of nodes in the node list, which, in the XSLT 1 based counting system, is the last index position.int
SelfIteratorNoPredicate. getLastPos(XPathContext xctxt)
Get the number of nodes in the node list, which, in the XSLT 1 based counting system, is the last index position.int
SubContextList. getLastPos(XPathContext xctxt)
Get the number of nodes in the node list, which, in the XSLT 1 based counting system, is the last index position.int
PredicatedNodeTest. getProximityPosition(XPathContext xctxt)
Get the current sub-context position.int
SubContextList. getProximityPosition(XPathContext xctxt)
Get the current sub-context position. -
Uses of XPathContext in org.htmlunit.xpath.functions
Methods in org.htmlunit.xpath.functions with parameters of type XPathContext Modifier and Type Method Description XObject
FuncBoolean. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
FuncCeiling. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
FuncConcat. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
FuncContains. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
FuncCount. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
FuncFalse. execute(XPathContext xctxt)
Execute the function.XObject
FuncFloor. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
FuncId. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
FuncLang. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
FuncLast. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
FuncLocalPart. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
FuncNamespace. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
FuncNormalizeSpace. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
FuncNot. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
FuncNumber. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
FuncPosition. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
FuncQname. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
FuncRound. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
FuncStartsWith. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
FuncString. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
FuncStringLength. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
FuncSubstring. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
FuncSubstringAfter. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
FuncSubstringBefore. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
FuncSum. execute(XPathContext xctxt)
Execute the function.XObject
Function. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
FuncTranslate. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
FuncTrue. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.protected int
FunctionDef1Arg. getArg0AsNode(XPathContext xctxt)
Execute the first argument expression that is expected to return a nodeset.protected double
FunctionDef1Arg. getArg0AsNumber(XPathContext xctxt)
Execute the first argument expression that is expected to return a number.protected XString
FunctionDef1Arg. getArg0AsString(XPathContext xctxt)
Execute the first argument expression that is expected to return a string.int
FuncLast. getCountOfContextNodeList(XPathContext xctxt)
Get the position in the current context node list.private java.util.List<java.lang.String>
FuncId. getNodesByID(XPathContext xctxt, int docContext, java.lang.String refval, java.util.List<java.lang.String> usedrefs, NodeSetDTM nodeSet, boolean mayBeMore)
Fill in a list with nodes that match a space delimited list if ID ID references.int
FuncPosition. getPositionInContextNodeList(XPathContext xctxt)
Get the position in the current context node list. -
Uses of XPathContext in org.htmlunit.xpath.objects
Methods in org.htmlunit.xpath.objects with parameters of type XPathContext Modifier and Type Method Description XObject
XObject. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.double
XNumber. num(XPathContext xctxt)
Evaluate expression to a number. -
Uses of XPathContext in org.htmlunit.xpath.operations
Methods in org.htmlunit.xpath.operations with parameters of type XPathContext Modifier and Type Method Description boolean
And. bool(XPathContext xctxt)
Evaluate expression to a boolean.boolean
Bool. bool(XPathContext xctxt)
Evaluate expression to a boolean.boolean
Equals. bool(XPathContext xctxt)
Evaluate expression to a boolean.boolean
Or. bool(XPathContext xctxt)
Evaluate expression to a boolean.XObject
And. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
Operation. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
Or. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
UnaryOperation. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.double
Div. num(XPathContext xctxt)
Evaluate expression to a number.double
Minus. num(XPathContext xctxt)
Evaluate expression to a number.double
Mod. num(XPathContext xctxt)
Evaluate expression to a number.double
Mult. num(XPathContext xctxt)
Evaluate expression to a number.double
Neg. num(XPathContext xctxt)
Evaluate expression to a number.double
Number. num(XPathContext xctxt)
Evaluate expression to a number.double
Plus. num(XPathContext xctxt)
Evaluate expression to a number. -
Uses of XPathContext in org.htmlunit.xpath.patterns
Methods in org.htmlunit.xpath.patterns with parameters of type XPathContext Modifier and Type Method Description private boolean
StepPattern. checkProximityPosition(XPathContext xctxt, int predPos, DTM dtm, int context, int pos)
New Method to check whether the current node satisfies a position predicateXObject
ContextMatchStepPattern. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
FunctionPattern. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
FunctionPattern. execute(XPathContext xctxt, int context)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
FunctionPattern. execute(XPathContext xctxt, int context, DTM dtm, int expType)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
NodeTest. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
NodeTest. execute(XPathContext xctxt, int context)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
NodeTest. execute(XPathContext xctxt, int context, DTM dtm, int expType)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
StepPattern. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
StepPattern. execute(XPathContext xctxt, int currentNode)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
StepPattern. execute(XPathContext xctxt, int currentNode, DTM dtm, int expType)
Execute an expression in the XPath runtime context, and return the result of the expression.XObject
UnionPattern. execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.protected boolean
StepPattern. executePredicates(XPathContext xctxt, DTM dtm, int currentNode)
Execute the predicates on this step to determine if the current node should be filtered or accepted.protected XObject
StepPattern. executeRelativePathPattern(XPathContext xctxt, DTM dtm, int currentNode)
Execute the match pattern step relative to another step.int
StepPattern. getLastPos(XPathContext xctxt)
Get the number of nodes in the node list, which, in the XSLT 1 based counting system, is the last index position.int
StepPattern. getProximityPosition(XPathContext xctxt)
Get the current sub-context position.private int
StepPattern. getProximityPosition(XPathContext xctxt, int predPos, boolean findLast)
Get the proximity position index of the current node based on this node test.
-