Qt 4.8
|
Implements the context item, the dot: .
.
More...
#include <qcontextitem_p.h>
Properties | |
const Expression::Ptr | m_expr |
ItemType::Ptr | m_itemType |
Implements the context item, the dot: .
.
Definition at line 71 of file qcontextitem_p.h.
|
inline |
expr
is possibly used for error reporting. If this context item has been created implicitly, such as for the expression fn:string()
, expr
should be passed a valid pointer to the Expression that this context item is generated for.
Definition at line 80 of file qcontextitem_p.h.
|
virtual |
Implements QPatternist::Expression.
Definition at line 85 of file qcontextitem.cpp.
Referenced by ContextItem().
|
virtual |
Returns this
.
Reimplemented from QPatternist::Expression.
Definition at line 100 of file qcontextitem.cpp.
Referenced by ContextItem().
|
virtual |
When this function is called, it signals that the parent will create a focus of type itemType
.
This type can also be retrieved through StaticContext::contextItemType() when inside typeCheck(), but in some cases this is too late. For instance, a parent needs to have the static type of its child properly reported before it calls its typeCheck()(and the child's type is inferred from the focus).
The default implementation delegates the call on to the children.
This function may be called at arbitrary times, in arbitrary amounts.
If the AST node overriding this call has children, it should be considered whether the default implementation should be called, such that they type is announced to them too.
The caller guarantees that itemType
is not null
.
Reimplemented from QPatternist::Expression.
Definition at line 108 of file qcontextitem.cpp.
Referenced by ContextItem().
|
virtual |
Overridden to store a pointer to StaticContext::contextItemType().
Reimplemented from QPatternist::Expression.
Definition at line 57 of file qcontextitem.cpp.
Referenced by ContextItem().
|
virtual |
Reimplemented from QPatternist::Expression.
Definition at line 52 of file qcontextitem.cpp.
Referenced by ContextItem().
|
virtual |
Reimplemented from QPatternist::Expression.
Definition at line 95 of file qcontextitem.cpp.
Referenced by ContextItem().
|
virtual |
Reimplemented from QPatternist::Expression.
Definition at line 90 of file qcontextitem.cpp.
Referenced by ContextItem().
|
virtual |
Reimplemented from QPatternist::Expression.
Definition at line 80 of file qcontextitem.cpp.
Referenced by ContextItem().
|
virtual |
Implements QPatternist::Expression.
Definition at line 70 of file qcontextitem.cpp.
Referenced by ContextItem().
|
virtual |
Overridden to store a pointer to StaticContext::contextItemType().
Reimplemented from QPatternist::Expression.
Definition at line 63 of file qcontextitem.cpp.
Referenced by ContextItem().
|
private |
Definition at line 120 of file qcontextitem_p.h.
Referenced by actualReflection().
|
private |
Definition at line 119 of file qcontextitem_p.h.
Referenced by announceFocusType(), compress(), staticType(), and typeCheck().