16 #if !defined(XPATHEXECUTIONCONTEXT_HEADER_GUARD_1357924680)
17 #define XPATHEXECUTIONCONTEXT_HEADER_GUARD_1357924680
50 XALAN_CPP_NAMESPACE_BEGIN
99 getCurrentNode()
const = 0;
107 pushCurrentNode(
XalanNode* theCurrentNode) = 0;
113 popCurrentNode() = 0;
122 m_executionContext(theExecutionContext)
129 m_executionContext.popCurrentNode();
145 assert(m_xobjectFactory != 0);
147 return *m_xobjectFactory;
174 popContextNodeList() = 0;
183 m_executionContext(theExecutionContext)
185 m_executionContext.pushContextNodeList(theNodeList);
190 m_executionContext.popContextNodeList();
204 getContextNodeList()
const = 0;
212 getContextNodeListLength()
const = 0;
222 getContextNodeListPosition(
const XalanNode& contextNode)
const = 0;
232 elementAvailable(
const XalanQName& theQName)
const = 0;
256 functionAvailable(
const XalanQName& theQName)
const = 0;
286 const XObjectArgVectorType& argVec,
308 borrowMutableNodeRefList() = 0;
324 m_xpathExecutionContext(&executionContext),
325 m_mutableNodeRefList(executionContext.borrowMutableNodeRefList())
327 assert(m_mutableNodeRefList != 0);
332 m_xpathExecutionContext(theSource.m_xpathExecutionContext),
333 m_mutableNodeRefList(theSource.m_mutableNodeRefList)
335 assert(m_mutableNodeRefList != 0);
348 assert(m_mutableNodeRefList != 0);
350 return *m_mutableNodeRefList;
356 return m_mutableNodeRefList;
368 assert(m_xpathExecutionContext != 0);
370 if (m_mutableNodeRefList != 0)
372 m_xpathExecutionContext->returnMutableNodeRefList(m_mutableNodeRefList);
374 m_mutableNodeRefList = 0;
381 assert(m_xpathExecutionContext != 0);
385 *theResult = *m_mutableNodeRefList;
396 m_xpathExecutionContext = theRHS.m_xpathExecutionContext;
398 m_mutableNodeRefList = theRHS.m_mutableNodeRefList;
400 theRHS.m_mutableNodeRefList = 0;
418 getCachedString() = 0;
435 m_executionContext(&theExecutionContext),
436 m_string(&theExecutionContext.getCachedString())
442 m_executionContext(theSource.m_executionContext),
443 m_string(theSource.m_string)
445 theSource.m_string = 0;
452 m_executionContext->releaseCachedString(*m_string);
459 assert(m_string != 0);
467 return *m_executionContext;
549 getPrefixResolver()
const = 0;
566 m_executionContext(theExecutionContext),
567 m_savedResolver(theExecutionContext.getPrefixResolver())
569 m_executionContext.setPrefixResolver(theResolver);
576 m_executionContext(theExecutionContext),
577 m_savedResolver(theOldResolver)
579 m_executionContext.setPrefixResolver(theNewResolver);
584 m_executionContext.setPrefixResolver(m_savedResolver);
623 getUnparsedEntityURI(
638 shouldStripSourceNode(
const XalanText& node) = 0;
669 virtual void formatNumber(
687 virtual void formatNumber(
722 XALAN_CPP_NAMESPACE_END
726 #endif // XPATHEXECUTIONCONTEXT_HEADER_GUARD_1357924680
Definition: XPathExecutionContext.hpp:176
~PrefixResolverSetAndRestore()
Definition: XPathExecutionContext.hpp:582
Definition: XalanNode.hpp:44
PrefixResolverSetAndRestore(XPathExecutionContext &theExecutionContext, const PrefixResolver *theResolver)
Definition: XPathExecutionContext.hpp:563
Definition: XalanText.hpp:38
PrefixResolverSetAndRestore(XPathExecutionContext &theExecutionContext, const PrefixResolver *theOldResolver, const PrefixResolver *theNewResolver)
Definition: XPathExecutionContext.hpp:572
virtual void error(const XalanDOMString &msg, const XalanNode *sourceNode=0, const LocatorType *locator=0) const =0
Report an error and throw an exception.
Local implementation of MutableNodeRefList.
Definition: MutableNodeRefList.hpp:44
GetAndReleaseCachedString(GetAndReleaseCachedString &theSource)
Definition: XPathExecutionContext.hpp:441
XALAN_CPP_NAMESPACE_BEGIN typedef XERCES_CPP_NAMESPACE_QUALIFIER MemoryManager MemoryManagerType
Definition: XalanMemoryManagement.hpp:39
Definition: XPathExecutionContext.hpp:559
ContextNodeListPushAndPop(XPathExecutionContext &theExecutionContext, const NodeRefListBase &theNodeList)
Definition: XPathExecutionContext.hpp:180
XObjectFactory * m_xobjectFactory
Definition: XPathExecutionContext.hpp:717
BorrowReturnMutableNodeRefList(const BorrowReturnMutableNodeRefList &theSource)
Definition: XPathExecutionContext.hpp:331
~GetAndReleaseCachedString()
Definition: XPathExecutionContext.hpp:448
virtual void pushCurrentNode(XalanNode *theCurrentNode)=0
Change the node currently being executed.
~BorrowReturnMutableNodeRefList()
Definition: XPathExecutionContext.hpp:340
void release()
Definition: XPathExecutionContext.hpp:366
Definition: XalanElement.hpp:42
Class to hold XObjectPtr return types.
Definition: XObject.hpp:584
GetAndReleaseCachedString GetCachedString
Definition: XPathExecutionContext.hpp:483
Definition: XPathExecutionContext.hpp:72
Definition: XPathExecutionContext.hpp:115
MutableNodeRefList * operator->() const
Definition: XPathExecutionContext.hpp:360
BorrowReturnMutableNodeRefList clone() const
Definition: XPathExecutionContext.hpp:379
Local implementation of NodeRefList.
Definition: NodeRefListBase.hpp:42
CurrentNodePushAndPop(XPathExecutionContext &theExecutionContext, XalanNode *theNewNode)
Definition: XPathExecutionContext.hpp:119
XObjectFactory & getXObjectFactory() const
Retrieve the factory object for creating XObjects.
Definition: XPathExecutionContext.hpp:143
virtual void warn(const XalanDOMString &msg, const XalanNode *sourceNode=0, const LocatorType *locator=0) const =0
Report a warning.
XalanVector< XObjectPtr > XObjectArgVectorType
Definition: XPathExecutionContext.hpp:76
Definition: ExecutionContext.hpp:45
virtual void message(const XalanDOMString &msg, const XalanNode *sourceNode=0, const LocatorType *locator=0) const =0
Output a message.
XALAN_CPP_NAMESPACE_BEGIN typedef size_t size_type
Definition: XalanMap.hpp:44
This class defines an interface for classes that resolve namespace prefixes to their URIs...
Definition: PrefixResolver.hpp:37
~CurrentNodePushAndPop()
Definition: XPathExecutionContext.hpp:127
Class to hold XPath return types.
Definition: XObject.hpp:61
Definition: XalanDocument.hpp:51
GetAndReleaseCachedString(XPathExecutionContext &theExecutionContext)
Definition: XPathExecutionContext.hpp:434
unsigned int size_type
Definition: NodeRefListBase.hpp:56
XPathExecutionContext & getExecutionContext() const
Definition: XPathExecutionContext.hpp:465
NodeRefListBase::size_type size_type
Definition: XPathExecutionContext.hpp:78
Definition: XPathExecutionContext.hpp:430
Definition: XPathExecutionContext.hpp:319
Definition: XalanDOMString.hpp:42
BorrowReturnMutableNodeRefList & operator=(BorrowReturnMutableNodeRefList &theRHS)
Definition: XPathExecutionContext.hpp:392
MutableNodeRefList & operator*() const
Definition: XPathExecutionContext.hpp:346
#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
BorrowReturnMutableNodeRefList(XPathExecutionContext &executionContext)
Definition: XPathExecutionContext.hpp:323
~ContextNodeListPushAndPop()
Definition: XPathExecutionContext.hpp:188