Qt 4.8
|
A helper subclass that stores a NamespaceResolver for the static namespaces. More...
#include <qstaticnamespacescontainer_p.h>
Protected Functions | |
const NamespaceResolver::Ptr & | staticNamespaces () const |
StaticNamespacesContainer () | |
Protected Functions inherited from QPatternist::UnlimitedContainer | |
template<CardinalityComputation suppliedCard> | |
SequenceType::Ptr | operandsUnionType () const |
Protected Functions inherited from QPatternist::Expression | |
void | typeCheckOperands (const StaticContext::Ptr &context) |
Protected Functions inherited from QPatternist::CppCastingHelper< Expression > | |
CppCastingHelper () | |
Properties | |
NamespaceResolver::Ptr | m_resolver |
A helper subclass that stores a NamespaceResolver for the static namespaces.
This is used by functionality which needs to resolve names against the statically known namespaces, at runtime. A good example of this is function-available
().
The resolver is accessed through staticNamespaces(), which will be available after the typeCheck() stage.
This class must be subclassed.
Definition at line 79 of file qstaticnamespacescontainer_p.h.
|
inlineprotected |
This constructor only exists to ensure this class is subclassed.
Definition at line 102 of file qstaticnamespacescontainer_p.h.
|
inlineprotected |
Before typeCheck(), behavior of this function is undefined. After typeCheck(), this function guarantees to return a valid pointer.
Definition at line 93 of file qstaticnamespacescontainer_p.h.
Referenced by QPatternist::ElementAvailableFN::evaluateEBV(), QPatternist::SystemPropertyFN::evaluateSingleton(), QPatternist::TypeAvailableFN::evaluateSingleton(), and QPatternist::FunctionAvailableFN::evaluateSingleton().
|
virtual |
Reimplemented to store data from the context
.
Reimplemented from QPatternist::FunctionCall.
Reimplemented in QPatternist::FunctionAvailableFN, and QPatternist::TypeAvailableFN.
Definition at line 48 of file qstaticnamespacescontainer.cpp.
Referenced by QPatternist::FunctionAvailableFN::typeCheck(), and QPatternist::TypeAvailableFN::typeCheck().
|
private |
Definition at line 107 of file qstaticnamespacescontainer_p.h.
Referenced by staticNamespaces(), and typeCheck().