Package org.eclipse.wst.xml.xpath2.api
public class XPath2Expression extendsThis interface represents a parsed and statically bound XPath2 expression.
Method Summary | |
public org.eclipse.wst.xml.xpath2.api.ResultSequence | evaluate(org.eclipse.wst.xml.xpath2.api.DynamicContext dynamicContext
,
java.lang.Object[] contextItems)Evaluate the XPath2 expression, using the supplied DynamicContext. |
public java.util.Collection | getAxes()Return a collections of the axis used in the XPath2 expression. |
public java.util.Collection | getFreeVariables()Return a collections of QNames of the names of free variables referenced in the XPath expression. These variables may be requested during evaluation. |
public java.util.Collection | getResolvedFunctions()Return a collections of the functions used in the XPath2 expression. |
public boolean | isRootPathUsed()Whether or not the root path is in use in the XPath2 expression. |
Methods Detail |
public org.eclipse.wst.xml.xpath2.api.ResultSequence evaluate(org.eclipse.wst.xml.xpath2.api.DynamicContext dynamicContext
,
java.lang.Object[] contextItems)
Evaluate the XPath2 expression, using the supplied DynamicContext.
dynamicContext - Dynamic context for the expression.
contextItems - Context item (typically nodes, often one) to evaluate under.
org.eclipse.wst.xml.xpath2.api.ResultSequence - A ResultSequence
public java.util.Collection getAxes()
Return a collections of the axis used in the XPath2 expression.
java.util.Collection - A Collection containing Strings with the axis names in use.
public java.util.Collection getFreeVariables()
Return a collections of QNames of the names of free variables referenced in the XPath expression. These variables may be requested during evaluation.
java.util.Collection - A Collection containing javax.xml.namespacing.QName of free variables
public java.util.Collection getResolvedFunctions()
Return a collections of the functions used in the XPath2 expression.
java.util.Collection - A Collection containing javax.xml.namespacing.QName of functions in use.
public boolean isRootPathUsed()
Whether or not the root path is in use in the XPath2 expression.
boolean - true if the expression uses / or //, false otherwise.