Qt 4.8
|
Provides setters and getters for the properties defined in StaticContext. More...
#include <qgenericstaticcontext_p.h>
Public Functions | |
virtual void | addLocation (const SourceLocationReflection *const reflection, const QSourceLocation &location) |
Adds location for reflection . More... | |
virtual VariableSlotID | allocateRangeSlot () |
virtual QUrl | baseURI () const |
virtual BoundarySpacePolicy | boundarySpacePolicy () const |
virtual bool | compatModeEnabled () const |
virtual ConstructionMode | constructionMode () const |
virtual ItemType::Ptr | contextItemType () const |
The static type of the context item. More... | |
virtual StaticContext::Ptr | copy () const |
virtual ItemType::Ptr | currentItemType () const |
The static type of the current item, as returned by fn:current() . More... | |
virtual VariableSlotID | currentRangeSlot () const |
virtual QUrl | defaultCollation () const |
virtual QString | defaultElementNamespace () const |
virtual QString | defaultFunctionNamespace () const |
virtual DynamicContext::Ptr | dynamicContext () const |
virtual ExternalVariableLoader::Ptr | externalVariableLoader () const |
virtual FunctionFactory::Ptr | functionSignatures () const |
GenericStaticContext (const NamePool::Ptr &np, QAbstractMessageHandler *const errorHandler, const QUrl &aBaseURI, const FunctionFactory::Ptr &factory, const QXmlQuery::QueryLanguage lang) | |
virtual InheritMode | inheritMode () const |
virtual QSourceLocation | locationFor (const SourceLocationReflection *const reflection) const |
Returns the source location applying for reflection . More... | |
virtual QAbstractMessageHandler * | messageHandler () const |
virtual NamePool::Ptr | namePool () const |
virtual NamespaceResolver::Ptr | namespaceBindings () const |
virtual OrderingEmptySequence | orderingEmptySequence () const |
virtual OrderingMode | orderingMode () const |
virtual PreserveMode | preserveMode () const |
virtual ResourceLoader::Ptr | resourceLoader () const |
virtual SchemaTypeFactory::Ptr | schemaDefinitions () const |
virtual void | setBaseURI (const QUrl &uri) |
virtual void | setBoundarySpacePolicy (const BoundarySpacePolicy policy) |
virtual void | setCompatModeEnabled (const bool newVal) |
virtual void | setConstructionMode (const ConstructionMode mode) |
void | setContextItemType (const ItemType::Ptr &type) |
virtual void | setDefaultCollation (const QUrl &uri) |
virtual void | setDefaultElementNamespace (const QString &ns) |
virtual void | setDefaultFunctionNamespace (const QString &ns) |
void | setExternalVariableLoader (const ExternalVariableLoader::Ptr &loader) |
virtual void | setInheritMode (const InheritMode mode) |
virtual void | setNamespaceBindings (const NamespaceResolver::Ptr &) |
virtual void | setOrderingEmptySequence (const OrderingEmptySequence ordering) |
virtual void | setOrderingMode (const OrderingMode mode) |
virtual void | setPreserveMode (const PreserveMode mode) |
void | setResourceLoader (const ResourceLoader::Ptr &loader) |
virtual LocationHash | sourceLocations () const |
Returns a hash of the contained locations. More... | |
virtual QAbstractUriResolver * | uriResolver () const |
The URI resolver in use. More... | |
Public Functions inherited from QPatternist::StaticContext | |
virtual void | setBoundarySpacePolicy (const BoundarySpacePolicy policy)=0 |
virtual void | setConstructionMode (const ConstructionMode mode)=0 |
virtual void | setInheritMode (const InheritMode mode)=0 |
virtual void | setOrderingEmptySequence (const OrderingEmptySequence ordering)=0 |
virtual void | setOrderingMode (const OrderingMode mode)=0 |
virtual void | setPreserveMode (const PreserveMode mode)=0 |
StaticContext () | |
void | wrapExpressionWith (const SourceLocationReflection *const existingNode, const QExplicitlySharedDataPointer< Expression > &newNode) |
Ensures source locations are handled in such a manner that existingNode wraps newNode . More... | |
virtual | ~StaticContext () |
Public Functions inherited from QPatternist::ReportContext | |
void | error (const QString &message, const ReportContext::ErrorCode errorCode, const QSourceLocation &sourceLocation) |
void | error (const QString &message, const ReportContext::ErrorCode errorCode, const SourceLocationReflection *const reflection) |
void | error (const QString &message, const QXmlName qName, const SourceLocationReflection *const r) |
ReportContext () | |
Default constructors. More... | |
QUrl | resolveURI (const QUrl &relative, const QUrl &baseURI) const |
void | warning (const QString &message, const QSourceLocation &sourceLocation=QSourceLocation()) |
virtual | ~ReportContext () |
Public Functions inherited from QSharedData | |
QSharedData () | |
Constructs a QSharedData object with a reference count of 0. More... | |
QSharedData (const QSharedData &) | |
Constructs a QSharedData object with reference count 0. More... | |
Additional Inherited Members | |
Static Public Functions inherited from QPatternist::ReportContext | |
static QString | codeFromURI (const QString &typeURI, QString &uri) |
static QString | codeToString (const ReportContext::ErrorCode errorCode) |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
Related Functions inherited from QPatternist::ReportContext | |
typedef bool | Exception |
This is the class type that is being thrown when a query error occur. More... | |
Provides setters and getters for the properties defined in StaticContext.
Definition at line 73 of file qgenericstaticcontext_p.h.
Definition at line 76 of file qgenericstaticcontext_p.h.
GenericStaticContext::GenericStaticContext | ( | const NamePool::Ptr & | np, |
QAbstractMessageHandler *const | errorHandler, | ||
const QUrl & | aBaseURI, | ||
const FunctionFactory::Ptr & | factory, | ||
const QXmlQuery::QueryLanguage | lang | ||
) |
Constructs a GenericStaticContext. The components are initialized as per the recommended default values in XQuery 1.0. Default order for empty sequences
, orderingEmptySequence(), is initialized to Greatest.
errorHandler | the error handler. May be null. |
np | the NamePool. May not be null. |
aBaseURI | the base URI in the static context. Must be absolute and valid. |
Definition at line 55 of file qgenericstaticcontext.cpp.
Referenced by copy().
|
virtual |
Adds location
for reflection
.
Implements QPatternist::StaticContext.
Definition at line 303 of file qgenericstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 332 of file qgenericstaticcontext.cpp.
|
virtual |
The base URI of the context. Typically, this is the base URI if of the element that contained the expression.
The base URI is in this implementation is never undefined, but is always valid.
Implements QPatternist::StaticContext.
Definition at line 110 of file qgenericstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 154 of file qgenericstaticcontext.cpp.
|
virtual |
Determine whether Backwards Compatible Mode is used.
Implements QPatternist::StaticContext.
Definition at line 123 of file qgenericstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 165 of file qgenericstaticcontext.cpp.
|
virtual |
The static type of the context item.
Different StaticContext instances are used for different nodes in the AST to properly reflect the type of the focus. If the focus is undefined, this function must return null
.
Implements QPatternist::StaticContext.
Definition at line 241 of file qgenericstaticcontext.cpp.
Referenced by currentItemType().
|
virtual |
Copies this StaticContext and returns the copy.
The copy and original must not be independent. Since the StaticContext is modified during the compilation process, the copy must be independent from the original to the degree that is required for the subclass in question.
Implements QPatternist::StaticContext.
Definition at line 256 of file qgenericstaticcontext.cpp.
|
virtual |
The static type of the current item, as returned by fn:current()
.
Implements QPatternist::StaticContext.
Definition at line 246 of file qgenericstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 327 of file qgenericstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 133 of file qgenericstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 209 of file qgenericstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 198 of file qgenericstaticcontext.cpp.
|
virtual |
Returns a DynamicContext used for evaluation at compile time.
Implements QPatternist::StaticContext.
Definition at line 97 of file qgenericstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 288 of file qgenericstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 92 of file qgenericstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 219 of file qgenericstaticcontext.cpp.
|
virtual |
Returns the source location applying for reflection
.
Implements QPatternist::ReportContext.
Definition at line 317 of file qgenericstaticcontext.cpp.
|
virtual |
null
; a valid QAbstractMessageHandler pointer must always be returned. Implements QPatternist::ReportContext.
Definition at line 138 of file qgenericstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 298 of file qgenericstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 87 of file qgenericstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 187 of file qgenericstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 176 of file qgenericstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 230 of file qgenericstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 278 of file qgenericstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 105 of file qgenericstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 117 of file qgenericstaticcontext.cpp.
|
virtual |
Definition at line 159 of file qgenericstaticcontext.cpp.
Referenced by copy().
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 128 of file qgenericstaticcontext.cpp.
|
virtual |
Definition at line 170 of file qgenericstaticcontext.cpp.
Referenced by copy().
void GenericStaticContext::setContextItemType | ( | const ItemType::Ptr & | type | ) |
Definition at line 251 of file qgenericstaticcontext.cpp.
Referenced by copy().
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 143 of file qgenericstaticcontext.cpp.
Referenced by copy().
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 214 of file qgenericstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 203 of file qgenericstaticcontext.cpp.
Referenced by copy().
void GenericStaticContext::setExternalVariableLoader | ( | const ExternalVariableLoader::Ptr & | loader | ) |
Definition at line 293 of file qgenericstaticcontext.cpp.
Referenced by copy().
|
virtual |
Definition at line 224 of file qgenericstaticcontext.cpp.
Referenced by copy().
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 148 of file qgenericstaticcontext.cpp.
Referenced by copy().
|
virtual |
Definition at line 192 of file qgenericstaticcontext.cpp.
Referenced by copy().
|
virtual |
Definition at line 181 of file qgenericstaticcontext.cpp.
Referenced by copy().
|
virtual |
Definition at line 235 of file qgenericstaticcontext.cpp.
Referenced by copy().
void GenericStaticContext::setResourceLoader | ( | const ResourceLoader::Ptr & | loader | ) |
Definition at line 283 of file qgenericstaticcontext.cpp.
Referenced by copy().
|
virtual |
Returns a hash of the contained locations.
The key is the address for the expression, and the value is its location. Note that the key cannot be dereferenced, there's no guarantee the Expression is in scope. The key is merely an identifier.
Implements QPatternist::StaticContext.
Definition at line 312 of file qgenericstaticcontext.cpp.
Referenced by dynamicContext().
|
virtual |
The URI resolver in use.
If no URI resolver is in use, a null
pointer is returned.
null
. Implements QPatternist::ReportContext.
Definition at line 322 of file qgenericstaticcontext.cpp.
|
private |
Definition at line 178 of file qgenericstaticcontext_p.h.
Referenced by baseURI(), copy(), GenericStaticContext(), and setBaseURI().
|
private |
Definition at line 170 of file qgenericstaticcontext_p.h.
Referenced by boundarySpacePolicy(), copy(), and setBoundarySpacePolicy().
|
private |
Definition at line 191 of file qgenericstaticcontext_p.h.
Referenced by compatModeEnabled(), and setCompatModeEnabled().
|
private |
Definition at line 171 of file qgenericstaticcontext_p.h.
Referenced by constructionMode(), copy(), and setConstructionMode().
|
private |
Definition at line 186 of file qgenericstaticcontext_p.h.
Referenced by contextItemType(), copy(), and setContextItemType().
|
private |
Definition at line 177 of file qgenericstaticcontext_p.h.
Referenced by copy(), defaultCollation(), and setDefaultCollation().
|
private |
Definition at line 173 of file qgenericstaticcontext_p.h.
Referenced by defaultElementNamespace(), and setDefaultElementNamespace().
|
private |
Definition at line 174 of file qgenericstaticcontext_p.h.
Referenced by copy(), defaultFunctionNamespace(), and setDefaultFunctionNamespace().
|
private |
Definition at line 183 of file qgenericstaticcontext_p.h.
Referenced by copy(), externalVariableLoader(), and setExternalVariableLoader().
|
private |
Definition at line 172 of file qgenericstaticcontext_p.h.
Referenced by copy(), and functionSignatures().
|
private |
Definition at line 181 of file qgenericstaticcontext_p.h.
Referenced by copy(), inheritMode(), and setInheritMode().
|
private |
Definition at line 187 of file qgenericstaticcontext_p.h.
Referenced by addLocation(), copy(), GenericStaticContext(), locationFor(), and sourceLocations().
|
private |
Definition at line 179 of file qgenericstaticcontext_p.h.
Referenced by copy(), dynamicContext(), and messageHandler().
|
private |
Definition at line 185 of file qgenericstaticcontext_p.h.
Referenced by copy(), dynamicContext(), namePool(), and schemaDefinitions().
|
private |
Definition at line 182 of file qgenericstaticcontext_p.h.
Referenced by copy(), namespaceBindings(), and setNamespaceBindings().
|
private |
Definition at line 175 of file qgenericstaticcontext_p.h.
Referenced by copy(), orderingEmptySequence(), and setOrderingEmptySequence().
|
private |
Definition at line 176 of file qgenericstaticcontext_p.h.
Referenced by copy(), orderingMode(), and setOrderingMode().
|
private |
Definition at line 180 of file qgenericstaticcontext_p.h.
Referenced by copy(), preserveMode(), and setPreserveMode().
|
private |
Definition at line 189 of file qgenericstaticcontext_p.h.
Referenced by copy().
|
private |
Definition at line 190 of file qgenericstaticcontext_p.h.
Referenced by allocateRangeSlot(), and currentRangeSlot().
|
private |
Definition at line 184 of file qgenericstaticcontext_p.h.
Referenced by copy(), dynamicContext(), resourceLoader(), and setResourceLoader().
|
private |
Definition at line 188 of file qgenericstaticcontext_p.h.
Referenced by uriResolver().