Xalan-C++ API Reference
1.12.0
|
#include <xalanc/XPath/XPath.hpp>
Classes | |
class | NodeTester |
class | TargetData |
Public Types | |
enum | eMatchScore { eMatchScoreNone, eMatchScoreNodeTest, eMatchScoreNSWild, eMatchScoreQName, eMatchScoreOther } |
typedef xercesc::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 xercesc::Locator xalanc::XPath::LocatorType |
typedef void(FormatterListener::* xalanc::XPath::MemberFunctionPtr) (const XMLCh *const, const FormatterListener::size_type) |
|
explicit |
Construct an XPath.
theLocator | The applicable Locator, if any. |
xalanc::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 |
|
inline |
Execute the XPath from the provided context.
The current node must already be set execution context, and must not be 0.
executionContext | current execution context |
prefixResolver | prefix resolver to use |
Definition at line 629 of file XPath.hpp.
References xalanc::XPathExecutionContext::getCurrentNode().
|
inline |
Execute the XPath from the provided context.
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 boolean result |
Definition at line 657 of file XPath.hpp.
References xalanc::XPathExecutionContext::getCurrentNode().
|
inline |
Execute the XPath from the provided context.
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 numeric result |
Definition at line 687 of file XPath.hpp.
References xalanc::XPathExecutionContext::getCurrentNode().
|
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 |
Definition at line 746 of file XPath.hpp.
References xalanc::XPathExecutionContext::getCurrentNode().
|
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. |
Definition at line 789 of file XPath.hpp.
References xalanc::XPathExecutionContext::getCurrentNode().
|
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 |
Definition at line 718 of file XPath.hpp.
References xalanc::XPathExecutionContext::getCurrentNode().
|
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.
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 |
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 |
const XObjectPtr xalanc::XPath::execute | ( | XalanNode * | context, |
const PrefixResolver & | prefixResolver, | ||
XPathExecutionContext & | executionContext | ||
) | const |
void xalanc::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 xalanc::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 xalanc::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 xalanc::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 |
void xalanc::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 |
|
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 |
Definition at line 472 of file XPath.hpp.
References xalanc::XPathExecutionContext::getCurrentNode(), and xalanc::XPathExecutionContext::getPrefixResolver().
|
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 |
result | the boolean result |
Definition at line 493 of file XPath.hpp.
References xalanc::XPathExecutionContext::getCurrentNode(), and xalanc::XPathExecutionContext::getPrefixResolver().
|
inline |
Execute the XPath from the provided context.
The prefix resolver must already be set in the execution context.
executionContext | current execution context |
result | the numeric result |
Definition at line 517 of file XPath.hpp.
References xalanc::XPathExecutionContext::getCurrentNode(), and xalanc::XPathExecutionContext::getPrefixResolver().
|
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 |
Definition at line 567 of file XPath.hpp.
References xalanc::XPathExecutionContext::getCurrentNode(), and xalanc::XPathExecutionContext::getPrefixResolver().
|
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. |
Definition at line 604 of file XPath.hpp.
References xalanc::XPathExecutionContext::getCurrentNode(), and xalanc::XPathExecutionContext::getPrefixResolver().
|
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 |
Definition at line 542 of file XPath.hpp.
References xalanc::XPathExecutionContext::getCurrentNode(), and xalanc::XPathExecutionContext::getPrefixResolver().
|
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.
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 |
|
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 |
|
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 |
Definition at line 2072 of file XPath.hpp.
References xalanc::XPathExecutionContext::extFunction().
|
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 |
Handle the built-in function "last".
executionContext | current execution context |
Definition at line 2146 of file XPath.hpp.
References xalanc::XPathExecutionContext::getContextNodeListLength().
|
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 |
Handle the built-in function "position".
context | The current source tree context node, which must not be 0. |
executionContext | current execution context |
Definition at line 2126 of file XPath.hpp.
References xalanc::XPathExecutionContext::getContextNodeListPosition().
|
inlineprotected |
|
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 "string-length".
context | The current source tree context node, which must not be 0. |
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 |
|
inline |
eMatchScore xalanc::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 |
eMatchScore xalanc::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 |
|
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 xalanc::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 |
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 |
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 |
theResult | The result of the execution |
Definition at line 1973 of file XPath.hpp.
References xalanc::MutableNodeRefList::addNodesInDocOrder(), xalanc::XObject::nodeset(), xalanc::XObjectPtr::null(), and xalanc::MutableNodeRefList::setDocumentOrder().
|
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 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.
opPos | The current position in the Op Map. |
executionContext | current execution context |
|
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 |
formatterListener | the FormatterListener instance to receive the result |
function | A pointer to the member function of FormatterListener to call |
|
inlineprotected |
|
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 |
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 as a boolean.
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 |
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. |
|
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 |
|
inline |
|
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 |
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 |
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 |
|
static |
|
static |
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Generated on Sun May 31 2020 10:37:40 for Xalan-C++ API Reference by 1.8.17