Package org.htmlunit.xpath.functions
Class FuncId
java.lang.Object
org.htmlunit.xpath.Expression
org.htmlunit.xpath.functions.Function
org.htmlunit.xpath.functions.FunctionOneArg
org.htmlunit.xpath.functions.FuncId
- All Implemented Interfaces:
SourceLocator
,ExpressionNode
,XPathVisitable
Execute the Id() function.
-
Field Summary
Fields inherited from class org.htmlunit.xpath.functions.FunctionOneArg
m_arg0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute
(XPathContext xctxt) Execute an expression in the XPath runtime context, and return the result of the expression.getNodesByID
(XPathContext xctxt, int docContext, String refval, List<String> usedrefs, NodeSetDTM nodeSet, boolean mayBeMore) Fill in a list with nodes that match a space delimited list if ID ID references.Methods inherited from class org.htmlunit.xpath.functions.FunctionOneArg
callArgVisitors, canTraverseOutsideSubtree, checkNumberArgs, deepEquals, reportWrongNumberArgs, setArg
Methods inherited from class org.htmlunit.xpath.functions.Function
callVisitors, postCompileStep
Methods inherited from class org.htmlunit.xpath.Expression
asIterator, asNode, assertion, bool, error, execute, execute, execute, exprGetParent, exprSetParent, getColumnNumber, getExpressionOwner, getLineNumber, getPublicId, getSystemId, isSameClass, isStableNumber, num
-
Constructor Details
-
FuncId
public FuncId()
-
-
Method Details
-
getNodesByID
private List<String> getNodesByID(XPathContext xctxt, int docContext, String refval, List<String> usedrefs, NodeSetDTM nodeSet, boolean mayBeMore) Fill in a list with nodes that match a space delimited list if ID ID references.- Parameters:
xctxt
- The runtime XPath context.docContext
- The document where the nodes are being looked for.refval
- A space delimited list of ID references.usedrefs
- List of references for which nodes were found.nodeSet
- Node set where the nodes will be added to.mayBeMore
- true if there is another set of nodes to be looked for.- Returns:
- The usedrefs value.
-
execute
Execute an expression in the XPath runtime context, and return the result of the expression.- Overrides:
execute
in classFunction
- 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.
-