Qt 4.8
Public Functions | Protected Functions | Properties | List of all members
QPatternist::DelegatingStaticContext Class Reference

Delegates all members to a second instance. Used for sub-classing. More...

#include <qdelegatingstaticcontext_p.h>

Inheritance diagram for QPatternist::DelegatingStaticContext:
QPatternist::StaticContext QPatternist::ReportContext QSharedData QPatternist::StaticBaseURIContext QPatternist::StaticCompatibilityContext QPatternist::StaticCurrentContext QPatternist::StaticFocusContext QPatternist::StaticNamespaceContext

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 QAbstractMessageHandlermessageHandler () 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 QAbstractUriResolveruriResolver () 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
 

Additional Inherited Members

- Public Types inherited from QPatternist::StaticContext
enum  BoundarySpacePolicy { BSPPreserve, BSPStrip }
 
enum  ConstructionMode { CMPreserve, CMStrip }
 
enum  InheritMode { Inherit, NoInherit }
 
enum  OrderingEmptySequence { Greatest, Least }
 
enum  OrderingMode { Ordered, Unordered }
 
enum  PreserveMode { Preserve, NoPreserve }
 
typedef QExplicitlySharedDataPointer< StaticContextPtr
 
- Public Types inherited from QPatternist::ReportContext
enum  ErrorCode {
  XSDError, XPST0001, XPDY0002, XPST0003,
  XPTY0004, XPST0005, XPTY0006, XPTY0007,
  XPST0008, XQST0009, XPST0010, XQST0012,
  XQST0013, XQST0014, XQST0015, XQST0016,
  XPST0017, XPTY0018, XPTY0019, XPTY0020,
  XPDY0021, XQST0022, XQTY0023, XQTY0024,
  XQDY0025, XQDY0026, XQDY0027, XQTY0028,
  XQDY0029, XQTY0030, XQST0031, XQST0032,
  XQST0033, XQST0034, XQST0035, XQST0036,
  XQST0037, XQST0038, XQST0039, XQST0040,
  XQDY0041, XQST0042, XQST0043, XQDY0044,
  XQST0045, XQST0046, XQST0047, XQST0048,
  XQST0049, XPDY0050, XPST0051, XQDY0052,
  XQST0053, XQST0054, XQST0055, XQST0056,
  XQST0057, XQST0058, XQST0059, XQST0060,
  XQDY0061, XQDY0062, XQST0063, XQDY0064,
  XQST0065, XQST0066, XQST0067, XQST0068,
  XQST0069, XQST0070, XQST0071, XQDY0072,
  XQST0073, XQDY0074, XQST0075, XQST0076,
  XQST0077, XQST0078, XQST0079, XPST0080,
  XPST0081, XQST0082, XPST0083, XQDY0084,
  XQST0085, XQTY0086, XQST0087, XQST0088,
  XQST0089, XQST0090, XQDY0091, XQDY0092,
  XQST0093, FOER0000, FOAR0001, FOAR0002,
  FOCA0001, FOCA0002, FOCA0003, FOCA0005,
  FOCA0006, FOCH0001, FOCH0002, FOCH0003,
  FOCH0004, FODC0001, FODC0002, FODC0003,
  FODC0004, FODC0005, FODT0001, FODT0002,
  FODT0003, FONS0004, FONS0005, FORG0001,
  FORG0002, FORG0003, FORG0004, FORG0005,
  FORG0006, FORG0008, FORG0009, FORX0001,
  FORX0002, FORX0003, FORX0004, FOTY0012,
  SENR0001, SERE0003, SEPM0004, SERE0005,
  SERE0006, SESU0007, SERE0008, SEPM0009,
  SEPM0010, SESU0011, SERE0012, SESU0013,
  SERE0014, SERE0015, SEPM0016, XTSE0010,
  XTSE0020, XTSE0080, XTSE0090, XTSE0110,
  XTSE0120, XTSE0125, XTSE0130, XTSE0150,
  XTSE0165, XTSE0170, XTSE0180, XTSE0190,
  XTSE0200, XTSE0210, XTSE0215, XTSE0220,
  XTSE0260, XTSE0265, XTSE0280, XTSE0340,
  XTSE0350, XTSE0370, XTSE0500, XTSE0530,
  XTSE0550, XTSE0580, XTSE0620, XTSE0630,
  XTSE0650, XTSE0660, XTSE0670, XTSE0680,
  XTSE0690, XTSE0710, XTSE0720, XTSE0740,
  XTSE0760, XTSE0770, XTSE0805, XTSE0808,
  XTSE0809, XTSE0810, XTSE0812, XTSE0840,
  XTSE0870, XTSE0880, XTSE0910, XTSE0940,
  XTTE0950, XTSE0975, XTSE1015, XTSE1017,
  XTSE1040, XTSE1060, XTSE1070, XTSE1080,
  XTSE1090, XTSE1130, XTSE1205, XTSE1210,
  XTSE1220, XTSE1290, XTSE1295, XTSE1300,
  XTSE1430, XTSE1505, XTSE1520, XTSE1530,
  XTSE1560, XTSE1570, XTSE1580, XTSE1590,
  XTSE1600, XTSE1650, XTSE1660, XTTE0505,
  XTTE0510, XTTE0520, XTTE0570, XTTE0590,
  XTTE0600, XTTE0780, XTTE0790, XTTE0990,
  XTTE1000, XTTE1020, XTTE1100, XTTE1120,
  XTTE1510, XTTE1512, XTTE1515, XTTE1540,
  XTTE1545, XTTE1550, XTTE1555, XTDE0030,
  XTDE0040, XTDE0045, XTDE0047, XTDE0050,
  XTDE0060, XTDE0160, XTRE0270, XTDE0290,
  XTDE0410, XTDE0420, XTDE0430, XTDE0440,
  XTDE0485, XTRE0540, XTDE0560, XTDE0610,
  XTDE0640, XTDE0700, XTRE0795, XTDE0820,
  XTDE0830, XTDE0835, XTDE0850, XTDE0855,
  XTDE0860, XTDE0865, XTDE0890, XTDE0905,
  XTDE0920, XTDE0925, XTDE0930, XTDE0980,
  XTDE1030, XTDE1035, XTDE1110, XTDE1140,
  XTDE1145, XTDE1150, XTRE1160, XTDE1170,
  XTDE1190, XTDE1200, XTDE1260, XTDE1270,
  XTDE1280, XTDE1310, XTDE1340, XTDE1350,
  XTDE1360, XTDE1370, XTDE1380, XTDE1390,
  XTMM9000, XTDE1400, XTDE1420, XTDE1425,
  XTDE1428, XTDE1440, XTDE1450, XTDE1460,
  XTDE1480, XTDE1490, XTRE1495, XTRE1500,
  XTRE1620, XTRE1630, XTDE1665
}
 
