umbrello: umbrello/codeimport/pythonimport.h Source File

umbrello 2.32.3 Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology

pythonimport.h
Go to the documentation of this file.
1 /***************************************************************************
2 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
6 * *
7 * copyright (C) 2006-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef PYTHONIMPORT_H
12 #define PYTHONIMPORT_H
13
14 #include "nativeimportbase.h"
15
16 class UMLOperation;
17
23 class PythonImport : public NativeImportBase
24 {
25 public:
26 explicit PythonImport(CodeImpThread* thread = 0);
27 virtual ~PythonImport();
28
29 protected:
30 void initVars();
31
32 bool parseInitializer(const QString &keyword, QString &type, QString &value);
33 bool parseAssignmentStmt(const QString &keyword);
34
35 bool parseMethodParameters(UMLOperation *op);
36 bool parseStmt();
37
38 void fillSource(const QString& line);
39
40 bool preprocess(QString& line);
41
42 QString indentation(int level);
43
44 QString skipBody();
45
50 int m_srcIndent[100];
51
55 int m_srcIndentIndex;
56
57 bool m_braceWasOpened;
58 bool m_isStatic;
59 };
60
61 #endif
62
CodeImpThread
Definition: codeimpthread.h:36
NativeImportBase
Base class for native implementations of language import.
Definition: nativeimportbase.h:45
PythonImport
Definition: pythonimport.h:24
PythonImport::PythonImport
PythonImport(CodeImpThread *thread=0)
Definition: pythonimport.cpp:33
PythonImport::skipBody
QString skipBody()
Definition: pythonimport.cpp:169
PythonImport::parseAssignmentStmt
bool parseAssignmentStmt(const QString &keyword)
Definition: pythonimport.cpp:277
PythonImport::fillSource
void fillSource(const QString &line)
Definition: pythonimport.cpp:128
PythonImport::m_srcIndent
int m_srcIndent[100]
Definition: pythonimport.h:50
PythonImport::preprocess
bool preprocess(QString &line)
Definition: pythonimport.cpp:68
PythonImport::initVars
void initVars()
Definition: pythonimport.cpp:50
PythonImport::parseMethodParameters
bool parseMethodParameters(UMLOperation *op)
Definition: pythonimport.cpp:316
PythonImport::parseInitializer
bool parseInitializer(const QString &keyword, QString &type, QString &value)
Definition: pythonimport.cpp:217
PythonImport::m_braceWasOpened
bool m_braceWasOpened
Flag denoting the opening of a block.
Definition: pythonimport.h:57
PythonImport::m_isStatic
bool m_isStatic
Flag denoting staticness of defined method.
Definition: pythonimport.h:58
PythonImport::indentation
QString indentation(int level)
Definition: pythonimport.cpp:156
PythonImport::~PythonImport
virtual ~PythonImport()
Definition: pythonimport.cpp:43
PythonImport::parseStmt
bool parseStmt()
Definition: pythonimport.cpp:348
PythonImport::m_srcIndentIndex
int m_srcIndentIndex
Definition: pythonimport.h:55
UMLOperation
Definition: operation.h:25
nativeimportbase.h