#include <XPath.hpp>
Classes | |
class | NodeTester |
class | TargetData |
Public Types | |
enum | eMatchScore { eMatchScoreNone, eMatchScoreNodeTest, eMatchScoreNSWild, eMatchScoreQName, eMatchScoreOther } |
typedef XERCES_CPP_NAMESPACE_QUALIFIER Locator | LocatorType |
typedef XPathExpression::OpCodeMapPositionType | OpCodeMapPositionType |
typedef XPathExpression::OpCodeMapValueType | OpCodeMapValueType |
typedef XPathExpression::TokenQueuePositionType | TokenQueuePositionType |
typedef XPathExecutionContext::GetCachedString | GetCachedString |
typedef XPathExecutionContext::PrefixResolverSetAndRestore | PrefixResolverSetAndRestore |
typedef XPathExecutionContext::CurrentNodePushAndPop | CurrentNodePushAndPop |
typedef XalanVector< TargetData > | TargetDataVectorType |
typedef void(FormatterListener::* | MemberFunctionPtr) (const XMLCh *const, const FormatterListener::size_type) |
typedef XPathFunctionTable | FunctionTableType |
Public Member Functions | |
XPath (MemoryManager &theManager, const Locator *theLocator=0) | |
Construct an XPath. More... | |
MemoryManager & | getMemoryManager () |
~XPath () | |
void | shrink () |
Shrink internal tables. More... | |
const XObjectPtr | execute (XalanNode *context, const PrefixResolver &prefixResolver, XPathExecutionContext &executionContext) const |
Execute the XPath from the provided context. More... | |
void | execute (XalanNode *context, const PrefixResolver &prefixResolver, XPathExecutionContext &executionContext, bool &result) const |
Execute the XPath from the provided context. More... | |
void | execute (XalanNode *context, const PrefixResolver &prefixResolver, XPathExecutionContext &executionContext, double &result) const |
Execute the XPath from the provided context. More... | |
void | execute (XalanNode *context, const PrefixResolver &prefixResolver, XPathExecutionContext &executionContext, XalanDOMString &result) const |
Execute the XPath from the provided context. More... | |
void | execute (XalanNode *context, const PrefixResolver &prefixResolver, XPathExecutionContext &executionContext, FormatterListener &formatterListener, MemberFunctionPtr function) const |
Execute the XPath from the provided context. More... | |
const XObjectPtr | execute (XalanNode *context, const PrefixResolver &prefixResolver, XPathExecutionContext &executionContext, MutableNodeRefList &result) const |
Execute the XPath from the provided context. More... | |
const XObjectPtr | execute (XalanNode *context, const PrefixResolver &prefixResolver, const NodeRefListBase &contextNodeList, XPathExecutionContext &executionContext) const |
Execute the XPath from the provided context. More... | |
void | execute (XalanNode *context, const PrefixResolver &prefixResolver, const NodeRefListBase &contextNodeList, XPathExecutionContext &executionContext, bool &result) const |
Execute the XPath from the provided context. More... | |
void | execute (XalanNode *context, const PrefixResolver &prefixResolver, const NodeRefListBase &contextNodeList, XPathExecutionContext &executionContext, double &result) const |
Execute the XPath from the provided context. More... | |
void | execute (XalanNode *context, const PrefixResolver &prefixResolver, const NodeRefListBase &contextNodeList, XPathExecutionContext &executionContext, XalanDOMString &result) const |
Execute the XPath from the provided context. More... | |
void | execute (XalanNode *context, const PrefixResolver &prefixResolver, const NodeRefListBase &contextNodeList, XPathExecutionContext &executionContext, FormatterListener &formatterListener, MemberFunctionPtr function) const |
Execute the XPath from the provided context. More... | |
const XObjectPtr | execute (XalanNode *context, const PrefixResolver &prefixResolver, const NodeRefListBase &contextNodeList, XPathExecutionContext &executionContext, MutableNodeRefList &result) const |
Execute the XPath from the provided context. More... | |
const XObjectPtr | execute (XPathExecutionContext &executionContext) const |
Execute the XPath from the provided context. More... | |
void | execute (XPathExecutionContext &executionContext, bool &result) const |
Execute the XPath from the provided context. More... | |
void | execute (XPathExecutionContext &executionContext, double &result) const |
Execute the XPath from the provided context. More... | |
void | execute (XPathExecutionContext &executionContext, XalanDOMString &result) const |
Execute the XPath from the provided context. More... | |
void | execute (XPathExecutionContext &executionContext, FormatterListener &formatterListener, MemberFunctionPtr function) const |
Execute the XPath from the provided context. More... | |
const XObjectPtr | execute (XPathExecutionContext &executionContext, MutableNodeRefList &result) const |
Execute the XPath from the provided context. More... | |
const XObjectPtr | execute (const PrefixResolver &prefixResolver, XPathExecutionContext &executionContext) const |
Execute the XPath from the provided context. More... | |
void | execute (const PrefixResolver &prefixResolver, XPathExecutionContext &executionContext, bool &result) const |
Execute the XPath from the provided context. More... | |
void | execute (const PrefixResolver &prefixResolver, XPathExecutionContext &executionContext, double &result) const |
Execute the XPath from the provided context. More... | |
void | execute (const PrefixResolver &prefixResolver, XPathExecutionContext &executionContext, XalanDOMString &result) const |
Execute the XPath from the provided context. More... | |
void | execute (const PrefixResolver &prefixResolver, XPathExecutionContext &executionContext, FormatterListener &formatterListener, MemberFunctionPtr function) const |
Execute the XPath from the provided context. More... | |
XObjectPtr | execute (const PrefixResolver &prefixResolver, XPathExecutionContext &executionContext, MutableNodeRefList &result) const |
Execute the XPath from the provided context. More... | |
XPathExpression & | getExpression () |
Retrieve a reference to the current expression. More... | |
const XPathExpression & | getExpression () const |
Retrieve a reference to the current expression. More... | |
eMatchScore | getMatchScore (XalanNode *node, XPathExecutionContext &executionContext) const |
Get the match score for the specified node. More... | |
eMatchScore | getMatchScore (XalanNode *node, const PrefixResolver &resolver, XPathExecutionContext &executionContext) const |
Get the match score for the specified node. More... | |
const XObjectPtr | predicate (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Evaluate a predicate. More... | |
void | getTargetData (TargetDataVectorType &targetData) const |
Add the data for the target of match pattern to a vector. More... | |
bool | getInStylesheet () const |
void | setInStylesheet (bool fValue) |
const Locator * | getLocator () const |
void | setLocator (const Locator *theLocator) |
Static Public Member Functions | |
static void | initialize (MemoryManager &theManager) |
Perform static initialization. More... | |
static void | terminate () |
Perform static shut down. More... | |
static XPath * | create (MemoryManager &theManager, const Locator *theLocator=0) |
static double | getMatchScoreValue (eMatchScore score) |
static void | installFunction (const XalanDOMString &funcName, const Function &func) |
Install a built-in function. More... | |
static void | installFunction (const XalanDOMChar *funcName, const Function &func) |
Install a built-in function. More... | |
static bool | uninstallFunction (const XalanDOMString &funcName) |
Remove a named function from the function table. More... | |
static bool | uninstallFunction (const XalanDOMChar *funcName) |
Remove a named function from the function table. More... | |
static bool | isInstalledFunction (const XalanDOMString &theFunctionName) |
Whether the named function is installed in the function table. More... | |
static const FunctionTableType & | getFunctionTable () |
Retrieve the table of installed functions. More... | |
template<class OutputIteratorType > | |
static void | getInstalledFunctionNames (OutputIteratorType theIterator) |
Add the names for the installed functions to a vector strings. More... | |
static void | destroyTable () |
Static Public Attributes | |
static const XalanDOMChar | PSEUDONAME_ANY [] |
static const XalanDOMChar | PSEUDONAME_ROOT [] |
static const XalanDOMChar | PSEUDONAME_TEXT [] |
static const XalanDOMChar | PSEUDONAME_COMMENT [] |
static const XalanDOMChar | PSEUDONAME_PI [] |
static const XalanDOMChar | PSEUDONAME_OTHER [] |
static const XalanDOMChar | PSEUDONAME_NODE [] |
Protected Member Functions | |
const XObjectPtr | locationPath (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Execute a location path. More... | |
void | locationPath (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, bool &theResult) const |
Execute a location path. More... | |
void | locationPath (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, double &theResult) const |
Execute a location path. More... | |
void | locationPath (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, XalanDOMString &theResult) const |
Execute a location path. More... | |
void | locationPath (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, FormatterListener &formatterListener, MemberFunctionPtr function) const |
Execute a location path. More... | |
void | locationPath (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, MutableNodeRefList &theResult) const |
Execute a location path. More... | |
const XObjectPtr | executeMore (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Execute the XPath from the provided context. More... | |
void | executeMore (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, bool &theResult) const |
Execute the XPath from the provided context. More... | |
void | executeMore (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, double &theResult) const |
Execute the XPath from the provided context. More... | |
void | executeMore (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, XalanDOMString &theResult) const |
Execute the XPath from the provided context. More... | |
void | executeMore (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, FormatterListener &formatterListener, MemberFunctionPtr function) const |
Execute the XPath from the provided context. More... | |
const XObjectPtr | executeMore (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, MutableNodeRefList &theResult) const |
Execute the XPath from the provided context. More... | |
void | doGetMatchScore (XalanNode *context, XPathExecutionContext &executionContext, eMatchScore &score) const |
Helper function to get match score. More... | |
bool | Or (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
OR two expressions and return the boolean result. More... | |
bool | And (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
OR two expressions and return the boolean result. More... | |
bool | notequals (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Tell if two expressions are functionally not equal. More... | |
bool | equals (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Tell if two expressions are functionally equal. More... | |
bool | lte (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Tell if one argument is less than or equal to the other argument. More... | |
bool | lt (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Tell if one argument is less than the other argument. More... | |
bool | gte (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Tell if one argument is greater than or equal to the other argument. More... | |
bool | gt (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Tell if one argument is greater than the other argument. More... | |
double | plus (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Give the sum of two arguments. More... | |
void | plus (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, FormatterListener &formatterListener, MemberFunctionPtr function) const |
Give the sum of two arguments. More... | |
double | minus (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Give the difference of two arguments. More... | |
void | minus (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, FormatterListener &formatterListener, MemberFunctionPtr function) const |
Give the difference of two arguments. More... | |
double | mult (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Multiply two arguments. More... | |
void | mult (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, FormatterListener &formatterListener, MemberFunctionPtr function) const |
Multiply two arguments. More... | |
double | div (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Divide a number. More... | |
void | div (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, FormatterListener &formatterListener, MemberFunctionPtr function) const |
Divide a number. More... | |
double | mod (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Return the remainder from a truncating division. More... | |
void | mod (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, FormatterListener &formatterListener, MemberFunctionPtr function) const |
Return the remainder from a truncating division. More... | |
double | neg (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Return the negation of a number. More... | |
void | neg (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, FormatterListener &formatterListener, MemberFunctionPtr function) const |
Return the negation of a number. More... | |
const XObjectPtr | Union (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Computes the union of its operands which must be node-sets. More... | |
void | Union (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, bool &result) const |
Computes the union of its operands which must be node-sets. More... | |
void | Union (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, double &result) const |
Computes the union of its operands which must be node-sets. More... | |
void | Union (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, XalanDOMString &result) const |
Computes the union of its operands which must be node-sets. More... | |
void | Union (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, FormatterListener &formatterListener, MemberFunctionPtr function) const |
Computes the union of its operands which must be node-sets. More... | |
void | Union (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, MutableNodeRefList &result) const |
Computes the union of its operands which must be node-sets. More... | |
const XObjectPtr | literal (OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Get a literal value. More... | |
void | literal (OpCodeMapPositionType opPos, bool &theResult) const |
Get a literal value as a boolean. More... | |
void | literal (OpCodeMapPositionType opPos, double &theResult) const |
Get a literal value as a number. More... | |
void | literal (OpCodeMapPositionType opPos, XalanDOMString &theResult) const |
Get a literal value. More... | |
void | literal (OpCodeMapPositionType opPos, FormatterListener &formatterListener, MemberFunctionPtr function) const |
Get a literal value. More... | |
const XObjectPtr | variable (OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Get the value of a variable. More... | |
const XObjectPtr | group (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Execute an expression as a group. More... | |
void | group (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, bool &theResult) const |
Execute an expression as a group. More... | |
void | group (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, double &theResult) const |
Execute an expression as a group. More... | |
void | group (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, XalanDOMString &theResult) const |
Execute an expression as a group. More... | |
void | group (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, FormatterListener &formatterListener, MemberFunctionPtr function) const |
Execute an expression as a group. More... | |
void | group (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext, MutableNodeRefList &theResult) const |
Execute an expression as a group. More... | |
double | numberlit (OpCodeMapPositionType opPos) const |
Get a literal value. More... | |
const XObjectPtr | numberlit (OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Get a literal value. More... | |
void | numberlit (OpCodeMapPositionType opPos, bool &theResult) const |
Get a literal value as a boolean. More... | |
void | numberlit (OpCodeMapPositionType opPos, XalanDOMString &theResult) const |
Get a literal value. More... | |
void | numberlit (OpCodeMapPositionType opPos, FormatterListener &formatterListener, MemberFunctionPtr function) const |
Get a literal value. More... | |
const XObjectPtr | runExtFunction (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Setup for and run an extension function. More... | |
const XObjectPtr | extfunction (XalanNode *context, OpCodeMapPositionType, const XalanDOMString &theNamespace, const XalanDOMString &functionName, const Function::XObjectArgVectorType &argVec, XPathExecutionContext &executionContext) const |
Handle an extension function. More... | |
const XObjectPtr | runFunction (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Setup for and run a function. More... | |
const XObjectPtr | function (XalanNode *context, OpCodeMapValueType funcID, const Function::XObjectArgVectorType &argVec, XPathExecutionContext &executionContext) const |
Handle a built-in function. More... | |
double | functionPosition (XalanNode *context, XPathExecutionContext &executionContext) const |
Handle the built-in function "position". More... | |
double | functionLast (XPathExecutionContext &executionContext) const |
Handle the built-in function "last". More... | |
double | functionCount (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Handle the built-in function "count". More... | |
bool | functionNot (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Handle the built-in function "not". More... | |
bool | functionBoolean (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Handle the built-in function "boolean". More... | |
const XalanDOMString & | functionName (XalanNode *context) const |
Handle the built-in function "name". More... | |
const XalanDOMString & | functionName (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Handle the built-in function "name". More... | |
const XalanDOMString & | functionLocalName (XalanNode *context) const |
Handle the built-in function "local-name". More... | |
const XalanDOMString & | functionLocalName (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Handle the built-in function "local-name". More... | |
double | functionNumber (XalanNode *context, XPathExecutionContext &executionContext) const |
Handle the built-in function "number". More... | |
double | functionNumber (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Handle the built-in function "number". More... | |
double | functionFloor (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Handle the built-in function "floor". More... | |
double | functionCeiling (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Handle the built-in function "ceiling". More... | |
double | functionRound (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Handle the built-in function "round". More... | |
double | functionStringLength (XalanNode *context, XPathExecutionContext &executionContext) const |
Handle the built-in function "string-length". More... | |
double | functionStringLength (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Handle the built-in function "string-length". More... | |
double | functionSum (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Handle the built-in function "sum". More... | |
double | getNumericOperand (XalanNode *context, OpCodeMapPositionType opPos, XPathExecutionContext &executionContext) const |
Get a numeric operand for an expression. More... | |
void | step (XPathExecutionContext &executionContext, XalanNode *context, OpCodeMapPositionType opPos, MutableNodeRefList &queryResults) const |
Execute a step in a location path. More... | |
eMatchScore | doStepPredicate (XPathExecutionContext &executionContext, XalanNode *context, OpCodeMapPositionType opPos, OpCodeMapPositionType startOpPos, eMatchScore score) const |
Potentially evaluate a predicate in a match pattern step. More... | |
XalanNode * | stepPattern (XPathExecutionContext &executionContext, XalanNode *context, OpCodeMapPositionType opPos, eMatchScore &scoreHolder) const |
Execute a step in a match pattern's location path. More... | |
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 |
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 | |
class | NodeTester |
typedef XERCES_CPP_NAMESPACE_QUALIFIER Locator XPath::LocatorType |
typedef void(FormatterListener::* XPath::MemberFunctionPtr) (const XMLCh *const, const FormatterListener::size_type) |
enum XPath::eMatchScore |
|
explicit |
Construct an XPath.
theLocator | The applicable Locator, if any. |
XPath::~XPath | ( | ) |
|
protected |
OR two expressions and return the boolean result.
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
|
static |
|
protected |
Divide a number.
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
|
protected |
Divide a number.
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 |
|
protected |
Helper function to get match score.
context | The current source tree context node. |
executionContext | The current execution context |
score | The match score |
|
protected |
Potentially evaluate a predicate in a match pattern step.
executionContext | The current execution context. |
context | The current source tree context node. |
opPos | The current position in the Op Map. |
startOpPos | The original position for the step in the Op Map. |
score | The current match score for the context node. |
|
protected |
Tell if two expressions are functionally equal.
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
const XObjectPtr XPath::execute | ( | XalanNode * | context, |
const PrefixResolver & | prefixResolver, | ||
XPathExecutionContext & | executionContext | ||
) | const |
void XPath::execute | ( | XalanNode * | context, |
const PrefixResolver & | prefixResolver, | ||
XPathExecutionContext & | executionContext, | ||
bool & | result | ||
) | const |
Execute the XPath from the provided context.
context | current source tree context node, which must not be 0 |
prefixResolver | prefix resolver to use |
executionContext | current execution context |
result | the boolean result |
void XPath::execute | ( | XalanNode * | context, |
const PrefixResolver & | prefixResolver, | ||
XPathExecutionContext & | executionContext, | ||
double & | result | ||
) | const |
Execute the XPath from the provided context.
context | current source tree context node, which must not be 0 |
prefixResolver | prefix resolver to use |
executionContext | current execution context |
result | the numeric result |
void XPath::execute | ( | XalanNode * | context, |
const PrefixResolver & | prefixResolver, | ||
XPathExecutionContext & | executionContext, | ||
XalanDOMString & | result | ||
) | const |
Execute the XPath from the provided context.
The result is appended to the supplied string.
context | current source tree context node, which must not be 0 |
prefixResolver | prefix resolver to use |
executionContext | current execution context |
result | the string result |
void XPath::execute | ( | XalanNode * | context, |
const PrefixResolver & | prefixResolver, | ||
XPathExecutionContext & | executionContext, | ||
FormatterListener & | formatterListener, | ||
MemberFunctionPtr | function | ||
) | const |
Execute the XPath from the provided context.
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 |
const XObjectPtr XPath::execute | ( | XalanNode * | context, |
const PrefixResolver & | prefixResolver, | ||
XPathExecutionContext & | executionContext, | ||
MutableNodeRefList & | result | ||
) | const |
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.
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 |
|
inline |
|
inline |
Execute the XPath from the provided context.
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 |
|
inline |
Execute the XPath from the provided context.
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 |
|
inline |
Execute the XPath from the provided context.
The result is appended to the supplied string.
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 |
|
inline |
Execute the XPath from the provided context.
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 |
|
inline |
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.
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 |
|
inline |
|
inline |
|
inline |
|
inline |
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.
executionContext | current execution context |
result | the string result |
|
inline |
Execute the XPath from the provided context.
The prefix resolver and current node must already be set execution context, and must not be 0.
executionContext | current execution context |
formatterListener | the FormatterListener instance to receive the result |
function | A pointer to the member function of FormatterListener to call |
|
inline |
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.
executionContext | current execution context |
result | A node list for the result. This may or may not contain the actual result. |
|
inline |
|
inline |
|
inline |
|
inline |
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.
executionContext | current execution context |
prefixResolver | prefix resolver to use |
result | the string result |
|
inline |
Execute the XPath from the provided context.
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 |
|
inline |
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.
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. |
|
protected |
Execute the XPath from the provided context.
context | current source tree context node |
opPos | current position in the Op Map |
executionContext | current execution context |
|
protected |
Execute the XPath from the provided context.
context | current source tree context node |
opPos | current position in the Op Map |
executionContext | current execution context |
theResult | The result of the execution |
|
protected |
Execute the XPath from the provided context.
context | current source tree context node |
opPos | current position in the Op Map |
executionContext | current execution context |
theResult | The result of the execution |
|
protected |
Execute the XPath from the provided context.
The result is appended to the supplied string.
context | current source tree context node |
opPos | current position in the Op Map |
executionContext | current execution context |
theResult | The result of the execution |
|
protected |
Execute the XPath from the provided context.
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 |
|
protected |
Execute the XPath from the provided context.
context | current source tree context node |
opPos | current position in the Op Map |
executionContext | current execution context |
theResult | The result of the execution |
|
inlineprotected |
Handle an extension function.
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 |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
protected |
Handle the built-in function "count".
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
|
inlineprotected |
|
inlineprotected |
|
protected |
Handle the built-in function "local-name".
context | The current source tree context node, which must not be 0. |
|
protected |
Handle the built-in function "local-name".
context | The current source tree context node, which must not be 0. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
|
inlineprotected |
|
protected |
Handle the built-in function "name".
context | The current source tree context node, which must not be 0. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
protected |
Handle the built-in function "string-length".
context | The current source tree context node, which must not be 0. |
executionContext | current execution context |
|
protected |
Handle the built-in function "string-length".
context | The current source tree context node, which must not be 0. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
|
protected |
Handle the built-in function "sum".
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
eMatchScore XPath::getMatchScore | ( | XalanNode * | node, |
XPathExecutionContext & | executionContext | ||
) | const |
Get the match score for the specified node.
node | The node for the score |
executionContext | current execution context |
eMatchScore XPath::getMatchScore | ( | XalanNode * | node, |
const PrefixResolver & | resolver, | ||
XPathExecutionContext & | executionContext | ||
) | const |
Get the match score for the specified node.
node | The node for the score |
resolver | The prefix resolver |
executionContext | current execution context |
|
inlinestatic |
|
protected |
Get a numeric operand for an expression.
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
void XPath::getTargetData | ( | TargetDataVectorType & | targetData | ) | const |
Add the data for the target of match pattern to a vector.
targetData | The vector for the data |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
Execute an expression as a group.
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 |
|
inlineprotected |
|
protected |
Tell if one argument is greater than the other argument.
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
|
protected |
Tell if one argument is greater than or equal to the other argument.
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
|
protected |
|
protected |
|
static |
Perform static initialization.
See class XPathInit.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
protected |
Get a literal value.
opPos | The current position in the Op Map. |
executionContext | current execution context |
|
protected |
Get a literal value as a boolean.
opPos | The current position in the Op Map. |
theResult | The value. |
|
protected |
Get a literal value as a number.
opPos | The current position in the Op Map. |
theResult | The value. |
|
protected |
Get a literal value.
The value is appended to the supplied string.
opPos | The current position in the Op Map. |
theResult | The string. |
|
protected |
Get a literal value.
opPos | The current position in the Op Map. |
executionContext | current execution context |
|
protected |
Execute a location path.
context | current source tree context node |
opPos | current position in the Op Mpa |
executionContext | current execution context |
|
protected |
Execute a location path.
context | current source tree context node |
opPos | current position in the Op Map |
executionContext | current execution context |
theResult | the result as a node list |
|
protected |
Execute a location path.
context | current source tree context node |
opPos | current position in the Op Map |
executionContext | current execution context |
theResult | the result as a node list |
|
protected |
Execute a location path.
context | current source tree context node |
opPos | current position in the Op Map |
executionContext | current execution context |
theResult | the result as a node list |
|
protected |
Execute a location path.
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 |
|
inlineprotected |
|
protected |
Tell if one argument is less than the other argument.
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
|
protected |
Tell if one argument is less than or equal to the other argument.
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
|
protected |
Give the difference of two arguments.
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
|
protected |
Give the difference of two arguments.
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 |
|
protected |
Return the remainder from a truncating division.
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
|
protected |
Return the remainder from a truncating division.
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 |
|
protected |
Multiply two arguments.
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
|
protected |
Multiply two arguments.
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 |
|
protected |
Return the negation of a number.
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
|
protected |
Return the negation of a number.
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 |
|
protected |
Tell if two expressions are functionally not equal.
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
|
protected |
Get a literal value.
opPos | The current position in the Op Map. |
|
protected |
Get a literal value.
opPos | The current position in the Op Map. |
|
protected |
Get a literal value as a boolean.
opPos | The current position in the Op Map. |
theResult | The string. |
|
protected |
Get a literal value.
The value is appended to the supplied string.
opPos | The current position in the Op Map. |
theResult | The string. |
|
protected |
Get a literal value.
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 |
|
protected |
OR two expressions and return the boolean result.
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
|
protected |
Give the sum of two arguments.
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
|
protected |
Give the sum of two arguments.
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 |
|
inline |
|
protected |
|
protected |
Setup for and run an extension function.
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
|
protected |
Setup for and run a function.
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
|
inline |
|
protected |
Execute a step in a location path.
xpath | The xpath that is executing |
context | The current source tree context node |
opPos | The current position in the xpath operation map array |
queryResults | The set of nodes that matches the step. |
|
protected |
Execute a step in a match pattern's location path.
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. |
|
static |
Perform static shut down.
See class XPathInit.
|
inlinestatic |
|
inlinestatic |
|
protected |
Computes the union of its operands which must be node-sets.
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
|
protected |
Computes the union of its operands which must be node-sets.
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
|
protected |
Computes the union of its operands which must be node-sets.
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
|
protected |
Computes the union of its operands which must be node-sets.
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
|
protected |
Computes the union of its operands which must be node-sets.
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 |
|
protected |
Computes the union of its operands which must be node-sets.
context | The current source tree context node. |
opPos | The current position in the Op Map. |
executionContext | current execution context |
|
protected |
Get the value of a variable.
opPos | The current position in the Op Map. |
executionContext | current execution context |
|
friend |
Doxygen and GraphViz are used to generate this API documentation from the Xalan-C header files.
Xalan-C++ XSLT Processor Version 1.11 |
|