20 #ifndef _VARIABLETYPESTORE_HPP
21 #define _VARIABLETYPESTORE_HPP
23 #include <xqilla/framework/XQillaExport.hpp>
24 #include <xercesc/util/XercesDefs.hpp>
30 class XQGlobalVariable;
57 XQGlobalVariable **global = 0)
const = 0;
61 virtual void declareVar(
const XMLCh* namespaceURI,
const XMLCh* name,
68 XQGlobalVariable **global = 0)
const = 0;
Records access to various parts of the context during static resolution.
Definition: StaticAnalysis.hpp:36
This is the wrapper class for the variable store, which implements the lookup and scoping of simple v...
Definition: VariableTypeStore.hpp:35
virtual void clear()=0
Clears all variable values and added scopes from the store.
virtual void removeScope()=0
Removes the top level scope from the store.
virtual void addLocalScope()=0
Adds a new local scope to the store.
virtual void addLogicalBlockScope()=0
Adds a new logical block scope to the store.
virtual const StaticAnalysis * getGlobalVar(const XMLCh *namespaceURI, const XMLCh *name, XQGlobalVariable **global=0) const =0
Gets a variable from the global scope.
virtual void declareGlobalVar(const XMLCh *namespaceURI, const XMLCh *name, const StaticAnalysis &src, XQGlobalVariable *global)=0
Declares and/or sets a variable in the global scope.
virtual void declareVar(const XMLCh *namespaceURI, const XMLCh *name, const StaticAnalysis &src)=0
Declare a var in the top level scope (A full set of these namespaceURI/name pair methods should be ma...
virtual const StaticAnalysis * getVar(const XMLCh *namespaceURI, const XMLCh *name, XQGlobalVariable **global=0) const =0
Looks up the value of a variable in the current scope, using ident as an qname.
virtual ~VariableTypeStore()
default destructor
Definition: VariableTypeStore.hpp:38
Definition: XPath2MemoryManager.hpp:46