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 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2006-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef PYTHONIMPORT_H
7#define PYTHONIMPORT_H
8
9#include "nativeimportbase.h"
10
11class UMLOperation;
12
18 class PythonImport : public NativeImportBase
19{
20public:
21 explicit PythonImport(CodeImpThread* thread = 0);
22 virtual ~PythonImport();
23
24protected:
25 void initVars();
26
27 bool parseInitializer(const QString &keyword, QString &type, QString &value);
28 bool parseAssignmentStmt(const QString &keyword);
29
30 bool parseMethodParameters(UMLOperation *op);
31 bool parseStmt();
32
33 void fillSource(const QString& line);
34
35 bool preprocess(QString& line);
36
37 QString indentation(int level);
38
39 QString skipBody();
40
45 int m_srcIndent[100];
46
50 int m_srcIndentIndex;
51
52 bool m_braceWasOpened;
53 bool m_isStatic;
54};
55
56#endif
57
CodeImpThread
Definition: codeimpthread.h:22
NativeImportBase
Base class for native implementations of language import.
Definition: nativeimportbase.h:40
PythonImport
Definition: pythonimport.h:19
PythonImport::PythonImport
PythonImport(CodeImpThread *thread=0)
Definition: pythonimport.cpp:28
PythonImport::skipBody
QString skipBody()
Definition: pythonimport.cpp:164
PythonImport::parseAssignmentStmt
bool parseAssignmentStmt(const QString &keyword)
Definition: pythonimport.cpp:272
PythonImport::fillSource
void fillSource(const QString &line)
Definition: pythonimport.cpp:123
PythonImport::m_srcIndent
int m_srcIndent[100]
Definition: pythonimport.h:45
PythonImport::preprocess
bool preprocess(QString &line)
Definition: pythonimport.cpp:63
PythonImport::initVars
void initVars()
Definition: pythonimport.cpp:45
PythonImport::parseMethodParameters
bool parseMethodParameters(UMLOperation *op)
Definition: pythonimport.cpp:311
PythonImport::parseInitializer
bool parseInitializer(const QString &keyword, QString &type, QString &value)
Definition: pythonimport.cpp:212
PythonImport::m_braceWasOpened
bool m_braceWasOpened
Flag denoting the opening of a block.
Definition: pythonimport.h:52
PythonImport::m_isStatic
bool m_isStatic
Flag denoting staticness of defined method.
Definition: pythonimport.h:53
PythonImport::indentation
QString indentation(int level)
Definition: pythonimport.cpp:151
PythonImport::~PythonImport
virtual ~PythonImport()
Definition: pythonimport.cpp:38
PythonImport::parseStmt
bool parseStmt()
Definition: pythonimport.cpp:343
PythonImport::m_srcIndentIndex
int m_srcIndentIndex
Definition: pythonimport.h:50
UMLOperation
Definition: operation.h:20
nativeimportbase.h