Back to index

lightning-sunbird  0.9+nobinonly
Classes | Public Member Functions | Private Attributes
nsXPathExpression Class Reference

A class for evaluating an XPath expression string. More...

#include <nsXPathExpression.h>

Inheritance diagram for nsXPathExpression:
Inheritance graph
[legend]
Collaboration diagram for nsXPathExpression:
Collaboration graph
[legend]

List of all members.

Classes

class  EvalContextImpl

Public Member Functions

 nsXPathExpression (nsAutoPtr< Expr > &aExpression, txResultRecycler *aRecycler)
virtual ~nsXPathExpression ()
nsISupports evaluate (in nsIDOMNode contextNode, in unsigned short type, in nsISupports result) raises (XPathException, DOMException)
nsISupports evaluateWithContext (in nsIDOMNode contextNode, in unsigned long contextPosition, in unsigned long contextSize, in unsigned short type, in nsISupports result) raises (XPathException, DOMException)
 Evaluate the expression with the given context.

Private Attributes

nsAutoPtr< ExprmExpression
nsRefPtr< txResultRecyclermRecycler

Detailed Description

A class for evaluating an XPath expression string.

Definition at line 54 of file nsXPathExpression.h.


Constructor & Destructor Documentation

Definition at line 61 of file nsXPathExpression.cpp.

    : mExpression(aExpression),
      mRecycler(aRecycler)
{
}

Definition at line 68 of file nsXPathExpression.cpp.

{
}

Member Function Documentation

nsISupports nsIDOMXPathExpression::evaluate ( in nsIDOMNode  contextNode,
in unsigned short  type,
in nsISupports  result 
) raises (XPathException, DOMException) [inherited]
nsISupports nsIDOMNSXPathExpression::evaluateWithContext ( in nsIDOMNode  contextNode,
in unsigned long  contextPosition,
in unsigned long  contextSize,
in unsigned short  type,
in nsISupports  result 
) raises (XPathException, DOMException) [inherited]

Evaluate the expression with the given context.

Similar to nsIDOMXPathExpression::evaluate(), except that this takes the context position and size too.

Parameters:
contextNodeThe context node
contextPositionThe context position
contextSizeThe context size
typeThe needed result type
resultThe result

Member Data Documentation

Definition at line 72 of file nsXPathExpression.h.

Definition at line 73 of file nsXPathExpression.h.


The documentation for this class was generated from the following files: