Xalan-C++ API Reference 1.12.0
xalanc::XPathProcessor Class Referenceabstract

#include <xalanc/XPath/XPathProcessor.hpp>

Inheritance diagram for xalanc::XPathProcessor:
[legend]

Public Types

typedef xercesc::Locator LocatorType

Public Member Functions

 XPathProcessor ()
virtual ~XPathProcessor ()
virtual void initXPath (XPath &pathObj, XPathConstructionContext &constructionContext, const XalanDOMString &expression, const PrefixResolver &resolver, const Locator *locator=0, bool allowVariableReferences=true, bool allowKeyFunction=true)=0
 Given a string, make an XPath object, in order that a parse doesn't have to be done each time the expression is executed.
virtual void initMatchPattern (XPath &pathObj, XPathConstructionContext &constructionContext, const XalanDOMString &expression, const PrefixResolver &resolver, const Locator *locator=0, bool allowVariableReferences=true, bool allowKeyFunction=true)=0
 Given a string, create an XSLT Match Pattern object.

Static Public Member Functions

static void installFunction (const XalanDOMString &theFunctionName, const Function &theFunction)
 Given a string, and a reference to a function object, install the function with the given name.

Detailed Description

Definition at line 56 of file XPathProcessor.hpp.

Member Typedef Documentation

◆ LocatorType

typedef xercesc::Locator xalanc::XPathProcessor::LocatorType

Definition at line 60 of file XPathProcessor.hpp.

Constructor & Destructor Documentation

◆ XPathProcessor()

xalanc::XPathProcessor::XPathProcessor ( )
explicit

◆ ~XPathProcessor()

virtual xalanc::XPathProcessor::~XPathProcessor ( )
virtual

Member Function Documentation

◆ initMatchPattern()

virtual void xalanc::XPathProcessor::initMatchPattern ( XPath & pathObj,
XPathConstructionContext & constructionContext,
const XalanDOMString & expression,
const PrefixResolver & resolver,
const Locator * locator = 0,
bool allowVariableReferences = true,
bool allowKeyFunction = true )
pure virtual

Given a string, create an XSLT Match Pattern object.

Parameters
pathObjXPath object to be initialized
constructionContextThe construction context
expressionexpression that will be evaluated
resolverprefix resolver to use
locatorthe Locator to use for error report. May be null
allowVariableReferencesIf true, variable references are allowed.
allowKeyFunctionIf true, calls to the key() function are allowed.

Implemented in xalanc::XPathProcessorImpl.

◆ initXPath()

virtual void xalanc::XPathProcessor::initXPath ( XPath & pathObj,
XPathConstructionContext & constructionContext,
const XalanDOMString & expression,
const PrefixResolver & resolver,
const Locator * locator = 0,
bool allowVariableReferences = true,
bool allowKeyFunction = true )
pure virtual

Given a string, make an XPath object, in order that a parse doesn't have to be done each time the expression is executed.

Parameters
pathObjXPath object to be initialized
constructionContextThe construction context
expressionexpression that will be evaluated
resolverprefix resolver to use
locatorthe Locator to use for error report. May be null
allowVariableReferencesIf true, variable references are allowed.
allowKeyFunctionIf true, calls to the key() function are allowed.

Implemented in xalanc::XPathProcessorImpl.

◆ installFunction()

void xalanc::XPathProcessor::installFunction ( const XalanDOMString & theFunctionName,
const Function & theFunction )
static

Given a string, and a reference to a function object, install the function with the given name.

Parameters
theFunctionNamename of function
theFunctionfunction object corresponding to name

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