83 if(card.isExactlyOne())
85 else if(card.isEmpty())
92 else if(card.isExact())
120 context->
error(QtXmlPatterns::tr(
"The first argument to %1 cannot be " 121 "of type %2. It must be a numeric " 122 "type, xs:yearMonthDuration or " 123 "xs:dayTimeDuration.")
150 const Item next(
it->next());
155 next, m_adder, context,
194 context->
error(QtXmlPatterns::tr(
"The first argument to %1 cannot be " 195 "of type %2. It must be of type %3, " 231 opt->cardinality().toWithoutMany());
241 const Item next(
it->next());
246 next, m_mather, context,
this,
285 context->
error(QtXmlPatterns::tr(
"The second argument to %1 cannot be " 286 "of type %2. It must be of type %3, " 312 t->cardinality().toWithoutMany());
virtual Expression::Ptr typeCheck(const StaticContext::Ptr &context, const SequenceType::Ptr &reqType)
virtual Expression::Ptr compress(const StaticContext::Ptr &context)
Expression::List m_operands
static const AtomicType::Ptr xsDayTimeDuration
#define QT_END_NAMESPACE
This macro expands to.
#define it(className, varName)
QString formatType(const NamePool::Ptr &np, const T &type)
Formats ItemType and SequenceType.
virtual NamePool::Ptr namePool() const =0
static const Item IntegerOne
virtual Expression::Ptr typeCheck(const StaticContext::Ptr &context, const SequenceType::Ptr &reqType)
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 typeCheck(const StaticContext::Ptr &context, const SequenceType::Ptr &reqType)
static const AtomicType::Ptr xsYearMonthDuration
static const Item IntegerZero
static Item fromValue(const xsInteger num)
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
virtual Expression::Ptr compress(const StaticContext::Ptr &context)
virtual SequenceType::Ptr staticType() const
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
#define QT_BEGIN_NAMESPACE
This macro expands to.
void error(const QString &message, const ReportContext::ErrorCode errorCode, const QSourceLocation &sourceLocation)
static QString formatFunction(const NamePool::Ptr &np, const FunctionSignature::Ptr &func)
Formats FunctionSignature.
virtual Expression::List operands() 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 Expression::Ptr typeCheck(const StaticContext::Ptr &context, const SequenceType::Ptr &reqType)
static const AtomicType::Ptr xsDouble
virtual FunctionSignature::Ptr signature() const
virtual Cardinality cardinality() const =0
void replace(int i, const T &t)
Replaces the item at index position i with value.
Contains classes implementing the functions found in XQuery 1.0 and XPath 2.0 Functions and Operators...
static const AtomicType::Ptr xsUntypedAtomic
T & first()
Returns a reference to the first item in the list.
static AtomicMathematician::Ptr fetchMathematician(Expression::Ptr &t1, Expression::Ptr &t2, const AtomicMathematician::Operator op, const bool issueError, const ReportContext::Ptr &context, const SourceLocationReflection *const reflection, const ReportContext::ErrorCode code=ReportContext::XPTY0004, const bool isCompat=false)
virtual SequenceType::Ptr staticType() const
virtual SequenceType::Ptr staticType() const =0
static const EmptySequenceType::Ptr Empty
virtual Expression::Ptr typeCheck(const StaticContext::Ptr &context, const SequenceType::Ptr &reqType)
Represents an item in the XPath 2.0 Data Model.
T & last()
Returns a reference to the last item in the list.
static const AtomicType::Ptr numeric
static const AtomicType::Ptr xsInteger
static Cardinality exactlyOne()
Casts every item in a sequence obtained from evaluating an Expression, to a requested atomic type...
static const SequenceType::Ptr EBV
static const AtomicType::Ptr xsDecimal
virtual Expression::Ptr create(const Expression::List &operands, const StaticContext::Ptr &context, const SourceLocationReflection *const r) const
static const AtomicType::Ptr xsAnyAtomicType
Represents a cardinality, a possible , often represented by occurrence indicators.
virtual ItemType::Ptr itemType() const =0
static Item flexiblyCalculate(const Item &op1, const AtomicMathematician::Operator op, const Item &op2, const AtomicMathematician::Ptr &mather, const DynamicContext::Ptr &context, const SourceLocationReflection *const reflection, const ReportContext::ErrorCode code=ReportContext::XPTY0004, const bool isCompat=false)
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 Item::Iterator::Ptr evaluateSequence(const DynamicContext::Ptr &context) const
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const