Back to index

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

#include <txSingleNodeContext.h>

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

List of all members.

Public Member Functions

 txSingleNodeContext (const txXPathNode &aContextNode, txIMatchContext *aContext)
 ~txSingleNodeContext ()
nsresult getVariable (PRInt32 aNamespace, nsIAtom *aLName, txAExprResult *&aResult)
MBool isStripSpaceAllowed (const txXPathNode &aNode)
voidgetPrivateContext ()
 Returns a pointer to the private context.
txResultRecyclerrecycler ()
void receiveError (const nsAString &aMsg, nsresult aRes)
const txXPathNodegetContextNode ()
PRUint32 size ()
PRUint32 position ()

Private Attributes

const txXPathNodemNode
txIMatchContextmInner

Detailed Description

Definition at line 44 of file txSingleNodeContext.h.


Constructor & Destructor Documentation

txSingleNodeContext::txSingleNodeContext ( const txXPathNode aContextNode,
txIMatchContext aContext 
) [inline]

Definition at line 47 of file txSingleNodeContext.h.

        : mNode(aContextNode),
          mInner(aContext)
    {
        NS_ASSERTION(aContext, "txIMatchContext must be given");
    }

Definition at line 54 of file txSingleNodeContext.h.

    {}

Member Function Documentation

Implements txIEvalContext.

Definition at line 94 of file txSingleNodeContext.h.

    {
        return mNode;
    }

Returns a pointer to the private context.

Implements txIMatchContext.

Definition at line 70 of file txSingleNodeContext.h.

    {
        NS_ASSERTION(mInner, "mInner is null!!!");
        return mInner->getPrivateContext();
    }

Here is the call graph for this function:

nsresult txSingleNodeContext::getVariable ( PRInt32  aNamespace,
nsIAtom aLName,
txAExprResult *&  aResult 
) [inline, virtual]

Implements txIMatchContext.

Definition at line 57 of file txSingleNodeContext.h.

    {
        NS_ASSERTION(mInner, "mInner is null!!!");
        return mInner->getVariable(aNamespace, aLName, aResult);
    }

Here is the call graph for this function:

Implements txIMatchContext.

Definition at line 64 of file txSingleNodeContext.h.

    {
        NS_ASSERTION(mInner, "mInner is null!!!");
        return mInner->isStripSpaceAllowed(aNode);
    }

Here is the call graph for this function:

PRUint32 txSingleNodeContext::position ( ) [inline, virtual]

Implements txIEvalContext.

Definition at line 104 of file txSingleNodeContext.h.

    {
        return 1;
    }
void txSingleNodeContext::receiveError ( const nsAString &  aMsg,
nsresult  aRes 
) [inline, virtual]

Implements txIMatchContext.

Definition at line 82 of file txSingleNodeContext.h.

    {
        NS_ASSERTION(mInner, "mInner is null!!!");
#ifdef DEBUG
        nsAutoString error(NS_LITERAL_STRING("forwarded error: "));
        error.Append(aMsg);
        mInner->receiveError(error, aRes);
#else
        mInner->receiveError(aMsg, aRes);
#endif
    }

Here is the call graph for this function:

Implements txIMatchContext.

Definition at line 76 of file txSingleNodeContext.h.

    {
        NS_ASSERTION(mInner, "mInner is null!!!");
        return mInner->recycler();
    }

Here is the call graph for this function:

PRUint32 txSingleNodeContext::size ( ) [inline, virtual]

Implements txIEvalContext.

Definition at line 99 of file txSingleNodeContext.h.

    {
        return 1;
    }

Member Data Documentation

Definition at line 111 of file txSingleNodeContext.h.

Definition at line 110 of file txSingleNodeContext.h.


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