KXQTS::DebugExpressionFactory Class Reference

Is a Patternist::ExpressionFactory, with the difference that it provides the hooks for building from a tree of debug data from the compiled expression. More...

#include <DebugExpressionFactory.h>

Inheritance diagram for KXQTS::DebugExpressionFactory:

Inheritance graph
[legend]
Collaboration diagram for KXQTS::DebugExpressionFactory:

Collaboration graph
[legend]
List of all members.

Public Types

typedef Patternist::PlainSharedPtr<
DebugExpressionFactory
Ptr

Public Member Functions

virtual ASTItemastTree () const
virtual Patternist::Expression::Ptr createExpression (const QString &expr, const Patternist::StaticContext::Ptr &context, const LanguageAccent lang, const Patternist::SequenceType::Ptr &requiredType)

Static Public Member Functions

static QStringList availableFunctionSignatures ()

Protected Member Functions

virtual void processTreePass (const Patternist::Expression::Ptr &tree, const CompilationStage stage)

Detailed Description

Is a Patternist::ExpressionFactory, with the difference that it provides the hooks for building from a tree of debug data from the compiled expression.

This tree can be retrieved via astTree(). The astTree() function returns the AST built the last time createExpression() was called.

Author:
Frans Englich <frans.englich@telia.com>

Definition at line 36 of file DebugExpressionFactory.h.


Member Function Documentation

ASTItem * DebugExpressionFactory::astTree (  )  const [virtual]

Returns:
an ASTItem tree built for the last created expression, via createExpression().

Definition at line 149 of file DebugExpressionFactory.cpp.

QStringList DebugExpressionFactory::availableFunctionSignatures (  )  [static]

Returns:
a list containing string representations of all available functions in Patternist. Each QString in the returned QStringList is a function synopsis for human consumption.

Definition at line 32 of file DebugExpressionFactory.cpp.

References KXQTS::Global::namePool(), and Patternist::FunctionFactoryCollection::xpath20Factory().

Referenced by KXQTS::FunctionSignaturesView::FunctionSignaturesView().

Here is the call graph for this function:

Here is the caller graph for this function:

Patternist::Expression::Ptr DebugExpressionFactory::createExpression ( const QString &  expr,
const Patternist::StaticContext::Ptr context,
const LanguageAccent  lang,
const Patternist::SequenceType::Ptr requiredType 
) [virtual]

Identical to ExpressionFactory::createExpression() with the difference that it builds an ASTItem tree which can be accessed via astTree().

Definition at line 99 of file DebugExpressionFactory.cpp.

void DebugExpressionFactory::processTreePass ( const Patternist::Expression::Ptr tree,
const CompilationStage  stage 
) [protected, virtual]

Performs the ASTItem tree building.

Definition at line 110 of file DebugExpressionFactory.cpp.

References KXQTS::ASTItem::appendChild().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Thu Feb 8 14:54:31 2007 for Patternist by  doxygen 1.5.1