Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Private Member Functions
CppExport::StatementVisitor Class Reference
Inheritance diagram for CppExport::StatementVisitor:
Export::Visitor< DeclarationVisitor, ExpressionVisitor, StatementVisitor, ElementVisitor, CppPrintContext >

Public Member Functions

Export::SourceFragmentvisit (OOModel::AssertStatement *statement)
 
Export::SourceFragmentvisit (OOModel::Block *statement)
 
Export::SourceFragmentvisit (OOModel::BreakStatement *statement)
 
Export::SourceFragmentvisit (OOModel::CaseStatement *statement)
 
Export::SourceFragmentvisit (OOModel::CommentStatementItem *statement)
 
Export::SourceFragmentvisit (OOModel::ContinueStatement *statement)
 
Export::SourceFragmentvisit (OOModel::DeclarationStatement *statement)
 
Export::SourceFragmentvisit (OOModel::ExpressionStatement *statement)
 
Export::SourceFragmentvisit (OOModel::ForEachStatement *statement)
 
Export::SourceFragmentvisit (OOModel::IfStatement *statement)
 
Export::SourceFragmentvisit (OOModel::LoopStatement *statement)
 
Export::SourceFragmentvisit (OOModel::ReturnStatement *statement)
 
Export::SourceFragmentvisit (OOModel::StatementItem *statementItem)
 
Export::SourceFragmentvisit (OOModel::SwitchStatement *statement)
 
Export::SourceFragmentvisit (OOModel::SynchronizedStatement *statement)
 
Export::SourceFragmentvisit (OOModel::TryCatchFinallyStatement *statement)
 
- Public Member Functions inherited from Export::Visitor< DeclarationVisitor, ExpressionVisitor, StatementVisitor, ElementVisitor, CppPrintContext >
 Visitor ()
 
 Visitor (CppPrintContext printContext)
 
 Visitor (CppPrintContext printContext, std::shared_ptr< VisitorData< CppPrintContext >> data)
 
 Visitor (std::shared_ptr< VisitorData< CppPrintContext >> data)
 
 ~Visitor ()
 
QList< ExportErrorerrors () const
 
CppPrintContext & printContext ()
 

Private Member Functions

QString blockStyle (Model::List *block)
 

Additional Inherited Members

- Protected Member Functions inherited from Export::Visitor< DeclarationVisitor, ExpressionVisitor, StatementVisitor, ElementVisitor, CppPrintContext >
std::shared_ptr< VisitorData< CppPrintContext > > data ()
 
SourceFragmentdeclaration (NodeType *node)
 
SourceFragmentelement (NodeType *node)
 
void error (const QString &errorMessage)
 
void error (Model::Node *node, const QString &errorMessage)
 
SourceFragmentexpression (NodeType *node)
 
CompositeFragmentlist (Model::TypedList< ListElement > *list, VisitorClass &&v, const QString &fragmentType={}, Predicate filter=nullptr)
 
CompositeFragmentlist (Model::TypedList< ListElement > *list, VisitorClass *v, const QString &fragmentType={}, Predicate filter=nullptr)
 
void notAllowed (Model::List *list)
 
void notAllowed (Model::Node *node)
 
void required (Model::Node *parent, Model::Node *node, const QString &childName)
 
SourceFragmentstatement (NodeType *node)
 

Member Function Documentation

◆ blockStyle()

QString CppExport::StatementVisitor::blockStyle ( Model::List block)
private

◆ visit() [1/16]

SourceFragment * CppExport::StatementVisitor::visit ( OOModel::AssertStatement statement)

◆ visit() [2/16]

SourceFragment * CppExport::StatementVisitor::visit ( OOModel::Block statement)

◆ visit() [3/16]

SourceFragment * CppExport::StatementVisitor::visit ( OOModel::BreakStatement statement)

◆ visit() [4/16]

SourceFragment * CppExport::StatementVisitor::visit ( OOModel::CaseStatement statement)

◆ visit() [5/16]

SourceFragment * CppExport::StatementVisitor::visit ( OOModel::CommentStatementItem statement)

◆ visit() [6/16]

SourceFragment * CppExport::StatementVisitor::visit ( OOModel::ContinueStatement statement)

◆ visit() [7/16]

SourceFragment * CppExport::StatementVisitor::visit ( OOModel::DeclarationStatement statement)

◆ visit() [8/16]

SourceFragment * CppExport::StatementVisitor::visit ( OOModel::ExpressionStatement statement)

◆ visit() [9/16]

SourceFragment * CppExport::StatementVisitor::visit ( OOModel::ForEachStatement statement)

◆ visit() [10/16]

SourceFragment * CppExport::StatementVisitor::visit ( OOModel::IfStatement statement)

◆ visit() [11/16]

SourceFragment * CppExport::StatementVisitor::visit ( OOModel::LoopStatement statement)

◆ visit() [12/16]

SourceFragment * CppExport::StatementVisitor::visit ( OOModel::ReturnStatement statement)

◆ visit() [13/16]

SourceFragment * CppExport::StatementVisitor::visit ( OOModel::StatementItem statementItem)

◆ visit() [14/16]

SourceFragment * CppExport::StatementVisitor::visit ( OOModel::SwitchStatement statement)

◆ visit() [15/16]

SourceFragment * CppExport::StatementVisitor::visit ( OOModel::SynchronizedStatement statement)

◆ visit() [16/16]

SourceFragment * CppExport::StatementVisitor::visit ( OOModel::TryCatchFinallyStatement statement)