typedef QHash< const SourceLocationReflection *, QSourceLocationLocationHash
 
typedef QExplicitlySharedDataPointer< ReportContextPtr
 
- 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
 

Detailed Description

Delegates all members to a second instance. Used for sub-classing.

Author
Frans Englich frans.nosp@m..eng.nosp@m.lich@.nosp@m.noki.nosp@m.a.com

Definition at line 73 of file qdelegatingstaticcontext_p.h.

Constructors and Destructors

◆ DelegatingStaticContext()

DelegatingStaticContext::DelegatingStaticContext ( const StaticContext::Ptr context)
protected

Definition at line 55 of file qdelegatingstaticcontext.cpp.

Referenced by copy().

55  : m_context(context)
56 {
57  Q_ASSERT(context);
58 }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823

Functions

◆ addLocation()

void DelegatingStaticContext::addLocation ( const SourceLocationReflection *const  reflection,
const QSourceLocation location 
)
virtual

Adds location for reflection.

Implements QPatternist::StaticContext.

Definition at line 225 of file qdelegatingstaticcontext.cpp.

227 {
228  m_context->addLocation(reflection, location);
229 }
virtual void addLocation(const SourceLocationReflection *const reflection, const QSourceLocation &location)=0
Adds location for reflection.

◆ allocateRangeSlot()

VariableSlotID DelegatingStaticContext::allocateRangeSlot ( )
virtual

Implements QPatternist::StaticContext.

Definition at line 251 of file qdelegatingstaticcontext.cpp.

252 {
253  return m_context->allocateRangeSlot();
254 }
virtual VariableSlotID allocateRangeSlot()=0

◆ baseURI()

QUrl DelegatingStaticContext::baseURI ( ) const
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.

81 {
82  return m_context->baseURI();
83 }
virtual QUrl baseURI() const =0

◆ boundarySpacePolicy()

StaticContext::BoundarySpacePolicy DelegatingStaticContext::boundarySpacePolicy ( ) const
virtual

Implements QPatternist::StaticContext.

