umbrello: umbrello/codeimport/javaimport.h Source File

umbrello 2.39.2 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

javaimport.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 JAVAIMPORT_H
7#define JAVAIMPORT_H
8
9#include "nativeimportbase.h"
10
11class UMLObject;
12
19 class JavaImport : public NativeImportBase
20{
21public:
22 explicit JavaImport(CodeImpThread* thread = 0);
23 virtual ~JavaImport();
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};
62
63#endif
64
CodeImpThread
Definition codeimpthread.h:22
JavaImport
Definition javaimport.h:20
JavaImport::m_currentPackage
QString m_currentPackage
current package of the file being parsed
Definition javaimport.h:42
JavaImport::initVars
void initVars()
Definition javaimport.cpp:56
JavaImport::m_isStatic
bool m_isStatic
static flag for the member var or method
Definition javaimport.h:40
JavaImport::fillSource
void fillSource(const QString &word)
Definition javaimport.cpp:92
JavaImport::resolveClass
UMLObject * resolveClass(const QString &className)
Definition javaimport.cpp:157
JavaImport::m_imports
QStringList m_imports
imports included in the current file
Definition javaimport.h:43
JavaImport::parseFile
bool parseFile(const QString &filename)
Definition javaimport.cpp:285
JavaImport::JavaImport
JavaImport(CodeImpThread *thread=0)
Definition javaimport.cpp:38
JavaImport::s_filesAlreadyParsed
static QStringList s_filesAlreadyParsed
Definition javaimport.h:50
JavaImport::m_currentFileName
QString m_currentFileName
current filename being parsed
Definition javaimport.h:41
JavaImport::findObject
static UMLObject * findObject(const QString &name, UMLPackage *parentPkg)
Definition javaimport.cpp:146
JavaImport::s_parseDepth
static int s_parseDepth
Definition javaimport.h:56
JavaImport::m_defaultCurrentAccess
Uml::Visibility::Enum m_defaultCurrentAccess
current visibility for when the visibility is absent
Definition javaimport.h:44
JavaImport::spawnImport
void spawnImport(const QString &file)
Definition javaimport.cpp:124
JavaImport::parseStmt
bool parseStmt()
Definition javaimport.cpp:317
JavaImport::joinTypename
QString joinTypename(const QString &typeName)
Definition javaimport.cpp:67
JavaImport::~JavaImport
virtual ~JavaImport()
Definition javaimport.cpp:49
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