umbrello: umbrello/codeimport/csharp/csharpimport.h Source File

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

csharpimport.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2011-2020 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef CSHARPIMPORT_H
7#define CSHARPIMPORT_H
8
9#include "nativeimportbase.h"
10
11class UMLObject;
12
19 class CSharpImport : public NativeImportBase
20{
21public:
22 explicit CSharpImport(CodeImpThread* thread = 0);
23 virtual ~CSharpImport();
24
25protected:
26 void initVars();
27
28 bool parseStmt();
29
30 void fillSource(const QString& word);
31
32 bool parseFile(const QString& filename);
33
34 UMLObject* resolveClass (const QString& className);
35
36 void spawnImport(const QString& file);
37
38 QString joinTypename(const QString& typeName);
39
40 bool m_isStatic;
41 QString m_currentFileName;
42 QString m_currentPackage;
43 QStringList m_imports;
44 Uml::Visibility::Enum m_defaultCurrentAccess;
45
50 static QStringList s_filesAlreadyParsed;
51
56 static int s_parseDepth;
57
58private:
59 static UMLObject* findObject(const QString& name, UMLPackage *parentPkg);
60
61 bool parseUsingDirectives();
62 bool parseGlobalAttributes();
63 bool parseNamespaceMemberDeclarations();
64 bool parseAttributes();
65
66 // type-declaration
67 bool parseClassDeclaration(const QString& keyword);
68 bool parseStructDeclaration();
69 // bool parseInterfaceDeclaration();
70 bool parseEnumDeclaration();
71 bool parseDelegateDeclaration();
72
73 bool isTypeDeclaration(const QString& keyword);
74 bool isClassModifier(const QString& keyword);
75 bool isCommonModifier(const QString& keyword);
76
77};
78
79#endif
CSharpImport
Definition: csharpimport.h:20
CSharpImport::joinTypename
QString joinTypename(const QString &typeName)
Definition: csharpimport.cpp:63
CSharpImport::CSharpImport
CSharpImport(CodeImpThread *thread=0)
Definition: csharpimport.cpp:34
CSharpImport::parseGlobalAttributes
bool parseGlobalAttributes()
Definition: csharpimport.cpp:516
CSharpImport::m_currentPackage
QString m_currentPackage
current package of the file being parsed
Definition: csharpimport.h:42
CSharpImport::parseStructDeclaration
bool parseStructDeclaration()
Definition: csharpimport.cpp:661
CSharpImport::parseClassDeclaration
bool parseClassDeclaration(const QString &keyword)
Definition: csharpimport.cpp:686
CSharpImport::initVars
void initVars()
Definition: csharpimport.cpp:52
CSharpImport::parseFile
bool parseFile(const QString &filename)
Definition: csharpimport.cpp:228
CSharpImport::parseUsingDirectives
bool parseUsingDirectives()
Definition: csharpimport.cpp:497
CSharpImport::s_filesAlreadyParsed
static QStringList s_filesAlreadyParsed
Definition: csharpimport.h:50
CSharpImport::~CSharpImport
virtual ~CSharpImport()
Definition: csharpimport.cpp:45
CSharpImport::findObject
static UMLObject * findObject(const QString &name, UMLPackage *parentPkg)
Definition: csharpimport.cpp:133
CSharpImport::isTypeDeclaration
bool isTypeDeclaration(const QString &keyword)
Definition: csharpimport.cpp:551
CSharpImport::resolveClass
UMLObject * resolveClass(const QString &className)
Definition: csharpimport.cpp:144
CSharpImport::parseEnumDeclaration
bool parseEnumDeclaration()
Definition: csharpimport.cpp:617
CSharpImport::m_imports
QStringList m_imports
imports included in the current file
Definition: csharpimport.h:43
CSharpImport::s_parseDepth
static int s_parseDepth
Definition: csharpimport.h:56
CSharpImport::fillSource
void fillSource(const QString &word)
Definition: csharpimport.cpp:88
CSharpImport::parseAttributes
bool parseAttributes()
Definition: csharpimport.cpp:539
CSharpImport::spawnImport
void spawnImport(const QString &file)
Definition: csharpimport.cpp:112
CSharpImport::isClassModifier
bool isClassModifier(const QString &keyword)
Definition: csharpimport.cpp:570
CSharpImport::m_defaultCurrentAccess
Uml::Visibility::Enum m_defaultCurrentAccess
current visibility for when the visibility is absent
Definition: csharpimport.h:44
CSharpImport::parseDelegateDeclaration
bool parseDelegateDeclaration()
Definition: csharpimport.cpp:672
CSharpImport::m_currentFileName
QString m_currentFileName
current filename being parsed
Definition: csharpimport.h:41
CSharpImport::parseNamespaceMemberDeclarations
bool parseNamespaceMemberDeclarations()
Definition: csharpimport.cpp:526
CSharpImport::parseStmt
bool parseStmt()
Definition: csharpimport.cpp:258
CSharpImport::m_isStatic
bool m_isStatic
static flag for the member var or method
Definition: csharpimport.h:40
CSharpImport::isCommonModifier
bool isCommonModifier(const QString &keyword)
Definition: csharpimport.cpp:590
CodeImpThread
Definition: codeimpthread.h:22
NativeImportBase
Base class for native implementations of language import.
Definition: nativeimportbase.h:40
UMLObject
The base class for UML objects.
Definition: umlobject.h:70
UMLPackage
Non-graphical information for a Package.
Definition: package.h:28
Uml::Visibility::Enum
Enum
Definition: basictypes.h:45
nativeimportbase.h