List of all members.
Classes
Public Types
Public Member Functions
- XPath (MemoryManagerType &theManager, const LocatorType *theLocator=0)
- Construct an XPath.
- MemoryManagerType & getMemoryManager ()
- ~XPath ()
- void shrink ()
- Shrink internal tables.
- const XObjectPtr execute (XalanNode *context, const PrefixResolver &prefixResolver, XPathExecutionContext &executionContext) const
- Execute the XPath from the provided context.
- void execute (XalanNode *context, const PrefixResolver &prefixResolver, XPathExecutionContext &executionContext, bool &result) const
- Execute the XPath from the provided context.
- void execute (XalanNode *context, const PrefixResolver &prefixResolver, XPathExecutionContext &executionContext, double &result) const
- Execute the XPath from the provided context.
- void execute (XalanNode *context, const PrefixResolver &prefixResolver, XPathExecutionContext &executionContext, XalanDOMString &result) const
- Execute the XPath from the provided context.
- void execute (XalanNode *context, const PrefixResolver &prefixResolver, XPathExecutionContext &executionContext, FormatterListener &formatterListener, MemberFunctionPtr function) const
- Execute the XPath from the provided context.
- const XObjectPtr execute (XalanNode *context, const PrefixResolver &prefixResolver, XPathExecutionContext &executionContext, MutableNodeRefList &result) const
- Execute the XPath from the provided context.
- const XObjectPtr execute (XalanNode *context, const PrefixResolver &prefixResolver, const NodeRefListBase &contextNodeList, XPathExecutionContext &executionContext) const
- Execute the XPath from the provided context.
- void execute (XalanNode *context, const PrefixResolver &prefixResolver, const NodeRefListBase &contextNodeList, XPathExecutionContext &executionContext, bool &result) const
- Execute the XPath from the provided context.
- void execute (XalanNode *context, const PrefixResolver &prefixResolver, const NodeRefListBase &contextNodeList, XPathExecutionContext &executionContext, double &result) const
- Execute the XPath from the provided context.
- void execute (XalanNode *context, const PrefixResolver &prefixResolver, const NodeRefListBase &contextNodeList, XPathExecutionContext &executionContext, XalanDOMString &result) const
- Execute the XPath from the provided context.
- void execute (XalanNode *context, const PrefixResolver &prefixResolver, const NodeRefListBase &contextNodeList, XPathExecutionContext &executionContext, FormatterListener &formatterListener, MemberFunctionPtr function) const
- Execute the XPath from the provided context.
- const XObjectPtr execute (XalanNode *context, const PrefixResolver &prefixResolver, const NodeRefListBase &contextNodeList, XPathExecutionContext &executionContext, MutableNodeRefList &result) const
- Execute the XPath from the provided context.
- const XObjectPtr execute (XPathExecutionContext &executionContext) const
- Execute the XPath from the provided context.
- void execute (XPathExecutionContext &executionContext, bool &result) const
- Execute the XPath from the provided context.
- void execute (XPathExecutionContext &executionContext, double &result) const
- Execute the XPath from the provided context.
- void execute (XPathExecutionContext &executionContext, XalanDOMString &result) const
- Execute the XPath from the provided context.
- void execute (XPathExecutionContext &executionContext, FormatterListener &formatterListener, MemberFunctionPtr function) const
- Execute the XPath from the provided context.
- const XObjectPtr execute (XPathExecutionContext &executionContext, MutableNodeRefList &result) const
- Execute the XPath from the provided context.
- const XObjectPtr execute (const PrefixResolver &prefixResolver, XPathExecutionContext &executionContext) const
- Execute the XPath from the provided context.
- void execute (const PrefixResolver &prefixResolver, XPathExecutionContext &executionContext, bool &result) const
- Execute the XPath from the provided context.
- void execute (const PrefixResolver &prefixResolver, XPathExecutionContext &executionContext, double &result) const
- Execute the XPath from the provided context.
- void execute (const PrefixResolver &prefixResolver, XPathExecutionContext &executionContext, XalanDOMString &result) const
- Execute the XPath from the provided context.
- void execute (const PrefixResolver &prefixResolver, XPathExecutionContext &executionContext, FormatterListener &formatterListener, MemberFunctionPtr function) const
- Execute the XPath from the provided context.
- XObjectPtr execute (const PrefixResolver &prefixResolver, XPathExecutionContext &executionContext, MutableNodeRefList &result) const
- Execute the XPath from the provided context.
- XPathExpression & getExpression ()
- Retrieve a reference to the current expression.
- const XPathExpression & getExpression () const
- Retrieve a reference to the current expression.
- eMatchScore getMatchScore (XalanNode *node, XPathExecutionContext &executionContext) const
- Get the match score for the specified node.
- eMatchScore getMatchScore (XalanNode *node, const PrefixResolver &resolver, XPathExecutionContext &executionContext) const
- Get the match score for the specified node.
- const XObjectPtr predicate (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Evaluate a predicate.
- void getTargetData (TargetDataVectorType &targetData) const
- Add the data for the target of match pattern to a vector.
- bool getInStylesheet () const
- void setInStylesheet (bool fValue)
- const LocatorType * getLocator () const
- void setLocator (const LocatorType *theLocator)
Static Public Member Functions
Static Public Attributes
Protected Member Functions
- const XObjectPtr locationPath (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Execute a location path.
- void locationPath (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, bool &theResult) const
- Execute a location path.
- void locationPath (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, double &theResult) const
- Execute a location path.
- void locationPath (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, XalanDOMString &theResult) const
- Execute a location path.
- void locationPath (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, FormatterListener &formatterListener, MemberFunctionPtr function) const
- Execute a location path.
- void locationPath (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, MutableNodeRefList &theResult) const
- Execute a location path.
- const XObjectPtr executeMore (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Execute the XPath from the provided context.
- void executeMore (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, bool &theResult) const
- Execute the XPath from the provided context.
- void executeMore (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, double &theResult) const
- Execute the XPath from the provided context.
- void executeMore (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, XalanDOMString &theResult) const
- Execute the XPath from the provided context.
- void executeMore (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, FormatterListener &formatterListener, MemberFunctionPtr function) const
- Execute the XPath from the provided context.
- const XObjectPtr executeMore (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, MutableNodeRefList &theResult) const
- Execute the XPath from the provided context.
- void doGetMatchScore (XalanNode *context, XPathExecutionContext &executionContext, eMatchScore &score) const
- Helper function to get match score.
- bool Or (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- OR two expressions and return the boolean result.
- bool And (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- OR two expressions and return the boolean result.
- bool notequals (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Tell if two expressions are functionally not equal.
- bool equals (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Tell if two expressions are functionally equal.
- bool lte (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Tell if one argument is less than or equal to the other argument.
- bool lt (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Tell if one argument is less than the other argument.
- bool gte (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Tell if one argument is greater than or equal to the other argument.
- bool gt (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Tell if one argument is greater than the other argument.
- double plus (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Give the sum of two arguments.
- void plus (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, FormatterListener &formatterListener, MemberFunctionPtr function) const
- Give the sum of two arguments.
- double minus (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Give the difference of two arguments.
- void minus (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, FormatterListener &formatterListener, MemberFunctionPtr function) const
- Give the difference of two arguments.
- double mult (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Multiply two arguments.
- void mult (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, FormatterListener &formatterListener, MemberFunctionPtr function) const
- Multiply two arguments.
- double div (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Divide a number.
- void div (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, FormatterListener &formatterListener, MemberFunctionPtr function) const
- Divide a number.
- double mod (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Return the remainder from a truncating division.
- void mod (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, FormatterListener &formatterListener, MemberFunctionPtr function) const
- Return the remainder from a truncating division.
- double neg (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Return the negation of a number.
- void neg (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, FormatterListener &formatterListener, MemberFunctionPtr function) const
- Return the negation of a number.
- const XObjectPtr Union (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Computes the union of its operands which must be node-sets.
- void Union (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, bool &result) const
- Computes the union of its operands which must be node-sets.
- void Union (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, double &result) const
- Computes the union of its operands which must be node-sets.
- void Union (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, XalanDOMString &result) const
- Computes the union of its operands which must be node-sets.
- void Union (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, FormatterListener &formatterListener, MemberFunctionPtr function) const
- Computes the union of its operands which must be node-sets.
- void Union (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, MutableNodeRefList &result) const
- Computes the union of its operands which must be node-sets.
- const XObjectPtr literal (OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Get a literal value.
- void literal (OpCodeMapPositionType opPos, bool &theResult) const
- Get a literal value as a boolean.
- void literal (OpCodeMapPositionType opPos, double &theResult) const
- Get a literal value as a number.
- void literal (OpCodeMapPositionType opPos, XalanDOMString &theResult) const
- Get a literal value.
- void literal (OpCodeMapPositionType opPos, FormatterListener &formatterListener, MemberFunctionPtr function) const
- Get a literal value.
- const XObjectPtr variable (OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Get the value of a variable.
- const XObjectPtr group (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Execute an expression as a group.
- void group (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, bool &theResult) const
- Execute an expression as a group.
- void group (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, double &theResult) const
- Execute an expression as a group.
- void group (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, XalanDOMString &theResult) const
- Execute an expression as a group.
- void group (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, FormatterListener &formatterListener, MemberFunctionPtr function) const
- Execute an expression as a group.
- void group (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, MutableNodeRefList &theResult) const
- Execute an expression as a group.
- double numberlit (OpCodeMapPositionType opPos) const
- Get a literal value.
- const XObjectPtr numberlit (OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Get a literal value.
- void numberlit (OpCodeMapPositionType opPos, bool &theResult) const
- Get a literal value as a boolean.
- void numberlit (OpCodeMapPositionType opPos, XalanDOMString &theResult) const
- Get a literal value.
- void numberlit (OpCodeMapPositionType opPos, FormatterListener &formatterListener, MemberFunctionPtr function) const
- Get a literal value.
- const XObjectPtr runExtFunction (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Setup for and run an extension function.
- const XObjectPtr extfunction (XalanNode *context, OpCodeMapPositionType, const XalanDOMString &theNamespace, const XalanDOMString &functionName, const Function::XObjectArgVectorType &argVec, XPathExecutionContext &executionContext) const
- Handle an extension function.
- const XObjectPtr runFunction (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Setup for and run a function.
- const XObjectPtr function (XalanNode *context, OpCodeMapValueType funcID, const Function::XObjectArgVectorType &argVec, XPathExecutionContext &executionContext) const
- Handle a built-in function.
- double functionPosition (XalanNode *context, XPathExecutionContext &executionContext) const
- Handle the built-in function "position".
- double functionLast (XPathExecutionContext &executionContext) const
- Handle the built-in function "last".
- double functionCount (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Handle the built-in function "count".
- bool functionNot (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Handle the built-in function "not".
- bool functionBoolean (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Handle the built-in function "boolean".
- const XalanDOMString & functionName (XalanNode *context) const
- Handle the built-in function "name".
- const XalanDOMString & functionName (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Handle the built-in function "name".
- const XalanDOMString & functionLocalName (XalanNode *context) const
- Handle the built-in function "local-name".
- const XalanDOMString & functionLocalName (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Handle the built-in function "local-name".
- double functionNumber (XalanNode *context, XPathExecutionContext &executionContext) const
- Handle the built-in function "number".
- double functionNumber (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Handle the built-in function "number".
- double functionFloor (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Handle the built-in function "floor".
- double functionCeiling (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Handle the built-in function "ceiling".
- double functionRound (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Handle the built-in function "round".
- double functionStringLength (XalanNode *context) const
- Handle the built-in function "string-length".
- double functionStringLength (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Handle the built-in function "string-length".
- double functionSum (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Handle the built-in function "sum".
- double getNumericOperand (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const
- Get a numeric operand for an expression.
- void step (XPathExecutionContext &executionContext, XalanNode *context, OpCodeMapPositionType opPos, MutableNodeRefList &queryResults) const
- XalanNode * stepPattern (XPathExecutionContext &executionContext, XalanNode *context, OpCodeMapPositionType opPos, eMatchScore &scoreHolder) const
- Execute a step in a location path.
- OpCodeMapPositionType findNodeSet (XPathExecutionContext &executionContext, XalanNode *context, OpCodeMapPositionType opPos, OpCodeMapValueType stepType, MutableNodeRefList &subQueryResults) const
- OpCodeMapPositionType findRoot (XPathExecutionContext &executionContext, XalanNode *context, OpCodeMapPositionType opPos, OpCodeMapValueType stepType, MutableNodeRefList &subQueryResults) const
- OpCodeMapPositionType findParent (XPathExecutionContext &executionContext, XalanNode *context, OpCodeMapPositionType opPos, OpCodeMapValueType stepType, MutableNodeRefList &subQueryResults) const
- OpCodeMapPositionType findSelf (XPathExecutionContext &executionContext, XalanNode *context, OpCodeMapPositionType opPos, OpCodeMapValueType stepType, MutableNodeRefList &subQueryResults) const
- OpCodeMapPositionType findAncestors (XPathExecutionContext &executionContext, XalanNode *context, OpCodeMapPositionType opPos, OpCodeMapValueType stepType, MutableNodeRefList &subQueryResults) const
- OpCodeMapPositionType findAncestorsOrSelf (XPathExecutionContext &executionContext, XalanNode *context, OpCodeMapPositionType opPos, OpCodeMapValueType stepType, MutableNodeRefList &subQueryResults) const
- OpCodeMapPositionType findAttributes (XPathExecutionContext &executionContext, XalanNode *context, OpCodeMapPositionType opPos, OpCodeMapValueType stepType, MutableNodeRefList &subQueryResults) const
- OpCodeMapPositionType findChildren (XPathExecutionContext &executionContext, XalanNode *context, OpCodeMapPositionType opPos, OpCodeMapValueType stepType, MutableNodeRefList &subQueryResults) const
- OpCodeMapPositionType findDescendants (XPathExecutionContext &executionContext, XalanNode *context, OpCodeMapPositionType opPos, OpCodeMapValueType stepType, MutableNodeRefList &subQueryResults) const
- OpCodeMapPositionType findFollowing (XPathExecutionContext &executionContext, XalanNode *context, OpCodeMapPositionType opPos, OpCodeMapValueType stepType, MutableNodeRefList &subQueryResults) const
- OpCodeMapPositionType findFollowingSiblings (XPathExecutionContext &executionContext, XalanNode *context, OpCodeMapPositionType opPos, OpCodeMapValueType stepType, MutableNodeRefList &subQueryResults) const
- OpCodeMapPositionType findPreceeding (XPathExecutionContext &executionContext, XalanNode *context, OpCodeMapPositionType opPos, OpCodeMapValueType stepType, MutableNodeRefList &subQueryResults) const
- OpCodeMapPositionType findPreceedingSiblings (XPathExecutionContext &executionContext, XalanNode *context, OpCodeMapPositionType opPos, OpCodeMapValueType stepType, MutableNodeRefList &subQueryResults) const
- OpCodeMapPositionType findNamespace (XPathExecutionContext &executionContext, XalanNode *context, OpCodeMapPositionType opPos, OpCodeMapValueType stepType, MutableNodeRefList &subQueryResults) const
- OpCodeMapPositionType findNodesOnUnknownAxis (XPathExecutionContext &executionContext, XalanNode *context, OpCodeMapPositionType opPos, OpCodeMapValueType stepType, MutableNodeRefList &subQueryResults) const
- eMatchScore nodeTest (XPathExecutionContext &executionContext, XalanNode *context, XalanNode::NodeType nodeType, OpCodeMapPositionType opPos, OpCodeMapValueType argLen, OpCodeMapValueType stepType) const
- OpCodeMapPositionType predicates (XPathExecutionContext &executionContext, OpCodeMapPositionType opPos, MutableNodeRefList &subQueryResults) const
- eMatchScore handleFoundIndex (XPathExecutionContext &executionContext, XalanNode *localContext, OpCodeMapPositionType startOpPos) const
- eMatchScore handleFoundIndexPositional (XPathExecutionContext &executionContext, XalanNode *localContext, OpCodeMapPositionType startOpPos) const
Friends
Member Typedef Documentation
Member Enumeration Documentation
- Enumerator:
eMatchScoreNone |
|
eMatchScoreNodeTest |
|
eMatchScoreNSWild |
|
eMatchScoreQName |
|
eMatchScoreOther |
|
Constructor & Destructor Documentation
Construct an XPath.
- Parameters:
-
theLocator | The applicable LocatorType, if any. |
Member Function Documentation
OR two expressions and return the boolean result.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- true if the two arguments are both true.
static void XPath::destroyTable |
( |
| ) |
[static] |
Divide a number.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- arg1 / arg2.
Divide a number.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
formatterListener | the FormatterListener instance to receive the result |
function | A pointer to the member function of FormatterListener to call |
Helper function to get match score.
- Parameters:
-
context | The current source tree context node. |
executionContext | The current execution context |
score | The match score |
Tell if two expressions are functionally equal.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- true if the two arguments are equal.
Execute the XPath from the provided context.
The result is appended to the supplied string.
- Parameters:
-
context | current source tree context node, which must not be 0 |
prefixResolver | prefix resolver to use |
executionContext | current execution context |
result | the string result |
Execute the XPath from the provided context.
- Parameters:
-
context | current source tree context node, which must not be 0 |
prefixResolver | prefix resolver to use |
contextNodeList | node list for current context |
executionContext | current execution context |
formatterListener | the FormatterListener instance to receive the result |
function | A pointer to the member function of FormatterListener to call |
Execute the XPath from the provided context.
Normally, the expression will be evaluated and the result placed in the parameter result. However, some cases (such as the evalution of a variable) could result in the copying of a node-set, which is extremely expensive. In that case, the return value will contain the result of the evaluation. If the call to XObject::null() on the return value is true, that indicates the value was executed directly into the parameter. Otherwise, the parameter will be empty, and the result will be in the XObject instance returned.
- Parameters:
-
context | current source tree context node, which must not be 0 |
prefixResolver | prefix resolver to use |
contextNodeList | node list for current context |
executionContext | current execution context |
result | the result as a set of nodes |
- Returns:
- the node-set result, if the result was not returned in the parameter
Execute the XPath from the provided context.
The prefix resolver and current node must already be set execution context, and must not be 0.
- Parameters:
-
executionContext | current execution context |
- Returns:
- smart-pointer to result XObject
Execute the XPath from the provided context.
The prefix resolver and current node must already be set execution context, and must not be 0.
- Parameters:
-
executionContext | current execution context |
result | the boolean result |
Execute the XPath from the provided context.
- Parameters:
-
context | current source tree context node, which must not be 0 |
prefixResolver | prefix resolver to use |
executionContext | current execution context |
result | the numeric result |
Execute the XPath from the provided context.
The prefix resolver must already be set in the execution context.
- Parameters:
-
executionContext | current execution context |
result | the numeric result |
Execute the XPath from the provided context.
The result is appended to the supplied string.
The prefix resolver and current node must already be set execution context, and must not be 0.
- Parameters:
-
executionContext | current execution context |
result | the string result |
Execute the XPath from the provided context.
- Parameters:
-
context | current source tree context node, which must not be 0 |
prefixResolver | prefix resolver to use |
executionContext | current execution context |
formatterListener | the FormatterListener instance to receive the result |
function | A pointer to the member function of FormatterListener to call |
Execute the XPath from the provided context.
Normally, the expression will be evaluated and the result placed in the parameter result. However, some cases (such as the evalution of a variable) could result in the copying of a node-set, which is extremely expensive. In that case, the return value will contain the result of the evaluation. If the call to XObject::null() on the return value is true, that indicates the value was executed directly into the parameter. Otherwise, the parameter will be empty, and the result will be in the XObject instance returned.
- Parameters:
-
context | current source tree context node, which must not be 0 |
prefixResolver | prefix resolver to use |
executionContext | current execution context |
result | the node-set result |
- Returns:
- the node-set result, if the result was not returned in the parameter
Execute the XPath from the provided context.
The prefix resolver and current node must already be set execution context, and must not be 0.
- Parameters:
-
executionContext | current execution context |
formatterListener | the FormatterListener instance to receive the result |
function | A pointer to the member function of FormatterListener to call |
Execute the XPath from the provided context.
Normally, the expression will be evaluated and the result placed in the parameter result. However, some cases (such as the evalution of a variable) could result in the copying of a node-set, which is extremely expensive. In that case, the return value will contain the result of the evaluation. If the call to XObject::null() on the return value is true, that indicates the value was executed directly into the parameter. Otherwise, the parameter will be empty, and the result will be in the XObject instance returned.
The prefix resolver and current node must already be set execution context, and must not be 0.
- Parameters:
-
executionContext | current execution context |
result | A node list for the result. This may or may not contain the actual result. |
- Returns:
- the node-set result, if the result was not returned in the parameter
Execute the XPath from the provided context.
- Parameters:
-
context | current source tree context node, which must not be 0 |
prefixResolver | prefix resolver to use |
contextNodeList | node list for current context |
executionContext | current execution context |
- Returns:
- smart-pointer to result XObject
Execute the XPath from the provided context.
The current node must already be set execution context, and must not be 0.
- Parameters:
-
executionContext | current execution context |
prefixResolver | prefix resolver to use |
- Returns:
- smart-pointer to result XObject
Execute the XPath from the provided context.
The current node must already be set execution context, and must not be 0.
- Parameters:
-
executionContext | current execution context |
prefixResolver | prefix resolver to use |
result | the boolean result |
Execute the XPath from the provided context.
- Parameters:
-
context | current source tree context node, which must not be 0 |
prefixResolver | prefix resolver to use |
contextNodeList | node list for current context |
executionContext | current execution context |
result | the boolean result |
Execute the XPath from the provided context.
The current node must already be set execution context, and must not be 0.
- Parameters:
-
executionContext | current execution context |
prefixResolver | prefix resolver to use |
result | the numeric result |
Execute the XPath from the provided context.
The result is appended to the supplied string.
The current node must already be set execution context, and must not be 0.
- Parameters:
-
executionContext | current execution context |
prefixResolver | prefix resolver to use |
result | the string result |
Execute the XPath from the provided context.
- Parameters:
-
context | current source tree context node, which must not be 0 |
prefixResolver | prefix resolver to use |
contextNodeList | node list for current context |
executionContext | current execution context |
result | the numeric result |
Execute the XPath from the provided context.
- Parameters:
-
prefixResolver | prefix resolver to use |
executionContext | current execution context |
formatterListener | the FormatterListener instance to receive the result |
function | A pointer to the member function of FormatterListener to call |
Execute the XPath from the provided context.
Normally, the expression will be evaluated and the result placed in the parameter result. However, some cases (such as the evalution of a variable) could result in the copying of a node-set, which is extremely expensive. In that case, the return value will contain the result of the evaluation. If the call to XObject::null() on the return value is true, that indicates the value was executed directly into the parameter. Otherwise, the parameter will be empty, and the result will be in the XObject instance returned.
The current node must already be set execution context, and must not be 0.
- Parameters:
-
executionContext | current execution context |
prefixResolver | prefix resolver to use |
result | A node list for the result. This may or may not contain the actual result. |
- Returns:
- the node-set result, if the result was not returned in the parameter
Execute the XPath from the provided context.
- Parameters:
-
context | current source tree context node, which must not be 0 |
prefixResolver | prefix resolver to use |
executionContext | current execution context |
- Returns:
- smart-pointer to result XObject
Execute the XPath from the provided context.
The result is appended to the supplied string.
- Parameters:
-
context | current source tree context node, which must not be 0 |
prefixResolver | prefix resolver to use |
contextNodeList | node list for current context |
executionContext | current execution context |
result | the string result |
Execute the XPath from the provided context.
- Parameters:
-
context | current source tree context node, which must not be 0 |
prefixResolver | prefix resolver to use |
executionContext | current execution context |
result | the boolean result |
Execute the XPath from the provided context.
- Parameters:
-
context | current source tree context node |
opPos | current position in the Op Map |
executionContext | current execution context |
- Returns:
- pointer to union of node-set operands
Execute the XPath from the provided context.
- Parameters:
-
context | current source tree context node |
opPos | current position in the Op Map |
executionContext | current execution context |
theResult | The result of the execution |
Execute the XPath from the provided context.
- Parameters:
-
context | current source tree context node |
opPos | current position in the Op Map |
executionContext | current execution context |
theResult | The result of the execution |
Execute the XPath from the provided context.
The result is appended to the supplied string.
- Parameters:
-
context | current source tree context node |
opPos | current position in the Op Map |
executionContext | current execution context |
theResult | The result of the execution |
Execute the XPath from the provided context.
- Parameters:
-
context | current source tree context node |
opPos | current position in the Op Map |
executionContext | current execution context |
formatterListener | the FormatterListener instance to receive the result |
function | A pointer to the member function of FormatterListener to call |
Execute the XPath from the provided context.
- Parameters:
-
context | current source tree context node |
opPos | current position in the Op Map |
executionContext | current execution context |
theResult | The result of the execution |
- Returns:
- the node-set result, if the result was not returned in the parameter
Handle an extension function.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
theNamespace | The namespace of the function. |
functionName | The name of the function. |
executionContext | current execution context |
- Returns:
- the result of the function.
Handle a built-in function.
- Parameters:
-
context | The current source tree context node. |
funcID | The function ID. |
argVec | The arguments for the function. |
executionContext | current execution context |
- Returns:
- the result of the function.
Handle the built-in function "boolean".
- Parameters:
-
context | The current source tree context node, which must not be 0. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- the result of the function.
Handle the built-in function "ceiling".
- Parameters:
-
context | The current source tree context node, which must not be 0. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- the result of the function.
Handle the built-in function "count".
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- the result of the function.
Handle the built-in function "floor".
- Parameters:
-
context | The current source tree context node, which must not be 0. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- the result of the function.
Handle the built-in function "last".
- Parameters:
-
executionContext | current execution context |
- Returns:
- the result of the function.
Handle the built-in function "local-name".
- Parameters:
-
context | The current source tree context node, which must not be 0. |
- Returns:
- the result of the function.
Handle the built-in function "local-name".
- Parameters:
-
context | The current source tree context node, which must not be 0. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- the result of the function.
Handle the built-in function "name".
- Parameters:
-
context | The current source tree context node, which must not be 0. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- the result of the function.
Handle the built-in function "name".
- Parameters:
-
context | The current source tree context node, which must not be 0. |
- Returns:
- the result of the function.
Handle the built-in function "not".
- Parameters:
-
context | The current source tree context node, which must not be 0. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- the result of the function.
Handle the built-in function "number".
- Parameters:
-
context | The current source tree context node, which must not be 0. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- the result of the function.
Handle the built-in function "number".
- Parameters:
-
context | The current source tree context node, which must not be 0. |
executionContext | current execution context |
- Returns:
- the result of the function.
Handle the built-in function "position".
- Parameters:
-
context | The current source tree context node, which must not be 0. |
executionContext | current execution context |
- Returns:
- the result of the function.
Handle the built-in function "round".
- Parameters:
-
context | The current source tree context node, which must not be 0. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- the result of the function.
double XPath::functionStringLength |
( |
XalanNode * |
context | ) |
const [protected] |
Handle the built-in function "string-length".
- Parameters:
-
context | The current source tree context node, which must not be 0. |
- Returns:
- the result of the function.
Handle the built-in function "string-length".
- Parameters:
-
context | The current source tree context node, which must not be 0. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- the result of the function.
Handle the built-in function "sum".
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- the result of the function.
Retrieve a reference to the current expression.
- Returns:
- current expression
Retrieve a reference to the current expression.
- Returns:
- current expression
Retrieve the table of installed functions.
- Returns:
- function table
template<class OutputIteratorType >
static void XPath::getInstalledFunctionNames |
( |
OutputIteratorType |
theIterator | ) |
[static] |
Add the names for the installed functions to a vector strings.
- Parameters:
-
theIterator | vector added to |
bool XPath::getInStylesheet |
( |
| ) |
const |
Get the match score for the specified node.
- Parameters:
-
node | The node for the score |
executionContext | current execution context |
- Returns:
- union of node-set operands
Get the match score for the specified node.
- Parameters:
-
node | The node for the score |
resolver | The prefix resolver |
executionContext | current execution context |
- Returns:
- union of node-set operands
static double XPath::getMatchScoreValue |
( |
eMatchScore |
score | ) |
[static] |
Get a numeric operand for an expression.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- The value of the operand.
Add the data for the target of match pattern to a vector.
- Parameters:
-
targetData | The vector for the data |
Execute an expression as a group.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- arg.
Execute an expression as a group.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
theResult | The result of the execution |
Execute an expression as a group.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
theResult | The result of the execution |
Execute an expression as a group.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
formatterListener | the FormatterListener instance to receive the result |
function | A pointer to the member function of FormatterListener to call |
Execute an expression as a group.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
theResult | The result of the execution |
Execute an expression as a group.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
theResult | The result of the execution |
Tell if one argument is greater than the other argument.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- true if arg 1 is greater than arg 2.
Tell if one argument is greater than or equal to the other argument.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- true if arg 1 is greater than or equal to arg 2.
Perform static initialization.
See class XPathInit.
Install a built-in function.
- Parameters:
-
funcName | unqualified name of the function |
func | instance of an XPath function object |
static void XPath::installFunction |
( |
const XalanDOMChar * |
funcName, |
|
|
const Function & |
func |
|
) |
| [static] |
Install a built-in function.
- Parameters:
-
funcName | unqualified name of the function |
func | instance of an XPath function object |
static bool XPath::isInstalledFunction |
( |
const XalanDOMString & |
theFunctionName | ) |
[static] |
Whether the named function is installed in the function table.
- Parameters:
-
- Returns:
- true if the function has been installed
Get a literal value.
- Parameters:
-
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- an XObject object.
Get a literal value as a boolean.
- Parameters:
-
opPos | The current position in the Op Map. |
theResult | The value. |
Get a literal value as a number.
- Parameters:
-
opPos | The current position in the Op Map. |
theResult | The value. |
Get a literal value.
- Parameters:
-
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- The result as a double.
Get a literal value.
The value is appended to the supplied string.
- Parameters:
-
opPos | The current position in the Op Map. |
theResult | The string. |
Execute a location path.
- Parameters:
-
context | current source tree context node |
opPos | current position in the Op Map |
executionContext | current execution context |
theResult | the result as a node list |
Execute a location path.
- Parameters:
-
context | current source tree context node |
opPos | current position in the Op Mpa |
executionContext | current execution context |
- Returns:
- node-set
Execute a location path.
- Parameters:
-
context | current source tree context node |
opPos | current position in the Op Map |
executionContext | current execution context |
theResult | the result as a node list |
Execute a location path.
- Parameters:
-
context | current source tree context node |
opPos | current position in the Op Map |
executionContext | current execution context |
theResult | the result as a node list |
Execute a location path.
- Parameters:
-
context | current source tree context node |
opPos | current position in the Op Map |
executionContext | current execution context |
theResult | the result as a node list |
Execute a location path.
- Parameters:
-
context | current source tree context node |
opPos | current position in the Op Map |
executionContext | current execution context |
formatterListener | the FormatterListener instance to receive the result |
function | A pointer to the member function of FormatterListener to call |
Tell if one argument is less than the other argument.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- true if arg 1 is less than arg 2.
Tell if one argument is less than or equal to the other argument.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- true if arg 1 is less than or equal to arg 2.
Give the difference of two arguments.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- difference of arg1 and arg2.
Give the difference of two arguments.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
formatterListener | the FormatterListener instance to receive the result |
function | A pointer to the member function of FormatterListener to call |
Return the remainder from a truncating division.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- arg1 mod arg2.
Return the remainder from a truncating division.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
formatterListener | the FormatterListener instance to receive the result |
function | A pointer to the member function of FormatterListener to call |
Multiply two arguments.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- arg1 * arg2.
Multiply two arguments.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
formatterListener | the FormatterListener instance to receive the result |
function | A pointer to the member function of FormatterListener to call |
Return the negation of a number.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- -arg.
Return the negation of a number.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
formatterListener | the FormatterListener instance to receive the result |
function | A pointer to the member function of FormatterListener to call |
Tell if two expressions are functionally not equal.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- true if the two arguments are not equal.
Get a literal value.
- Parameters:
-
opPos | The current position in the Op Map. |
formatterListener | the FormatterListener instance to receive the result |
function | A pointer to the member function of FormatterListener to call |
Get a literal value as a boolean.
- Parameters:
-
opPos | The current position in the Op Map. |
theResult | The string. |
Get a literal value.
The value is appended to the supplied string.
- Parameters:
-
opPos | The current position in the Op Map. |
theResult | The string. |
Get a literal value.
- Parameters:
-
opPos | The current position in the Op Map. |
- Returns:
- The result as a double.
Get a literal value.
- Parameters:
-
opPos | The current position in the Op Map. |
- Returns:
- The result as a double.
OR two expressions and return the boolean result.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- true if the one of the two arguments are true.
Give the sum of two arguments.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
formatterListener | the FormatterListener instance to receive the result |
function | A pointer to the member function of FormatterListener to call |
Give the sum of two arguments.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- sum of arg1 and arg2.
Evaluate a predicate.
- Parameters:
-
context | current source tree context node |
opPos | current position in the Op Map |
executionContext | current execution context |
- Returns:
- pointer to either a boolean or a number
Setup for and run an extension function.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- the result of the function.
Setup for and run a function.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- the result of the function.
void XPath::setInStylesheet |
( |
bool |
fValue | ) |
|
void XPath::setLocator |
( |
const LocatorType * |
theLocator | ) |
|
Execute a step in a location path.
- Parameters:
-
xpath | The xpath that is executing |
context | The current source tree context node |
opPos | The current position in the xpath operation map array |
scoreHolder | a reference to an eMatchScore to receive the result. |
- Returns:
- the last matched context node
static void XPath::terminate |
( |
| ) |
[static] |
Perform static shut down.
See class XPathInit.
static bool XPath::uninstallFunction |
( |
const XalanDOMString & |
funcName | ) |
[static] |
Remove a named function from the function table.
- Parameters:
-
- Returns:
- true if the function was found and removed.
static bool XPath::uninstallFunction |
( |
const XalanDOMChar * |
funcName | ) |
[static] |
Remove a named function from the function table.
- Parameters:
-
- Returns:
- true if the function was found and removed.
Computes the union of its operands which must be node-sets.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- the result of the union of node-set operands.
Computes the union of its operands which must be node-sets.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
formatterListener | the FormatterListener instance to receive the result |
function | A pointer to the member function of FormatterListener to call |
Computes the union of its operands which must be node-sets.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- the result of the union of node-set operands.
Computes the union of its operands which must be node-sets.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- the result of the union of node-set operands.
Computes the union of its operands which must be node-sets.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- the result of the union of node-set operands.
Computes the union of its operands which must be node-sets.
- Parameters:
-
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- the union of node-set operands.
Get the value of a variable.
- Parameters:
-
opPos | The current position in the Op Map. |
executionContext | current execution context |
- Returns:
- an XObject object.
Friends And Related Function Documentation
Member Data Documentation
The documentation for this class was generated from the following file: