Qt 4.8
|
Implements the value instance of empty sequence: ()
.
More...
#include <qemptysequence_p.h>
Public Functions | |
virtual ExpressionVisitorResult::Ptr | accept (const ExpressionVisitor::Ptr &visitor) const |
EmptySequence () | |
Creates an instance of EmptySequence. More... | |
virtual bool | evaluateEBV (const DynamicContext::Ptr &context) const |
virtual Item::Iterator::Ptr | evaluateSequence (const DynamicContext::Ptr &) const |
virtual Item | evaluateSingleton (const DynamicContext::Ptr &) const |
virtual void | evaluateToSequenceReceiver (const DynamicContext::Ptr &) const |
virtual ID | id () const |
virtual Properties | properties () const |
virtual SequenceType::Ptr | staticType () const |
virtual QString | stringValue () const |
virtual ItemType::Ptr | type () 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 const SourceLocationReflection * | actualReflection () const |
Returns this . More... | |
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 QString | description () 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 () |
Static Public Functions | |
static Expression::Ptr | create (const Expression *const replacementFor, const StaticContext::Ptr &context) |
Creates an EmptySequence that is a replacement for replacementFor . More... | |
Static Public Functions inherited from QPatternist::Expression | |
static void | rewrite (Expression::Ptr &old, const Expression::Ptr &New, const StaticContext::Ptr &context) |
Implements the value instance of empty sequence: ()
.
Definition at line 69 of file qemptysequence_p.h.
|
inline |
Creates an instance of EmptySequence.
Definition at line 90 of file qemptysequence_p.h.
Referenced by create().
|
virtual |
Implements QPatternist::Expression.
Definition at line 97 of file qemptysequence.cpp.
Referenced by EmptySequence().
|
static |
Creates an EmptySequence that is a replacement for replacementFor
.
Definition at line 52 of file qemptysequence.cpp.
Referenced by QPatternist::NodeComparison::compress(), QPatternist::ExpressionSequence::compress(), QPatternist::SubsequenceFN::compress(), QPatternist::Expression::constantPropagate(), QPatternist::GenericPredicate::create(), QPatternist::FunctionCall::typeCheck(), QPatternist::ValueComparison::typeCheck(), QPatternist::ForClause::typeCheck(), QPatternist::ArithmeticExpression::typeCheck(), QPatternist::IndexOfFN::typeCheck(), QPatternist::CastAs::typeCheck(), QPatternist::DocFN::typeCheck(), and QPatternist::DistinctValuesFN::typeCheck().
|
virtual |
false
. Reimplemented from QPatternist::Expression.
Definition at line 87 of file qemptysequence.cpp.
Referenced by EmptySequence().
|
virtual |
Reimplemented from QPatternist::Expression.
Definition at line 63 of file qemptysequence.cpp.
Referenced by EmptySequence().
|
virtual |
null
. Reimplemented from QPatternist::Expression.
Definition at line 68 of file qemptysequence.cpp.
Referenced by EmptySequence().
|
virtual |
Does nothing.
Reimplemented from QPatternist::Expression.
Definition at line 73 of file qemptysequence.cpp.
Referenced by EmptySequence().
|
virtual |
This property, which has no setter, returns an enum value that uniquely identifies this Expression. Patternist makes no use of C++'s dynamic_cast feature, but uses this polymorphic function instead.
Reimplemented from QPatternist::Expression.
Definition at line 102 of file qemptysequence.cpp.
Referenced by EmptySequence().
|
virtual |
The default implementation returns 0. Override and let the function return a different value, if that's of interest.
An important decision when re-implementing properties() is whether to OR in the properties() of ones operands. For instance, if an operand has RequiresFocus set, that flag nost likely applies to the apparent as well, since it depends on its operand.
Reimplemented from QPatternist::Expression.
Definition at line 107 of file qemptysequence.cpp.
Referenced by EmptySequence().
|
virtual |
Implements QPatternist::Expression.
Definition at line 82 of file qemptysequence.cpp.
Referenced by EmptySequence().
|
virtual |
|
virtual |
Definition at line 77 of file qemptysequence.cpp.
Referenced by EmptySequence().