umbrello: umbrello/codeimport/pythonimport.h Source File

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

- Main Page
- Related Pages
- Topics
- Namespaces
- Classes
- Files

- File List
- File Members

pythonimport.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2006-2022 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(Uml::PrimitiveTypes::Enum *foundReturn = 0);
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:31
PythonImport::parseAssignmentStmt
bool parseAssignmentStmt(const QString &keyword)
Definition pythonimport.cpp:329
PythonImport::fillSource
void fillSource(const QString &line)
Definition pythonimport.cpp:126
PythonImport::m_srcIndent
int m_srcIndent[100]
Definition pythonimport.h:45
PythonImport::preprocess
bool preprocess(QString &line)
Definition pythonimport.cpp:66
PythonImport::initVars
void initVars()
Definition pythonimport.cpp:48
PythonImport::parseMethodParameters
bool parseMethodParameters(UMLOperation *op)
Definition pythonimport.cpp:368
PythonImport::skipBody
QString skipBody(Uml::PrimitiveTypes::Enum *foundReturn=0)
Definition pythonimport.cpp:191
PythonImport::parseInitializer
bool parseInitializer(const QString &keyword, QString &type, QString &value)
Definition pythonimport.cpp:267
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:166
PythonImport::~PythonImport
virtual ~PythonImport()
Definition pythonimport.cpp:41
PythonImport::parseStmt
bool parseStmt()
Definition pythonimport.cpp:416
PythonImport::m_srcIndentIndex
int m_srcIndentIndex
Definition pythonimport.h:50
UMLOperation
Definition operation.h:20
Uml::PrimitiveTypes::Enum
Enum
Definition basictypes.h:269
nativeimportbase.h