Definition at line 115 of file qdelegatingstaticcontext.cpp.

116 {
117  return m_context->boundarySpacePolicy();
118 }
virtual BoundarySpacePolicy boundarySpacePolicy() const =0

◆ compatModeEnabled()

bool DelegatingStaticContext::compatModeEnabled ( ) const
virtual

◆ constructionMode()

StaticContext::ConstructionMode DelegatingStaticContext::constructionMode ( ) const
virtual

Implements QPatternist::StaticContext.

Definition at line 125 of file qdelegatingstaticcontext.cpp.

126 {
127  return m_context->constructionMode();
128 }
virtual ConstructionMode constructionMode() const =0

◆ contextItemType()

ItemType::Ptr DelegatingStaticContext::contextItemType ( ) const
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.

See also
XQuery 1.0: An XML Query Language, Definition: Context item static type

Implements QPatternist::StaticContext.

Reimplemented in QPatternist::StaticFocusContext.

Definition at line 195 of file qdelegatingstaticcontext.cpp.

196 {
197  return m_context->contextItemType();
198 }
virtual ItemType::Ptr contextItemType() const =0
The static type of the context item.

◆ copy()

StaticContext::Ptr DelegatingStaticContext::copy ( ) const
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.

211 {
213 }
DelegatingStaticContext(const StaticContext::Ptr &context)
virtual StaticContext::Ptr copy() const =0
QExplicitlySharedDataPointer< StaticContext > Ptr

◆ currentItemType()

ItemType::Ptr DelegatingStaticContext::currentItemType ( ) const
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.

201 {
202  return m_context->currentItemType();
203 }
virtual ItemType::Ptr currentItemType() const =0
The static type of the current item, as returned by fn:current().

◆ currentRangeSlot()

VariableSlotID DelegatingStaticContext::currentRangeSlot ( ) const
virtual

Implements QPatternist::StaticContext.

Definition at line 246 of file qdelegatingstaticcontext.cpp.

247 {
248  return m_context->currentRangeSlot();
249 }
virtual VariableSlotID currentRangeSlot() const =0

◆ defaultCollation()

QUrl DelegatingStaticContext::defaultCollation ( ) const
virtual
Returns
the URI identifying the default collation. The function is responsible for ensuring a collation is always returned. If a collation is not provided by the user or the host language in the context, the Unicode codepoint URI should be returned.

Implements QPatternist::StaticContext.

Definition at line 95 of file qdelegatingstaticcontext.cpp.

96 {
97  return m_context->defaultCollation();
98 }
virtual QUrl defaultCollation() const =0

◆ defaultElementNamespace()

QString DelegatingStaticContext::defaultElementNamespace ( ) const
virtual

Implements QPatternist::StaticContext.

Definition at line 165 of file qdelegatingstaticcontext.cpp.

166 {
168 }
virtual QString defaultElementNamespace() const =0

◆ defaultFunctionNamespace()

QString DelegatingStaticContext::defaultFunctionNamespace ( ) const
virtual
Returns
always the standard function namespace defined in XQuery 1.0 and XPath 2.0 Functions and Operators

Implements QPatternist::StaticContext.

Definition at line 155 of file qdelegatingstaticcontext.cpp.

156 {
158 }
virtual QString defaultFunctionNamespace() const =0

◆ dynamicContext()

DynamicContext::Ptr DelegatingStaticContext::dynamicContext ( ) const
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.

71 {
72  return m_context->dynamicContext();
73 }
virtual QExplicitlySharedDataPointer< DynamicContext > dynamicContext() const =0

◆ externalVariableLoader()

ExternalVariableLoader::Ptr DelegatingStaticContext::externalVariableLoader ( ) const
virtual

Implements QPatternist::StaticContext.

Definition at line 205 of file qdelegatingstaticcontext.cpp.

206 {
208 }
virtual ExternalVariableLoader::Ptr externalVariableLoader() const =0

◆ functionSignatures()

FunctionFactory::Ptr DelegatingStaticContext::functionSignatures ( ) const
virtual

Implements QPatternist::StaticContext.

Definition at line 65 of file qdelegatingstaticcontext.cpp.

66 {
67  return m_context->functionSignatures();
68 }
virtual QExplicitlySharedDataPointer< FunctionFactory > functionSignatures() const =0

◆ inheritMode()

StaticContext::InheritMode DelegatingStaticContext::inheritMode ( ) const
virtual

Implements QPatternist::StaticContext.

