57 m_errorCode(errorCode)
67 context->
error(QtXmlPatterns::tr(
"The item %1 did not match the required type %2.")
100 return makeItemMappingIterator<Item>(
ConstPtr(
this),
119 return visitor->visit(
this);
virtual NamePool::Ptr namePool() const =0
#define QT_END_NAMESPACE
This macro expands to.
virtual ExpressionVisitorResult::Ptr accept(const ExpressionVisitor::Ptr &visitor) const
virtual const SourceLocationReflection * actualReflection() const
Returns this.
static const SequenceType::Ptr ZeroOrMoreItems
QString formatType(const NamePool::Ptr &np, const T &type)
Formats ItemType and SequenceType.
virtual bool itemMatches(const Item &item) const =0
virtual const SourceLocationReflection * actualReflection() const
Returns this.
const ItemType::Ptr m_reqType
void append(const T &t)
Inserts value at the end of the list.
Item mapToItem(const Item &, const DynamicContext::Ptr &) const
#define QT_BEGIN_NAMESPACE
This macro expands to.
void error(const QString &message, const ReportContext::ErrorCode errorCode, const QSourceLocation &sourceLocation)
virtual Item evaluateSingleton(const DynamicContext::Ptr &) const
The namespace for the internal API of QtXmlPatterns.
virtual SequenceType::Ptr staticType() const
QString stringValue() const
Returns the string value of this Item.
virtual Cardinality cardinality() const =0
static QString formatData(const QString &data)
virtual SequenceType::Ptr staticType() const =0
Contains functions used for formatting arguments, such as keywords and paths, in translated strings...
Represents an item in the XPath 2.0 Data Model.
Expression::Ptr m_operand
void verifyItem(const Item &item, const DynamicContext::Ptr &context) const
const ReportContext::ErrorCode m_errorCode
virtual SequenceType::List expectedOperandTypes() const
ItemVerifier(const Expression::Ptr &operand, const ItemType::Ptr &reqType, const ReportContext::ErrorCode errorCode)
QExplicitlySharedDataPointer< const ItemVerifier > ConstPtr
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
The QList class is a template class that provides lists.
Base class for all instances that represents something at a certain location.
virtual Item::Iterator::Ptr evaluateSequence(const DynamicContext::Ptr &context) const
Base class for expressions that has exactly one operand.
virtual Item::Iterator::Ptr evaluateSequence(const DynamicContext::Ptr &) const