106 context->
error(QtXmlPatterns::tr(
"A value of type %1 cannot be a " 107 "predicate. A predicate must have " 108 "either a numeric type or an " 109 "Effective Boolean Value type.")
127 const Item pcateItem(
it->next());
131 else if(pcateItem.isNode())
138 context->
error(QtXmlPatterns::tr(
"A positional predicate must " 139 "evaluate to a single numeric " 165 return makeItemMappingIterator<Item>(
ConstPtr(
this),
175 return mapToItem(focus->next(), newContext);
189 return makeGenericSequenceType(
type->itemType(),
195 return visitor->visit(
this);
virtual ItemType::Ptr newFocusType() const
#define QT_END_NAMESPACE
This macro expands to.
GenericPredicate(const Expression::Ptr &sourceExpression, const Expression::Ptr &predicate)
virtual SequenceType::Ptr staticType() const
static const SequenceType::Ptr ZeroOrMoreItems
#define it(className, varName)
virtual QString description() const
QString formatType(const NamePool::Ptr &np, const T &type)
Formats ItemType and SequenceType.
virtual NamePool::Ptr namePool() const =0
virtual Item::Iterator::Ptr evaluateSequence(const DynamicContext::Ptr &context) const
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
static bool evaluateEBV(const Item::Iterator::Ptr &e, const QExplicitlySharedDataPointer< DynamicContext > &)
The QString class provides a Unicode character string.
static Expression::Ptr create(const Expression *const replacementFor, const StaticContext::Ptr &context)
Creates an EmptySequence that is a replacement for replacementFor.
virtual xsInteger contextPosition() const =0
DynamicContext::Ptr createFocus()
void append(const T &t)
Inserts value at the end of the list.
T * data() const
Returns a pointer to the shared data object.
#define QT_BEGIN_NAMESPACE
This macro expands to.
const TCastTarget * as() const
void error(const QString &message, const ReportContext::ErrorCode errorCode, const QSourceLocation &sourceLocation)
static const ItemType::Ptr item
The namespace for the internal API of QtXmlPatterns.
virtual void setFocusIterator(const Item::Iterator::Ptr &it)=0
The QSourceLocation class identifies a location in a resource by URI, line, and column.
virtual SequenceType::List expectedOperandTypes() const
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const
static Expression::Ptr create(const Expression::Ptr &sourceExpression, const Expression::Ptr &predicateExpression, const StaticContext::Ptr &context, const QSourceLocation &location)
Houses an AtomicValue, making it available as an Expression.
QExplicitlySharedDataPointer< Expression > Ptr
A smart pointer wrapping mutable Expression instances.
virtual SequenceType::Ptr staticType() const =0
static const EmptySequenceType::Ptr Empty
static Cardinality zeroOrOne()
Contains functions used for formatting arguments, such as keywords and paths, in translated strings...
Represents an item in the XPath 2.0 Data Model.
static bool isEqual(const xsDouble a, const xsDouble b)
Base class for all numeric values.
static QTestResult::TestLocation location
virtual xsDouble toDouble() const =0
static const AtomicType::Ptr numeric
virtual ExpressionVisitorResult::Ptr accept(const ExpressionVisitor::Ptr &visitor) const
static const SequenceType::Ptr EBV
Expression::Ptr m_operand1
A predicate which is optimized for filter expressions that are of type xs:boolean.
QExplicitlySharedDataPointer< const GenericPredicate > ConstPtr
static const AtomicType::Ptr xsAnyAtomicType
The QFlags class provides a type-safe way of storing OR-combinations of enum values.
virtual ItemType::Ptr itemType() const =0
Expression::Ptr m_operand2
Item mapToItem(const Item &subject, const DynamicContext::Ptr &) const
virtual Properties properties() const
bool is(const ID id) const
A predicate that always selects the first item from its sequence.
static Expression::Ptr createFirstItem(const Expression::Ptr &sourceExpression)
The QList class is a template class that provides lists.
virtual Item::Iterator::Ptr evaluateSequence(const DynamicContext::Ptr &context) const
Base class for expressions that has exactly two operands.