Name Description Size Coverage
moz.build 1341 -
txBooleanExpr.cpp Represents a BooleanExpr, a binary expression that performs a boolean operation between its lvalue and rvalue. 1984 90 %
txBooleanResult.cpp Boolean Expression result 1270 88 %
txCoreFunctionCall.cpp Evaluates this Expr based on the given context node and processor state @param context the context node for evaluation of this Expr @param ps the ContextState containing the stack information needed for evaluation @return the result of the evaluation 19550 71 %
txErrorExpr.cpp 1053 0 %
txExpr.cpp 736 100 %
txExpr.h XPath class definitions. Much of this code was ported from XSL:P. 24216 94 %
txExprLexer.cpp Lexical analyzer for XPath expressions 10437 95 %
txExprLexer.h A Token class for the ExprLexer. This class was ported from XSL:P, an open source Java based XSLT processor, written by yours truly. 4503 92 %
txExprParser.cpp ExprParser This class is used to parse XSL Expressions @see ExprLexer 25761 90 %
txExprParser.h ExprParser This class is used to parse XSL Expressions @see ExprLexer 3627 100 %
txExprResult.h ExprResult Classes Represented: BooleanResult, ExprResult, NumberResult, StringResult Note: for NodeSet, see NodeSet.h 2785 100 %
txFilterExpr.cpp Evaluates this Expr based on the given context node and processor state @param context the context node for evaluation of this Expr @param ps the ProcessorState containing the stack information needed for evaluation @return the result of the evaluation @see Expr 2390 94 %
txForwardContext.cpp 1654 13 %
txForwardContext.h 775 80 %
txFunctionCall.cpp This class represents a FunctionCall as defined by the XSL Working Draft 3094 100 %
txIXPathContext.h txIParseContext This interface describes the context needed to create XPath Expressions and XSLT Patters. (not completely though. key() requires the ProcessorState, which is not part of this interface.) 3902 67 %
txLiteralExpr.cpp 2058 69 %
txLocationStep.cpp Implementation of an XPath LocationStep 8024 57 %
txMozillaXPathTreeWalker.cpp 16897 78 %
txNamedAttributeStep.cpp 1593 100 %
txNameTest.cpp Returns the default priority of this txNodeTest 2662 95 %
txNodeSet.cpp Implementation of an XPath nodeset 15155 80 %
txNodeSet.h Implementation of an XPath NodeSet 6605 100 %
txNodeSetContext.cpp 1610 100 %
txNodeSetContext.h 1004 100 %
txNodeTypeTest.cpp Returns the default priority of this txNodeTest 2449 91 %
txNumberExpr.cpp XXX MSVC miscompiles such that (NaN == 0) 2775 68 %
txNumberResult.cpp NumberResult Represents the a number as the result of evaluating an Expr 1300 82 %
txPathExpr.cpp Adds the Expr to this PathExpr @param expr the Expr to add to this PathExpr 6737 91 %
txPredicatedNodeTest.cpp 1594 100 %
txPredicateList.cpp Represents an ordered list of Predicates, for use with Step and Filter Expressions 2267 84 %
txRelationalExpr.cpp Compares the two ExprResults based on XPath 1.0 Recommendation (section 3.4) 5300 70 %
txResultRecycler.cpp 4714 86 %
txResultRecycler.h Returns an txAExprResult to this recycler for reuse. @param aResult result to recycle 2140 100 %
txRootExpr.cpp Evaluates this Expr based on the given context node and processor state @param context the context node for evaluation of this Expr @param ps the ContextState containing the stack information needed for evaluation @return the result of the evaluation 1097 100 %
txSingleNodeContext.h 1876 92 %
txStringResult.cpp StringResult Represents a String as a Result of evaluating an Expr 1201 100 %
txUnaryExpr.cpp Evaluates this Expr based on the given context node and processor state @param context the context node for evaluation of this Expr @param ps the ContextState containing the stack information needed for evaluation. @return the result of the evaluation. 1208 91 %
txUnionExpr.cpp Evaluates this Expr based on the given context node and processor state @param context the context node for evaluation of this Expr @param ps the ContextState containing the stack information needed for evaluation @return the result of the evaluation 2464 92 %
txUnionNodeTest.cpp 1441 50 %
txVariableRefExpr.cpp Creates a VariableRefExpr with the given variable name 1833 100 %
txXPathNode.h txXPathNode represents a node in XPath's data model (which is a bit different from the DOM's). While XPath 1.0 has 7 node types, we essentially deal with 3 kinds: a document node, any other node type that is backed by an implementation of nsIContent in Gecko, and attribute nodes. Because we try to avoid creating actual node objects for attribute nodes in Gecko's DOM, we store attribute nodes as a pointer to their owner element and an index into that element's attribute node list. So to represent the 3 kinds of node we need to store: - a pointer to a document (a nsIDocument as a nsINode pointer) - a pointer to a nsIContent object (as a nsINode pointer) - a pointer to a nsIContent object (a nsIContent as a nsINode pointer) and an index So we make txXPathNode store a |nsCOMPtr<nsINode>| and a uint32_t for the index. To be able to distinguish between the attribute nodes and other nodes we store a flag value for the other nodes in the index. To be able to quickly cast from the nsINode pointer to a nsIDocument or nsIContent pointer we actually use 2 different flag values (see txXPathNode::PositionType). We provide 2 fast constructors for txXPathNode, one that takes a nsIContent and one that takes a nsIDocument, since for those kinds of nodes we can simply store the pointer and the relevant flag value. For attribute nodes, or if you have just a nsINode pointer, then there is a helper function (txXPathNativeNode::createXPathNode) that either picks the right flag value or the correct index (for attribute nodes) when creating the txXPathNode. 4821 94 %
txXPathOptimizer.cpp 7954 90 %
txXPathOptimizer.h Optimize the given expression. @param aInExpr Expression to optimize. @param aOutExpr Resulting expression, null if optimization didn't result in a new expression. 842 -
txXPathTreeWalker.h static 5977 83 %
XPathEvaluator.cpp static 5712 78 %
XPathEvaluator.h A class for evaluating an XPath expression string 2251 50 %
XPathExpression.cpp 6292 74 %
XPathExpression.h A class for evaluating an XPath expression string 2376 100 %
XPathResult.cpp 7711 89 %
XPathResult.h A class for evaluating an XPath expression string 4604 96 %