| 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.
|
| Modifier and Type | Method and 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 |
XPath.error(XPathContext xctxt,
String msg,
Object[] args)
Tell the user of an error, and probably throw an exception.
|
void |
Expression.error(XPathContext xctxt,
String msg,
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,
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.
|
| Modifier and Type | Field and Description |
|---|---|
protected XPathContext |
LocPathIterator.m_execContext
The XPathContext reference, needed for execution of many operations.
|
| Modifier and Type | Method and Description |
|---|---|
XPathContext |
LocPathIterator.getXPathContext()
The XPath execution context we are operating on.
|
| Modifier and Type | Method and Description |
|---|---|
DTMIterator |
LocPathIterator.asIterator(XPathContext xctxt,
int contextNode)
Given an select expression and a context, evaluate the XPath and return the resulting iterator.
|
int |
SelfIteratorNoPredicate.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 |
DescendantIterator.asNode(XPathContext xctxt)
Return the first node out of the nodeset, if this expression is a nodeset expression.
|
int |
ChildIterator.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.
|
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 |
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 |
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.
|
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 |
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.
|
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 |
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 |
SubContextList.getProximityPosition(XPathContext xctxt)
Get the current sub-context position.
|
int |
PredicatedNodeTest.getProximityPosition(XPathContext xctxt)
Get the current sub-context position.
|
| Modifier and Type | Method and Description |
|---|---|
XObject |
FuncTrue.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 |
Function.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 |
FuncSubstringBefore.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 |
FuncSubstring.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 |
FuncString.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 |
FuncRound.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 |
FuncPosition.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 |
FuncNot.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 |
FuncNamespace.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 |
FuncLast.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 |
FuncId.execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.
|
XObject |
FuncFloor.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 |
FuncCount.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 |
FuncConcat.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 |
FuncBoolean.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.
|
int |
FuncPosition.getPositionInContextNodeList(XPathContext xctxt)
Get the position in the current context node list.
|
| Modifier and Type | Method and 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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Or.bool(XPathContext xctxt)
Evaluate expression to a boolean.
|
boolean |
Equals.bool(XPathContext xctxt)
Evaluate expression to a boolean.
|
boolean |
Bool.bool(XPathContext xctxt)
Evaluate expression to a boolean.
|
boolean |
And.bool(XPathContext xctxt)
Evaluate expression to a boolean.
|
XObject |
UnaryOperation.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 |
Operation.execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.
|
XObject |
And.execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the result of the expression.
|
double |
Plus.num(XPathContext xctxt)
Evaluate expression to a number.
|
double |
Number.num(XPathContext xctxt)
Evaluate expression to a number.
|
double |
Neg.num(XPathContext xctxt)
Evaluate expression to a number.
|
double |
Mult.num(XPathContext xctxt)
Evaluate expression to a number.
|
double |
Mod.num(XPathContext xctxt)
Evaluate expression to a number.
|
double |
Minus.num(XPathContext xctxt)
Evaluate expression to a number.
|
double |
Div.num(XPathContext xctxt)
Evaluate expression to a number.
|
| Modifier and Type | Method and Description |
|---|---|
XObject |
UnionPattern.execute(XPathContext xctxt)
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 |
NodeTest.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 |
ContextMatchStepPattern.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 |
NodeTest.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)
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 |
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 |
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.
|
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.
|
Copyright © 2022–2023 HtmlUnit. All rights reserved.