Qt 4.8
|
Evaluates its operand with an assigned DynamicContext, not the one passed to one of the evaluation functions. More...
#include <qdynamiccontextstore_p.h>
Properties | |
DynamicContext * | m_context |
Evaluates its operand with an assigned DynamicContext, not the one passed to one of the evaluation functions.
Definition at line 70 of file qdynamiccontextstore_p.h.
DynamicContextStore::DynamicContextStore | ( | const Expression::Ptr & | operand, |
const DynamicContext::Ptr & | context | ||
) |
Definition at line 52 of file qdynamiccontextstore.cpp.
|
virtual |
Implements QPatternist::Expression.
Definition at line 86 of file qdynamiccontextstore.cpp.
|
virtual |
Returns this
.
Reimplemented from QPatternist::Expression.
Definition at line 91 of file qdynamiccontextstore.cpp.
|
virtual |
Determines the Effective Boolean Value of the expression.
The Effective Boolean Value of a value is not necessarily the same as converting the value to a new value of type xs:boolean.
Note that this function cannot return the empty sequence, evaluateSingleton() must be overridden in order to be able to do that.
The default implementation results in a type error. Hence, this function must be overridden if such behavior is not of interest.
Reimplemented from QPatternist::Expression.
Definition at line 59 of file qdynamiccontextstore.cpp.
|
virtual |
Evaluate this Expression by iterating over it. This is a central function for evaluating expressions.
Expressions must always always return a valid QAbstractXmlForwardIterator and may never return 0. If an empty result is of interest to be returned, the EmptyIterator should be returned.
The default implementation returns a SingletonIterator over the item returned from evaluateSingleton().
Reimplemented from QPatternist::Expression.
Definition at line 64 of file qdynamiccontextstore.cpp.
|
virtual |
Reimplemented from QPatternist::Expression.
Definition at line 69 of file qdynamiccontextstore.cpp.
|
virtual |
Returns a list of Sequence Types, describing the type of each of the expression's operands. Hence, this function has a relationship to the operands() function:
- The lengths of the lists returned by expectedOperandTypes() and operands() should always be equal in length, since one cannot describe the type of a non-existent operand(and all operands must have type information). - A significant difference between the two functions is that while the type of objects in the list returned by operands() may vary between compilations/static context, simply because the particular Expression is part of different XPath expressions, the types in the list returned by expectedOperandTypes is always the same since the function/operator signature never changes.
This function should not be confused with staticType(), which returns the static type of the expression itself, not its operands. The function call is an expression where this is clear: the type of the return value is not the same as the arguments' types. The static type of the operands supplied to the expression can be determined via the staticType() function of the instances returned by operands().
If the expression has no operands, an empty list should be returned.
Implements QPatternist::Expression.
Definition at line 79 of file qdynamiccontextstore.cpp.
|
virtual |
Implements QPatternist::Expression.
Definition at line 74 of file qdynamiccontextstore.cpp.
|
private |
Definition at line 89 of file qdynamiccontextstore_p.h.
Referenced by evaluateEBV(), evaluateSequence(), and evaluateSingleton().