Definition at line 175 of file qdelegatingstaticcontext.cpp.

176 {
177  return m_context->inheritMode();
178 }
virtual InheritMode inheritMode() const =0

◆ locationFor()

QSourceLocation DelegatingStaticContext::locationFor ( const SourceLocationReflection *const  reflection) const
virtual

Returns the source location applying for reflection.

Implements QPatternist::ReportContext.

Definition at line 236 of file qdelegatingstaticcontext.cpp.

237 {
238  return m_context->locationFor(reflection);
239 }
virtual QSourceLocation locationFor(const SourceLocationReflection *const reflection) const =0
Returns the source location applying for reflection.

◆ messageHandler()

QAbstractMessageHandler * DelegatingStaticContext::messageHandler ( ) const
virtual
Returns
the QAbstractMessageHandler which functions such as warning() and error() should submit messages to. This function may never return null; a valid QAbstractMessageHandler pointer must always be returned.

Implements QPatternist::ReportContext.

Definition at line 100 of file qdelegatingstaticcontext.cpp.

101 {
102  return m_context->messageHandler();
103 }
virtual QAbstractMessageHandler * messageHandler() const =0

◆ namePool()

NamePool::Ptr DelegatingStaticContext::namePool ( ) const
virtual

Implements QPatternist::StaticContext.

Definition at line 220 of file qdelegatingstaticcontext.cpp.

221 {
222  return m_context->namePool();
223 }
virtual NamePool::Ptr namePool() const =0

◆ namespaceBindings()

NamespaceResolver::Ptr DelegatingStaticContext::namespaceBindings ( ) const
virtual

Implements QPatternist::StaticContext.

Reimplemented in QPatternist::StaticNamespaceContext.

Definition at line 60 of file qdelegatingstaticcontext.cpp.

61 {
62  return m_context->namespaceBindings();
63 }
virtual NamespaceResolver::Ptr namespaceBindings() const =0

◆ orderingEmptySequence()

StaticContext::OrderingEmptySequence DelegatingStaticContext::orderingEmptySequence ( ) const
virtual

Implements QPatternist::StaticContext.

Definition at line 145 of file qdelegatingstaticcontext.cpp.

146 {
148 }
virtual OrderingEmptySequence orderingEmptySequence() const =0

◆ orderingMode()

StaticContext::OrderingMode DelegatingStaticContext::orderingMode ( ) const
virtual

Implements QPatternist::StaticContext.

Definition at line 135 of file qdelegatingstaticcontext.cpp.

136 {
137  return m_context->orderingMode();
138 }
virtual OrderingMode orderingMode() const =0

◆ preserveMode()

StaticContext::PreserveMode DelegatingStaticContext::preserveMode ( ) const
virtual

Implements QPatternist::StaticContext.

Definition at line 185 of file qdelegatingstaticcontext.cpp.

186 {
187  return m_context->preserveMode();
188 }
virtual PreserveMode preserveMode() const =0

◆ resourceLoader()

ResourceLoader::Ptr DelegatingStaticContext::resourceLoader ( ) const
virtual

Implements QPatternist::StaticContext.

Definition at line 215 of file qdelegatingstaticcontext.cpp.

216 {
217  return m_context->resourceLoader();
218 }
virtual ResourceLoader::Ptr resourceLoader() const =0

◆ schemaDefinitions()

SchemaTypeFactory::Ptr DelegatingStaticContext::schemaDefinitions ( ) const
virtual

Implements QPatternist::StaticContext.

Definition at line 75 of file qdelegatingstaticcontext.cpp.

76 {
77  return m_context->schemaDefinitions();
78 }
virtual QExplicitlySharedDataPointer< SchemaTypeFactory > schemaDefinitions() const =0

◆ setBaseURI()

void DelegatingStaticContext::setBaseURI ( const QUrl uri)
virtual

Implements QPatternist::StaticContext.

Definition at line 85 of file qdelegatingstaticcontext.cpp.

86 {
87  m_context->setBaseURI(uri);
88 }
virtual void setBaseURI(const QUrl &uri)=0

◆ setBoundarySpacePolicy()

void DelegatingStaticContext::setBoundarySpacePolicy ( const BoundarySpacePolicy  policy)
virtual

Implements QPatternist::StaticContext.

Definition at line 120 of file qdelegatingstaticcontext.cpp.

121 {
123 }
virtual void setBoundarySpacePolicy(const BoundarySpacePolicy policy)=0

