18 #if !defined(XPATHEXECUTIONCONTEXTDEFAULT_HEADER_GUARD_1357924680) 19 #define XPATHEXECUTIONCONTEXTDEFAULT_HEADER_GUARD_1357924680 51 XALAN_CPP_NAMESPACE_BEGIN
100 MemoryManager& theManager,
107 MemoryManager& theManager,
124 return m_xpathEnvSupport;
135 m_xpathEnvSupport = theSupport;
146 m_domSupport = theDOMSupport;
157 m_xobjectFactory = theXObjectFactory;
168 return m_scratchQName;
171 virtual void doFormatNumber(
177 const Locator* locator = 0);
219 const Locator* locator)
const;
227 const Locator* locator)
const;
235 const Locator* locator);
239 MemoryManager& theManager,
242 ErrorHandler* theErrorHandler = 0)
const;
264 const Locator* locator,
272 const Locator* locator,
278 const Locator* locator = 0);
310 const Locator* locator = 0);
318 const Locator* locator = 0);
328 const Locator* locator,
342 const Locator* locator = 0)
const;
348 const Locator* locator = 0)
const;
354 const Locator* locator = 0)
const;
367 enum { eNodeListCacheListSize = 50 };
416 XALAN_CPP_NAMESPACE_END
420 #endif // XPATHEXECUTIONCONTEXTDEFAULT_HEADER_GUARD_1357924680 virtual void setPrefixResolver(const PrefixResolver *thePrefixResolver)=0
Change the resolver for namespaces.
virtual void pushContextNodeList(const NodeRefListBase &theList)=0
Push the node list for current context.
virtual MutableNodeRefList * borrowMutableNodeRefList()=0
Borrow a cached MutableNodeRefList instance.
virtual bool shouldStripSourceNode(const XalanText &node)=0
Determine if a text node should be stripped from the source tree, as if it weren't there...
void setXObjectFactory(XObjectFactory *theXObjectFactory)
Set the XObjectFactory instance.
const PrefixResolver * m_prefixResolver
virtual bool returnMutableNodeRefList(MutableNodeRefList *theList)=0
Return a previously borrowed MutableNodeRefList instance.
Local implementation of MutableNodeRefList.
NodeListCacheType m_nodeListCache
void setXPathEnvSupport(XPathEnvSupport *theSupport)
Set the XPathEnvSupport instance.
XalanVector< const NodeRefListBase * > ContextNodeListStackType
virtual const XObjectPtr getVariable(const XalanQName &name, const Locator *locator=0)=0
Given a name, locate a variable in the current context, and return a pointer to the object...
virtual const PrefixResolver * getPrefixResolver() const =0
Retrieve the resolver for namespaces.
virtual const NodeRefListBase & getContextNodeList() const =0
Get the node list for current context.
virtual void pushCurrentNode(XalanNode *theCurrentNode)=0
Change the node currently being executed.
virtual void reset()=0
Reset the instance.
virtual void problem(eSource source, eClassification classification, const XalanDOMString &msg, const Locator *locator, const XalanNode *sourceNode)=0
Function that is called when a problem event occurs.
Local implementation of NodeRefList.
virtual const XObjectPtr extFunction(const XalanDOMString &theNamespace, const XalanDOMString &functionName, XalanNode *context, const XObjectArgVectorType &argVec, const Locator *locator)=0
Handle an extension function.
virtual bool releaseCachedString(XalanDOMString &theString)=0
Return a cached string.
XPathEnvSupport * m_xpathEnvSupport
Class to hold XObjectPtr return types.
XalanQNameByValue m_scratchQName
XalanObjectCache< MutableNodeRefList, DefaultCacheCreateFunctorMemMgr< MutableNodeRefList >, DeleteFunctor< MutableNodeRefList >, ClearCacheResetFunctor< MutableNodeRefList > > NodeListCacheType
DOMSupport * m_domSupport
A basic implementation of the class XPathExecutionContext.
static const NodeRefList s_dummyList
Local implementation of NodeRefList.
virtual void setSourceDocument(const XalanDOMString &theURI, XalanDocument *theDocument)=0
Associate a document with a given URI.
ContextNodeListPositionCache m_cachedPosition
XPathEnvSupport * getXPathEnvSupport() const
Get the XPathEnvSupport instance.
virtual void popCurrentNode()=0
Reset the node currently being executed.
virtual size_type getContextNodeListLength() const =0
virtual XalanDocument * getSourceDocument(const XalanDOMString &theURI) const =0
Get the document associated with the given URI.
virtual bool isNodeAfter(const XalanNode &node1, const XalanNode &node2) const =0
Determine if a node is after another node, in document order.
virtual void popContextNodeList()=0
Pop the node list for current context.
XALAN_CPP_NAMESPACE_BEGIN typedef size_t size_type
XalanDOMString m_currentPattern
virtual bool elementAvailable(const XalanQName &theQName) const =0
Determine if an external element is available.
virtual XalanNode * getCurrentNode() const =0
Retrieve the node currently being executed.
This class defines an interface for classes that resolve namespace prefixes to their URIs...
virtual XalanDOMString & getCachedString()=0
Get a cached string for temporary use.
virtual const XalanDOMString & getUnparsedEntityURI(const XalanDOMString &theName, const XalanDocument &theDocument) const =0
The getUnparsedEntityURI function returns the URI of the unparsed entity with the specified name in t...
virtual MutableNodeRefList * createMutableNodeRefList(MemoryManager &theManager) const =0
Create a MutableNodeRefList with the appropriate context.
void setDOMSupport(DOMSupport *theDOMSupport)
Set the DOMSupport instance.
virtual const XalanDOMString & findURIFromDoc(const XalanDocument *owner) const =0
Given a DOM Document, tell what URI was used to parse it.
virtual bool functionAvailable(const XalanQName &theQName) const =0
Determine if a function is available.
NodeRefListBase::size_type size_type
XalanQNameByValue & getScratchQName() const
Get a reference to the scratch QNameByValue instance.
ContextNodeListStackType m_contextNodeListStack
virtual size_type getContextNodeListPosition(const XalanNode &contextNode) const =0
XalanVector< XalanNode * > CurrentNodeStackType
#define XALAN_XPATH_EXPORT
This class handles the creation of XObjects and manages their lifetime.
Class to represent a qualified name.
virtual void formatNumber(double number, const XalanDOMString &pattern, XalanDOMString &theResult, const XalanNode *context=0, const Locator *locator=0)=0
Formats a number according to the specified pattern.
virtual XalanDocument * parseXML(MemoryManager &theManager, const XalanDOMString &urlString, const XalanDOMString &base, ErrorHandler *theErrorHandler=0) const =0
Provides support for XML parsing service.
virtual void getNodeSetByKey(XalanNode *context, const XalanQName &qname, const XalanDOMString &ref, const Locator *locator, MutableNodeRefList &nodelist)=0
Given a valid element key, return the corresponding node list.
virtual const XalanDOMString * getNamespaceForPrefix(const XalanDOMString &prefix) const =0
Retrieve the URI corresponding to a namespace prefix.
CurrentNodeStackType m_currentNodeStack
ContextNodeListPositionCache()
XalanDOMStringCache m_stringCache