umbrello: umbrello/codeimport/javacsvalaimportbase.h Source File

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

javacsvalaimportbase.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-FileCopyrightText: 2025 Umbrello UML Modeller Authors <umbrello-devel@kde.org>
4*/
5
6#ifndef JAVACSVALAIMPORTBASE_H
7#define JAVACSVALAIMPORTBASE_H
8
9#include "nativeimportbase.h"
10
11class UMLObject;
12
18 class JavaCsValaImportBase : public NativeImportBase
19{
20public:
21 explicit JavaCsValaImportBase(CodeImpThread *thread = nullptr);
22 virtual ~JavaCsValaImportBase() {}
23 virtual QString fileExtension() = 0;
24
25protected:
26 void initVars();
27
28 // bool parseStmt(); done in the specific importer realizations
29
30 void fillSource(const QString& word);
31
32 bool parseFile(const QString& filename);
33
34 virtual void spawnImport(const QString& file) = 0;
35
36 UMLObject* resolveClass (const QString& className);
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
61 Uml::ProgrammingLanguage::Enum m_language;
62
63 static UMLObject* findObject(const QString& name, UMLPackage *parentPkg);
64
65 // type-declaration
66 bool parseClassDeclaration(const QString& keyword);
67 bool parseEnumDeclaration();
68
69};
70
71#endif
CodeImpThread
Definition codeimpthread.h:22
JavaCsValaImportBase::joinTypename
QString joinTypename(const QString &typeName)
Definition javacsvalaimportbase.cpp:59
JavaCsValaImportBase::fillSource
void fillSource(const QString &word)
Definition javacsvalaimportbase.cpp:84
JavaCsValaImportBase::findObject
static UMLObject * findObject(const QString &name, UMLPackage *parentPkg)
Definition javacsvalaimportbase.cpp:120
JavaCsValaImportBase::parseClassDeclaration
bool parseClassDeclaration(const QString &keyword)
JavaCsValaImportBase::~JavaCsValaImportBase
virtual ~JavaCsValaImportBase()
Definition javacsvalaimportbase.h:22
JavaCsValaImportBase::m_defaultCurrentAccess
Uml::Visibility::Enum m_defaultCurrentAccess
current visibility for when the visibility is absent
Definition javacsvalaimportbase.h:44
JavaCsValaImportBase::m_currentPackage
QString m_currentPackage
current package of the file being parsed
Definition javacsvalaimportbase.h:42
JavaCsValaImportBase::m_language
Uml::ProgrammingLanguage::Enum m_language
Definition javacsvalaimportbase.h:61
JavaCsValaImportBase::parseEnumDeclaration
bool parseEnumDeclaration()
JavaCsValaImportBase::m_imports
QStringList m_imports
imports included in the current file
Definition javacsvalaimportbase.h:43
JavaCsValaImportBase::resolveClass
UMLObject * resolveClass(const QString &className)
Definition javacsvalaimportbase.cpp:131
JavaCsValaImportBase::fileExtension
virtual QString fileExtension()=0
JavaCsValaImportBase::JavaCsValaImportBase
JavaCsValaImportBase(CodeImpThread *thread=nullptr)
Definition javacsvalaimportbase.cpp:37
JavaCsValaImportBase::initVars
void initVars()
Definition javacsvalaimportbase.cpp:48
JavaCsValaImportBase::spawnImport
virtual void spawnImport(const QString &file)=0
JavaCsValaImportBase::parseFile
bool parseFile(const QString &filename)
Definition javacsvalaimportbase.cpp:254
JavaCsValaImportBase::m_currentFileName
QString m_currentFileName
current filename being parsed
Definition javacsvalaimportbase.h:41
JavaCsValaImportBase::m_isStatic
bool m_isStatic
static flag for the member var or method
Definition javacsvalaimportbase.h:40
JavaCsValaImportBase::s_parseDepth
static int s_parseDepth
Definition javacsvalaimportbase.h:56
JavaCsValaImportBase::s_filesAlreadyParsed
static QStringList s_filesAlreadyParsed
Definition javacsvalaimportbase.h:50
NativeImportBase::NativeImportBase
NativeImportBase(const QString &singleLineCommentIntro, CodeImpThread *thread=nullptr)
Definition nativeimportbase.cpp:33
UMLObject
The base class for UML objects.
Definition umlobject.h:70
UMLPackage
Non-graphical information for a Package.
Definition package.h:28
Uml::ProgrammingLanguage::Enum
Enum
Definition basictypes.h:291
Uml::Visibility::Enum
Enum
Definition basictypes.h:45
nativeimportbase.h