52 #ifndef Patternist_CardinalityVerifier_H 53 #define Patternist_CardinalityVerifier_H virtual Expression::Ptr compress(const StaticContext::Ptr &context)
virtual SequenceType::Ptr staticType() const
#define QT_END_NAMESPACE
This macro expands to.
Verifies that the sequence an Expression evaluates to conforms to a Cardinality.
virtual Item::Iterator::Ptr evaluateSequence(const DynamicContext::Ptr &context) const
The QString class provides a Unicode character string.
static QString wrongCardinality(const Cardinality &req, const Cardinality &got=Cardinality::empty())
static Expression::Ptr verifyCardinality(const Expression::Ptr &operand, const Cardinality &card, const StaticContext::Ptr &context, const ReportContext::ErrorCode code=ReportContext::XPTY0004)
static Cardinality empty()
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual ExpressionVisitorResult::Ptr accept(const ExpressionVisitor::Ptr &visitor) const
The namespace for the internal API of QtXmlPatterns.
virtual SequenceType::List expectedOperandTypes() const
Represents an item in the XPath 2.0 Data Model.
CardinalityVerifier(const Expression::Ptr &operand, const Cardinality &card, const ReportContext::ErrorCode code)
virtual Item evaluateSingleton(const DynamicContext::Ptr &) const
const Cardinality m_reqCard
Represents a cardinality, a possible , often represented by occurrence indicators.
const ReportContext::ErrorCode m_errorCode
virtual const SourceLocationReflection * actualReflection() const
Returns this.
The QList class is a template class that provides lists.
Base class for all instances that represents something at a certain location.
Base class for expressions that has exactly one operand.