Qt 4.8
|
A function factory that handles the builtin constructor functions, such as xs:time()
.
More...
#include <qconstructorfunctionsfactory_p.h>
Public Functions | |
ConstructorFunctionsFactory (const NamePool::Ptr &np, const SchemaTypeFactory::Ptr &) | |
virtual FunctionSignature::Ptr | retrieveFunctionSignature (const NamePool::Ptr &np, const QXmlName name) |
Public Functions inherited from QPatternist::AbstractFunctionFactory | |
virtual Expression::Ptr | createFunctionCall (const QXmlName name, const Expression::List &arguments, const StaticContext::Ptr &context, const SourceLocationReflection *const r) |
virtual FunctionSignature::Hash | functionSignatures () const |
Public Functions inherited from QPatternist::FunctionFactory | |
bool | hasSignature (const FunctionSignature::Ptr &signature) const |
virtual bool | isAvailable (const NamePool::Ptr &np, const QXmlName name, const xsInteger arity) |
virtual | ~FunctionFactory () |
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... | |
Properties | |
const SchemaTypeFactory::Ptr | m_typeFactory |
Additional Inherited Members | |
Public Types inherited from QPatternist::FunctionFactory | |
typedef QList< FunctionFactory::Ptr > | List |
typedef QExplicitlySharedDataPointer< FunctionFactory > | Ptr |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
Static Protected Functions inherited from QPatternist::AbstractFunctionFactory | |
static QXmlName::LocalNameCode | argument (const NamePool::Ptr &np, const char *const name) |
Protected Variables inherited from QPatternist::AbstractFunctionFactory | |
FunctionSignature::Hash | m_signatures |
A function factory that handles the builtin constructor functions, such as xs:time()
.
Definition at line 74 of file qconstructorfunctionsfactory_p.h.
ConstructorFunctionsFactory::ConstructorFunctionsFactory | ( | const NamePool::Ptr & | np, |
const SchemaTypeFactory::Ptr & | f | ||
) |
Definition at line 59 of file qconstructorfunctionsfactory.cpp.
|
protectedvirtual |
This function is responsible for creating the actual Expression, corresponding to localName
and the function signature sign
. It is called by createFunctionCall(), once it have been determined the function actually exists and have the correct arity.
This function will only be called for names in the fn
namespace.
Implements QPatternist::AbstractFunctionFactory.
Definition at line 93 of file qconstructorfunctionsfactory.cpp.
|
virtual |
This is a convenience function for sub-classes. It retrieves the function signature for function with name name
.
According to the specifications are function signatures identified by their name and arity, but currently is the arity not part of the signature.
If no function could be found for the given name, null
is returned.
Implements QPatternist::FunctionFactory.
Definition at line 108 of file qconstructorfunctionsfactory.cpp.
|
private |
Definition at line 87 of file qconstructorfunctionsfactory_p.h.
Referenced by ConstructorFunctionsFactory(), and retrieveExpression().