16 #if !defined(XPATHEXECUTIONCONTEXTDEFAULT_HEADER_GUARD_1357924680)
17 #define XPATHEXECUTIONCONTEXTDEFAULT_HEADER_GUARD_1357924680
52 XALAN_CPP_NAMESPACE_BEGIN
125 return m_xpathEnvSupport;
136 m_xpathEnvSupport = theSupport;
147 m_domSupport = theDOMSupport;
158 m_xobjectFactory = theXObjectFactory;
169 #if defined(XALAN_NO_MUTABLE)
172 return m_scratchQName;
176 virtual void doFormatNumber(
239 const XObjectArgVectorType& argVec,
351 enum { eNodeListCacheListSize = 50 };
400 XALAN_CPP_NAMESPACE_END
404 #endif // XPATHEXECUTIONCONTEXTDEFAULT_HEADER_GUARD_1357924680
XalanQNameByValue & getScratchQName() const
Get a reference to the scratch QNameByValue instance.
Definition: XPathExecutionContextDefault.hpp:167
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.
Definition: XalanObjectCache.hpp:265
virtual MutableNodeRefList * borrowMutableNodeRefList()=0
Borrow a cached MutableNodeRefList instance.
virtual bool shouldStripSourceNode(const XalanText &node)=0
Tells, through the combination of the default-space attribute on xsl:stylesheet, xsl:strip-space, xsl:preserve-space, and the xml:space attribute, whether or not extra whitespace should be stripped from the node.
void setXObjectFactory(XObjectFactory *theXObjectFactory)
Set the XObjectFactory instance.
Definition: XPathExecutionContextDefault.hpp:156
Definition: XalanNode.hpp:44
Definition: XalanText.hpp:38
const PrefixResolver * m_prefixResolver
Definition: XPathExecutionContextDefault.hpp:383
virtual void message(const XalanDOMString &msg, const XalanNode *sourceNode=0, const LocatorType *locator=0) const =0
Output a message.
virtual bool returnMutableNodeRefList(MutableNodeRefList *theList)=0
Return a previously borrowed MutableNodeRefList instance.
Local implementation of MutableNodeRefList.
Definition: MutableNodeRefList.hpp:44
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
NodeListCacheType m_nodeListCache
Definition: XPathExecutionContextDefault.hpp:387
void setXPathEnvSupport(XPathEnvSupport *theSupport)
Set the XPathEnvSupport instance.
Definition: XPathExecutionContextDefault.hpp:134
XalanVector< const NodeRefListBase * > ContextNodeListStackType
Definition: XPathExecutionContextDefault.hpp:70
XPathEnvSupport * getXPathEnvSupport() const
Get the XPathEnvSupport instance.
Definition: XPathExecutionContextDefault.hpp:123
Definition: DOMSupport.hpp:39
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.
Local implementation of NodeRefList.
Definition: NodeRefList.hpp:41
virtual bool releaseCachedString(XalanDOMString &theString)=0
Return a cached string.
XPathEnvSupport * m_xpathEnvSupport
Definition: XPathExecutionContextDefault.hpp:375
Class to hold XObjectPtr return types.
Definition: XObject.hpp:584
XalanQNameByValue m_scratchQName
Definition: XPathExecutionContextDefault.hpp:393
virtual MutableNodeRefList * createMutableNodeRefList(MemoryManagerType &theManager) const =0
Create a MutableNodeRefList with the appropriate context.
Definition: XPathExecutionContext.hpp:72
DOMSupport * m_domSupport
Definition: XPathExecutionContextDefault.hpp:377
A basic implementation of the class XPathExecutionContext.
Definition: XPathExecutionContextDefault.hpp:65
static const NodeRefList s_dummyList
Definition: XPathExecutionContextDefault.hpp:395
Local implementation of NodeRefList.
Definition: NodeRefListBase.hpp:42
virtual void setSourceDocument(const XalanDOMString &theURI, XalanDocument *theDocument)=0
Associate a document with a given URI.
ContextNodeListPositionCache m_cachedPosition
Definition: XPathExecutionContextDefault.hpp:391
size_type m_index
Definition: XPathExecutionContextDefault.hpp:372
virtual void popCurrentNode()=0
Reset the node currently being executed.
virtual const XObjectPtr extFunction(const XalanDOMString &theNamespace, const XalanDOMString &functionName, XalanNode *context, const XObjectArgVectorType &argVec, const LocatorType *locator)=0
Handle an extension function.
Definition: XalanDOMStringCache.hpp:42
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.
XalanObjectCache< MutableNodeRefList, DefaultCacheCreateFunctorMemMgr< MutableNodeRefList >, DeleteFunctor< MutableNodeRefList >, ClearCacheResetFunctor< MutableNodeRefList > > NodeListCacheType
Definition: XPathExecutionContextDefault.hpp:349
void clear()
Definition: XPathExecutionContextDefault.hpp:362
Definition: XPathEnvSupport.hpp:62
XALAN_CPP_NAMESPACE_BEGIN typedef size_t size_type
Definition: XalanMap.hpp:44
XalanDOMString m_currentPattern
Definition: XPathExecutionContextDefault.hpp:385
Definition: XPathExecutionContextDefault.hpp:353
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...
Definition: PrefixResolver.hpp:37
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 void warn(const XalanDOMString &msg, const XalanNode *sourceNode=0, const LocatorType *locator=0) const =0
Report a warning.
Definition: XalanDocument.hpp:51
void setDOMSupport(DOMSupport *theDOMSupport)
Set the DOMSupport instance.
Definition: XPathExecutionContextDefault.hpp:145
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.
virtual void getNodeSetByKey(XalanDocument *doc, const XalanQName &qname, const XalanDOMString &ref, MutableNodeRefList &nodelist)=0
Given a valid element key, return the corresponding node list.
Definition: XalanQNameByValue.hpp:43
Definition: XalanDOMString.hpp:42
ContextNodeListStackType m_contextNodeListStack
Definition: XPathExecutionContextDefault.hpp:381
virtual size_type getContextNodeListPosition(const XalanNode &contextNode) const =0
XalanVector< XalanNode * > CurrentNodeStackType
Definition: XPathExecutionContextDefault.hpp:69
virtual const XObjectPtr getVariable(const XalanQName &name, const LocatorType *locator=0)=0
Given a name, locate a variable in the current context, and return a pointer to the object...
virtual void formatNumber(double number, const XalanDOMString &pattern, XalanDOMString &theResult, const XalanNode *context=0, const LocatorType *locator=0)=0
Formats a number according to the specified pattern.
virtual XalanDocument * parseXML(MemoryManagerType &theManager, const XalanDOMString &urlString, const XalanDOMString &base) const =0
Provides support for XML parsing service.
virtual void error(const XalanDOMString &msg, const XalanNode *sourceNode=0, const LocatorType *locator=0) const =0
Report an error and throw an exception.
#define XALAN_XPATH_EXPORT
Definition: XPathDefinitions.hpp:33
This class handles the creation of XObjects and manages their lifetime.
Definition: XObjectFactory.hpp:51
Class to represent a qualified name: "The name of an internal XSLT object, specifically a named templ...
Definition: XalanQName.hpp:68
const XalanNode * m_node
Definition: XPathExecutionContextDefault.hpp:370
virtual const XalanDOMString * getNamespaceForPrefix(const XalanDOMString &prefix) const =0
Retrieve the URI corresponding to a namespace prefix.
CurrentNodeStackType m_currentNodeStack
Definition: XPathExecutionContextDefault.hpp:379
ContextNodeListPositionCache()
Definition: XPathExecutionContextDefault.hpp:355
XalanDOMStringCache m_stringCache
Definition: XPathExecutionContextDefault.hpp:389