Back to index

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

VariableRefExpr Represents a variable reference ($refname) More...

#include <Expr.h>

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

List of all members.

Public Member Functions

 VariableRefExpr (nsIAtom *aPrefix, nsIAtom *aLocalName, PRInt32 aNSID)
 Creates a VariableRefExpr with the given variable name.
 ~VariableRefExpr ()
virtual nsresult evaluate (txIEvalContext *aContext, txAExprResult **aResult)=0
 Evaluates this Expr based on the given context node and processor state.

Public Attributes

 TX_DECL_EXPR
u8 op
char affinity
u8 flags
CollSeqpColl
ExprpLeft
ExprpRight
ExprListpList
Token token
Token span
int iTable
int iColumn
AggInfopAggInfo
int iAgg
int iRightJoinTable
SelectpSelect
TablepTab
SchemapSchema

Private Attributes

nsCOMPtr< nsIAtommPrefix
nsCOMPtr< nsIAtommLocalName
PRInt32 mNamespace

Detailed Description

VariableRefExpr Represents a variable reference ($refname)

Definition at line 586 of file Expr.h.


Constructor & Destructor Documentation

VariableRefExpr::VariableRefExpr ( nsIAtom aPrefix,
nsIAtom aLocalName,
PRInt32  aNSID 
)

Creates a VariableRefExpr with the given variable name.

Definition at line 52 of file VariableRefExpr.cpp.

    : mPrefix(aPrefix), mLocalName(aLocalName), mNamespace(aNSID)
{
    NS_ASSERTION(mLocalName, "VariableRefExpr without local name?");
    if (mPrefix == txXMLAtoms::_empty)
        mPrefix = 0;
}

Definition at line 64 of file VariableRefExpr.cpp.

{
}

Member Function Documentation

virtual nsresult Expr::evaluate ( txIEvalContext aContext,
txAExprResult **  aResult 
) [pure virtual, inherited]

Evaluates this Expr based on the given context node and processor state.

Parameters:
contextthe context node for evaluation of this Expr
psthe ContextState containing the stack information needed for evaluation
Returns:
the result of the evaluation

Here is the caller graph for this function:


Member Data Documentation

char Expr::affinity [inherited]

Definition at line 951 of file sqliteInt.h.

u8 Expr::flags [inherited]

Definition at line 952 of file sqliteInt.h.

int Expr::iAgg [inherited]

Definition at line 962 of file sqliteInt.h.

int Expr::iColumn [inherited]

Definition at line 959 of file sqliteInt.h.

Definition at line 963 of file sqliteInt.h.

int Expr::iTable [inherited]

Definition at line 959 of file sqliteInt.h.

Definition at line 597 of file Expr.h.

Definition at line 598 of file Expr.h.

Definition at line 596 of file Expr.h.

u8 Expr::op [inherited]

Reimplemented in MultiplicativeExpr, BooleanExpr, and AdditiveExpr.

Definition at line 950 of file sqliteInt.h.

AggInfo* Expr::pAggInfo [inherited]

Definition at line 961 of file sqliteInt.h.

CollSeq* Expr::pColl [inherited]

Definition at line 953 of file sqliteInt.h.

Expr* Expr::pLeft [inherited]

Definition at line 954 of file sqliteInt.h.

ExprList* Expr::pList [inherited]

Definition at line 955 of file sqliteInt.h.

Expr * Expr::pRight [inherited]

Definition at line 954 of file sqliteInt.h.

Schema* Expr::pSchema [inherited]

Definition at line 967 of file sqliteInt.h.

Select* Expr::pSelect [inherited]

Definition at line 964 of file sqliteInt.h.

Table* Expr::pTab [inherited]

Definition at line 966 of file sqliteInt.h.

Token Expr::span [inherited]

Definition at line 958 of file sqliteInt.h.

Token Expr::token [inherited]

Definition at line 957 of file sqliteInt.h.

Definition at line 593 of file Expr.h.


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