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:
javax.xml.transform.SourceLocator
,ExpressionNode
,XPathVisitable
public class FuncId extends FunctionOneArg
Execute the Id() function.
-
-
Field Summary
-
Fields inherited from class org.htmlunit.xpath.functions.FunctionOneArg
m_arg0
-
-
Constructor Summary
Constructors Constructor Description FuncId()
-
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.private java.util.List<java.lang.String>
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.-
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
-
-
-
-
Method Detail
-
getNodesByID
private java.util.List<java.lang.String> 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.- 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
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.
-
-