umbrello  2.32.2
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 
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 
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 
56 
58  bool m_isStatic;
59 };
60 
61 #endif
62 
Definition: codeimpthread.h:36
Base class for native implementations of language import.
Definition: nativeimportbase.h:45
Definition: pythonimport.h:24
PythonImport(CodeImpThread *thread=0)
Definition: pythonimport.cpp:33
QString skipBody()
Definition: pythonimport.cpp:169
bool parseAssignmentStmt(const QString &keyword)
Definition: pythonimport.cpp:277
void fillSource(const QString &line)
Definition: pythonimport.cpp:128
int m_srcIndent[100]
Definition: pythonimport.h:50
bool preprocess(QString &line)
Definition: pythonimport.cpp:68
void initVars()
Definition: pythonimport.cpp:50
bool parseMethodParameters(UMLOperation *op)
Definition: pythonimport.cpp:316
bool parseInitializer(const QString &keyword, QString &type, QString &value)
Definition: pythonimport.cpp:217
bool m_braceWasOpened
Flag denoting the opening of a block.
Definition: pythonimport.h:57
bool m_isStatic
Flag denoting staticness of defined method.
Definition: pythonimport.h:58
QString indentation(int level)
Definition: pythonimport.cpp:156
virtual ~PythonImport()
Definition: pythonimport.cpp:43
bool parseStmt()
Definition: pythonimport.cpp:348
int m_srcIndentIndex
Definition: pythonimport.h:55
Definition: operation.h:25