![]() |
Qt 4.8
|
Public Functions | |
| virtual const SourceLocationReflection * | actualReflection () const |
Returns this. More... | |
| DelegatingReflectionExpression (const Item &item, const SourceLocationReflection *const reflection) | |
Public Functions inherited from QPatternist::Literal | |
| virtual ExpressionVisitorResult::Ptr | accept (const ExpressionVisitor::Ptr &visitor) const |
| virtual QString | description () const |
| virtual bool | evaluateEBV (const DynamicContext::Ptr &context) const |
| virtual Item | evaluateSingleton (const DynamicContext::Ptr &context) const |
| void | evaluateToSequenceReceiver (const DynamicContext::Ptr &context) const |
| virtual ID | id () const |
| Item | item () const |
| Literal (const Item &item) | |
| virtual Properties | properties () const |
| virtual SequenceType::Ptr | staticType () const |
Public Functions inherited from QPatternist::EmptyContainer | |
| virtual Expression::List | operands () const |
| virtual void | setOperands (const Expression::List &) |
Public Functions inherited from QPatternist::Expression | |
| virtual void | announceFocusType (const ItemType::Ptr &itemType) |
| virtual Expression::Ptr | compress (const StaticContext::Ptr &context) |
| Properties | deepProperties () const |
| Computes the union of properties for this Expression and all its descending children. More... | |
| virtual Properties | dependencies () const |
| virtual Item::Iterator::Ptr | evaluateSequence (const DynamicContext::Ptr &context) const |
| virtual ItemType::Ptr | expectedContextItemType () const |
| Expression () | |
| bool | has (const Property prop) const |
| bool | hasDependency (const Property prop) const |
| bool | is (const ID id) const |
| bool | isEvaluated () const |
| virtual ItemType::Ptr | newFocusType () const |
| virtual QList< QExplicitlySharedDataPointer< OptimizationPass > > | optimizationPasses () const |
| virtual PatternPriority | patternPriority () const |
| const Expression::Ptr & | rewrite (const Expression::Ptr &to, const StaticContext::Ptr &context) const |
Rewrites this Expression to to, and return to. More... | |
| virtual Expression::Ptr | typeCheck (const StaticContext::Ptr &context, const SequenceType::Ptr &reqType) |
| virtual | ~Expression () |
Public Functions inherited from QSharedData | |
| QSharedData () | |
| Constructs a QSharedData object with a reference count of 0. More... | |
| QSharedData (const QSharedData &) | |
| Constructs a QSharedData object with reference count 0. More... | |
Public Functions inherited from QPatternist::CppCastingHelper< Expression > | |
| const TCastTarget * | as () const |
| TCastTarget * | as () |
Public Functions inherited from QPatternist::SourceLocationReflection | |
| virtual QSourceLocation | sourceLocation () const |
| SourceLocationReflection () | |
| virtual | ~SourceLocationReflection () |
Properties | |
| const SourceLocationReflection *const | m_reflection |
Since ArithmeticExpression::flexiblyCalculate() creates Expression instances at runtime, we have the problem of having SourceLocationReflections for them in the case that we run into a runtime error, since the locations are always located at compile time.
This class simply delegates the reflection over to an existing expression.
I only managed to trigger this with "current() + 1", where current() evaluates to an invalid representation for xs:double.
Definition at line 94 of file qarithmeticexpression.cpp.
|
inline |
Definition at line 97 of file qarithmeticexpression.cpp.
|
inlinevirtual |
Returns this.
Reimplemented from QPatternist::Expression.
Definition at line 103 of file qarithmeticexpression.cpp.
|
private |
Definition at line 109 of file qarithmeticexpression.cpp.