Qt 4.8
|
Delegates all members to a second instance. Used for sub-classing. More...
#include <qdelegatingstaticcontext_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 |
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) |
virtual void | setDefaultCollation (const QUrl &uri) |
virtual void | setDefaultElementNamespace (const QString &ns) |
virtual void | setDefaultFunctionNamespace (const QString &ns) |
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) |
virtual LocationHash | sourceLocations () const |
Returns a hash of the contained locations. More... | |
virtual const QAbstractUriResolver * | uriResolver () const |
The URI resolver in use. More... | |
Public Functions inherited from QPatternist::StaticContext | |
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... | |
Protected Functions | |
DelegatingStaticContext (const StaticContext::Ptr &context) | |
Properties | |
const StaticContext::Ptr | m_context |
Delegates all members to a second instance. Used for sub-classing.
Definition at line 73 of file qdelegatingstaticcontext_p.h.
|
protected |
Definition at line 55 of file qdelegatingstaticcontext.cpp.
Referenced by copy().
|
virtual |
Adds location
for reflection
.
Implements QPatternist::StaticContext.
Definition at line 225 of file qdelegatingstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 251 of file qdelegatingstaticcontext.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.
Reimplemented in QPatternist::StaticBaseURIContext.
Definition at line 80 of file qdelegatingstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 115 of file qdelegatingstaticcontext.cpp.
|
virtual |
Determine whether Backwards Compatible Mode is used.
Implements QPatternist::StaticContext.
Reimplemented in QPatternist::StaticCompatibilityContext.
Definition at line 90 of file qdelegatingstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 125 of file qdelegatingstaticcontext.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.
Reimplemented in QPatternist::StaticFocusContext.
Definition at line 195 of file qdelegatingstaticcontext.cpp.
|
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 210 of file qdelegatingstaticcontext.cpp.
|
virtual |
The static type of the current item, as returned by fn:current()
.
Implements QPatternist::StaticContext.
Reimplemented in QPatternist::StaticCurrentContext.
Definition at line 200 of file qdelegatingstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 246 of file qdelegatingstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 95 of file qdelegatingstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 165 of file qdelegatingstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 155 of file qdelegatingstaticcontext.cpp.
|
virtual |
This is the DynamicContext that is used for pre-evaluation at compilation time, const-folding at the static stage.
Implements QPatternist::StaticContext.
Definition at line 70 of file qdelegatingstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 205 of file qdelegatingstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 65 of file qdelegatingstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 175 of file qdelegatingstaticcontext.cpp.
|
virtual |
Returns the source location applying for reflection
.
Implements QPatternist::ReportContext.
Definition at line 236 of file qdelegatingstaticcontext.cpp.
|
virtual |
null
; a valid QAbstractMessageHandler pointer must always be returned. Implements QPatternist::ReportContext.
Definition at line 100 of file qdelegatingstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 220 of file qdelegatingstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Reimplemented in QPatternist::StaticNamespaceContext.
Definition at line 60 of file qdelegatingstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 145 of file qdelegatingstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 135 of file qdelegatingstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 185 of file qdelegatingstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 215 of file qdelegatingstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 75 of file qdelegatingstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 85 of file qdelegatingstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 120 of file qdelegatingstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 256 of file qdelegatingstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 130 of file qdelegatingstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 105 of file qdelegatingstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 170 of file qdelegatingstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 160 of file qdelegatingstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 180 of file qdelegatingstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 110 of file qdelegatingstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 150 of file qdelegatingstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 140 of file qdelegatingstaticcontext.cpp.
|
virtual |
Implements QPatternist::StaticContext.
Definition at line 190 of file qdelegatingstaticcontext.cpp.
|
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 231 of file qdelegatingstaticcontext.cpp.
|
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 241 of file qdelegatingstaticcontext.cpp.
|
private |
Definition at line 139 of file qdelegatingstaticcontext_p.h.
Referenced by addLocation(), allocateRangeSlot(), baseURI(), boundarySpacePolicy(), compatModeEnabled(), constructionMode(), contextItemType(), copy(), currentItemType(), currentRangeSlot(), defaultCollation(), defaultElementNamespace(), defaultFunctionNamespace(), dynamicContext(), externalVariableLoader(), functionSignatures(), inheritMode(), locationFor(), messageHandler(), namePool(), namespaceBindings(), orderingEmptySequence(), orderingMode(), preserveMode(), resourceLoader(), schemaDefinitions(), setBaseURI(), setBoundarySpacePolicy(), setCompatModeEnabled(), setConstructionMode(), setDefaultCollation(), setDefaultElementNamespace(), setDefaultFunctionNamespace(), setInheritMode(), setNamespaceBindings(), setOrderingEmptySequence(), setOrderingMode(), setPreserveMode(), sourceLocations(), and uriResolver().