70 return EBVExtractor::typeCheck<FunctionCall>(context, reqType,
this);
77 comparator(), context,
95 prepareComparison(fetchComparator(t1, t2, context));
122 prepareComparison(fetchComparator(t1, t1, context));
130 return makeGenericSequenceType(t->itemType(),
158 return makeGenericSequenceType(t1->itemType() | t2->itemType(),
159 t1->cardinality() + t2->cardinality());
188 return makeGenericSequenceType(opType->itemType(),
c);
191 return makeGenericSequenceType(opType->itemType(),
238 if(startingLoc + length < 1 || (startingLoc > (startingLoc + length)))
247 if(length < 1 && length != -1)
264 if(lenArg && lenArg->isEvaluated())
298 return makeGenericSequenceType(opType->itemType(),
299 opCard.toWithoutMany());
303 return makeGenericSequenceType(opType->itemType(),
317 prepareStaticBaseURI(context);
321 if(!uriOp->isEvaluated())
331 const QUrl mayRela(AnyURI::toQUrl<ReportContext::FODC0005>(uriItem.
stringValue(), context,
this));
336 "No resource loader is set in the StaticContext.");
346 context->
error(QtXmlPatterns::tr(
"It will not be possible to retrieve %1.").arg(
formatURI(uri)),
virtual Expression::Ptr typeCheck(const StaticContext::Ptr &context, const SequenceType::Ptr &reqType)
Expression::List m_operands
virtual Item::Iterator::Ptr evaluateSequence(const DynamicContext::Ptr &context) const
#define QT_END_NAMESPACE
This macro expands to.
#define it(className, varName)
virtual Expression::Ptr typeCheck(const StaticContext::Ptr &context, const SequenceType::Ptr &reqType)
QUrl resolveURI(const QUrl &relative, const QUrl &baseURI) const
Filters another sequence by removing duplicates such that the items are unique.
virtual bool evaluateEBV(const DynamicContext::Ptr &context) const
static qreal position(QGraphicsObject *item, QDeclarativeAnchorLine::AnchorLine anchorLine)
QExplicitlySharedDataPointer< const Expression > ConstPtr
A smart pointer wrapping const Expression instances.
virtual Expression::Ptr typeCheck(const StaticContext::Ptr &context, const SequenceType::Ptr &reqType)
int count(const T &t) const
Returns the number of occurrences of value in the list.
virtual Expression::Ptr compress(const StaticContext::Ptr &context)
The QUrl class provides a convenient interface for working with URLs.
static Expression::Ptr create(const Expression *const replacementFor, const StaticContext::Ptr &context)
Creates an EmptySequence that is a replacement for replacementFor.
static const EmptyIterator< Item >::Ptr emptyIterator
Forms an QAbstractXmlForwardIterator over a sequence of integers, which each is the position of where...
Picks out a slice from another QAbstractXmlForwardIterator, specified by a start and end position...
virtual Item::Iterator::Ptr evaluateSequence(const DynamicContext::Ptr &context) const
virtual Expression::Ptr compress(const StaticContext::Ptr &context)
virtual SequenceType::Ptr announceDocument(const QUrl &uri, const Usage usageHint)
May be called by the compilation framework at compile time to report that an XML document referenced ...
QExplicitlySharedDataPointer< QAbstractXmlForwardIterator< Item > > Ptr
A smart pointer wrapping an instance of a QAbstractXmlForwardIterator subclass.
virtual Expression::Ptr typeCheck(const StaticContext::Ptr &context, const SequenceType::Ptr &reqType)
virtual SequenceType::Ptr staticType() const
#define QT_BEGIN_NAMESPACE
This macro expands to.
const TCastTarget * as() const
void error(const QString &message, const ReportContext::ErrorCode errorCode, const QSourceLocation &sourceLocation)
virtual SequenceType::Ptr staticType() const
static Cardinality oneOrMore()
virtual Item::Iterator::Ptr evaluateSequence(const DynamicContext::Ptr &context) const
const T & at(int i) const
Returns the item at index position i in the list.
The namespace for the internal API of QtXmlPatterns.
virtual Item::Iterator::Ptr evaluateSequence(const DynamicContext::Ptr &context) const
QString stringValue() const
Returns the string value of this Item.
virtual Cardinality cardinality() const =0
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
virtual ResourceLoader::Ptr resourceLoader() const =0
T value(int i) const
Returns the value at index position i in the list.
virtual Expression::Ptr typeCheck(const StaticContext::Ptr &context, const SequenceType::Ptr &reqType)
Contains classes implementing the functions found in XQuery 1.0 and XPath 2.0 Functions and Operators...
Houses an AtomicValue, making it available as an Expression.
T & first()
Returns a reference to the first item in the list.
QExplicitlySharedDataPointer< Expression > Ptr
A smart pointer wrapping mutable Expression instances.
Conceptually inserts one QAbstractXmlForwardIterator into another, make two QAbstractXmlForwardIterat...
virtual Item::Iterator::Ptr evaluateSequence(const DynamicContext::Ptr &context) const
virtual SequenceType::Ptr staticType() const =0
static const EmptySequenceType::Ptr Empty
#define Q_ASSERT_X(cond, where, what)
static const SequenceType::Ptr ZeroOrOneDocumentNode
static Cardinality zeroOrOne()
Represents an item in the XPath 2.0 Data Model.
virtual SequenceType::Ptr staticType() const
Base class for all numeric values.
virtual xsInteger toInteger() const =0
virtual QExplicitlySharedDataPointer< DynamicContext > dynamicContext() const =0
T & last()
Returns a reference to the last item in the list.
virtual Expression::Ptr typeCheck(const StaticContext::Ptr &context, const SequenceType::Ptr &reqType)
static Cardinality exactlyOne()
virtual Item::Iterator::Ptr evaluateSequence(const DynamicContext::Ptr &context) const
virtual SequenceType::Ptr staticType() const
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
static const AtomicType::Ptr xsAnyAtomicType
Represents a cardinality, a possible , often represented by occurrence indicators.
virtual ItemType::Ptr itemType() const =0
static QString formatURI(const NamePool::Ptr &np, const QXmlName::NamespaceCode &uri)
Formats uri, that's considered to be a URI, for display.
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
Removes one items at a specified position from an input QAbstractXmlForwardIterator.
virtual bool evaluateEBV(const DynamicContext::Ptr &context) const
static Cardinality fromRange(const Count minimum, const Count maximum)
virtual SequenceType::Ptr staticType() const
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
Contains classes implementing the functions found in XQuery 1.0 and XPath 2.0 Functions and Operators...
virtual Expression::Ptr typeCheck(const StaticContext::Ptr &context, const SequenceType::Ptr &reqType)
virtual Expression::Ptr typeCheck(const StaticContext::Ptr &context, const SequenceType::Ptr &reqType)
virtual Item::Iterator::Ptr evaluateSequence(const DynamicContext::Ptr &context) const