52 #ifndef Patternist_GeneralComparison_H 53 #define Patternist_GeneralComparison_H 80 AtomicComparator::AsGeneralComparison>
86 const bool isBackwardsCompat =
false);
100 virtual ID id()
const;
#define QT_END_NAMESPACE
This macro expands to.
static void updateType(ItemType::Ptr &type, const Expression::Ptr &source)
bool generalCompare(const Item &op1, const Item &op2, const DynamicContext::Ptr &context) const
virtual SequenceType::List expectedOperandTypes() const
virtual QList< QExplicitlySharedDataPointer< OptimizationPass > > optimizationPasses() const
virtual Expression::Ptr compress(const StaticContext::Ptr &context)
virtual Expression::Ptr typeCheck(const StaticContext::Ptr &context, const SequenceType::Ptr &reqType)
Implements XPath 2.0's general comparions, such as the = operator.
#define QT_BEGIN_NAMESPACE
This macro expands to.
AtomicComparator::Operator operatorID() const
const AtomicComparator::Operator m_operator
The namespace for the internal API of QtXmlPatterns.
virtual ExpressionVisitorResult::Ptr accept(const ExpressionVisitor::Ptr &visitor) const
GeneralComparison(const Expression::Ptr &op1, const AtomicComparator::Operator op, const Expression::Ptr &op2, const bool isBackwardsCompat=false)
Represents an item in the XPath 2.0 Data Model.
AtomicComparator::Ptr fetchGeneralComparator(Expression::Ptr &op1, Expression::Ptr &op2, const ReportContext::Ptr &context) const
virtual bool evaluateEBV(const DynamicContext::Ptr &) const
const bool m_isBackwardsCompat
The QList class is a template class that provides lists.
virtual SequenceType::Ptr staticType() const
Base class for expressions that has exactly two operands.