◆ setCompatModeEnabled()

void DelegatingStaticContext::setCompatModeEnabled ( const bool  newVal)
virtual

Implements QPatternist::StaticContext.

Definition at line 256 of file qdelegatingstaticcontext.cpp.

257 {
259 }
virtual void setCompatModeEnabled(const bool newVal)=0

◆ setConstructionMode()

void DelegatingStaticContext::setConstructionMode ( const ConstructionMode  mode)
virtual

Implements QPatternist::StaticContext.

Definition at line 130 of file qdelegatingstaticcontext.cpp.

131 {
133 }
virtual void setConstructionMode(const ConstructionMode mode)=0

◆ setDefaultCollation()

void DelegatingStaticContext::setDefaultCollation ( const QUrl uri)
virtual

Implements QPatternist::StaticContext.

Definition at line 105 of file qdelegatingstaticcontext.cpp.

106 {
108 }
virtual void setDefaultCollation(const QUrl &uri)=0

◆ setDefaultElementNamespace()

void DelegatingStaticContext::setDefaultElementNamespace ( const QString ns)
virtual

Implements QPatternist::StaticContext.

Definition at line 170 of file qdelegatingstaticcontext.cpp.

171 {
173 }
virtual void setDefaultElementNamespace(const QString &ns)=0

◆ setDefaultFunctionNamespace()

void DelegatingStaticContext::setDefaultFunctionNamespace ( const QString ns)
virtual

Implements QPatternist::StaticContext.

Definition at line 160 of file qdelegatingstaticcontext.cpp.

161 {
163 }
virtual void setDefaultFunctionNamespace(const QString &ns)=0

◆ setInheritMode()

void DelegatingStaticContext::setInheritMode ( const InheritMode  mode)
virtual

Implements QPatternist::StaticContext.

Definition at line 180 of file qdelegatingstaticcontext.cpp.

181 {
182  m_context->setInheritMode(mode);
183 }
virtual void setInheritMode(const InheritMode mode)=0

◆ setNamespaceBindings()

void DelegatingStaticContext::setNamespaceBindings ( const NamespaceResolver::Ptr resolver)
virtual

Implements QPatternist::StaticContext.

Definition at line 110 of file qdelegatingstaticcontext.cpp.

111 {
112  m_context->setNamespaceBindings(resolver);
113 }
virtual void setNamespaceBindings(const NamespaceResolver::Ptr &)=0

◆ setOrderingEmptySequence()

void DelegatingStaticContext::setOrderingEmptySequence ( const OrderingEmptySequence  ordering)
virtual

Implements QPatternist::StaticContext.

Definition at line 150 of file qdelegatingstaticcontext.cpp.

151 {
153 }
virtual void setOrderingEmptySequence(const OrderingEmptySequence ordering)=0

◆ setOrderingMode()

void DelegatingStaticContext::setOrderingMode ( const OrderingMode  mode)
virtual

Implements QPatternist::StaticContext.

Definition at line 140 of file qdelegatingstaticcontext.cpp.

141 {
142  m_context->setOrderingMode(mode);
143 }
virtual void setOrderingMode(const OrderingMode mode)=0

◆ setPreserveMode()

void DelegatingStaticContext::setPreserveMode ( const PreserveMode  mode)
virtual

Implements QPatternist::StaticContext.

Definition at line 190 of file qdelegatingstaticcontext.cpp.

191 {
192  m_context->setPreserveMode(mode);
193 }
virtual void setPreserveMode(const PreserveMode mode)=0

◆ sourceLocations()

StaticContext::LocationHash DelegatingStaticContext::sourceLocations ( ) const
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.

232 {
233  return m_context->sourceLocations();
234 }
virtual LocationHash sourceLocations() const =0
Returns a hash of the contained locations.

◆ uriResolver()

const QAbstractUriResolver * DelegatingStaticContext::uriResolver ( ) const
virtual

The URI resolver in use.

If no URI resolver is in use, a null pointer is returned.

Note
You should probably use resolveURI(), which handles the case of when uriResolver() is null.

Implements QPatternist::ReportContext.

Definition at line 241 of file qdelegatingstaticcontext.cpp.

242 {
243  return m_context->uriResolver();
244 }
virtual const QAbstractUriResolver * uriResolver() const =0
The URI resolver in use.

Properties

◆ m_context

const StaticContext::Ptr QPatternist::DelegatingStaticContext::m_context
private

The documentation for this class was generated from the following files: