umbrello: umbrello/codeimport/javaimport.h Source File

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

javaimport.h
Go to the documentation of this file.
1 /***************************************************************************
2 * This program is free software; you can redistribute it and/or modify *
3 * it under the terms of the GNU General Public License as published by *
4 * the Free Software Foundation; either version 2 of the License, or *
5 * (at your option) any later version. *
6 * *
7 * copyright (C) 2006-2020 *
8 * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9 ***************************************************************************/
10
11 #ifndef JAVAIMPORT_H
12 #define JAVAIMPORT_H
13
14 #include "nativeimportbase.h"
15
16 class UMLObject;
17
24 class JavaImport : public NativeImportBase
25 {
26 public:
27 explicit JavaImport(CodeImpThread* thread = 0);
28 virtual ~JavaImport();
29
30 protected:
31 void initVars();
32
33 bool parseStmt();
34
35 void fillSource(const QString& word);
36
37 bool parseFile(const QString& filename);
38
39 UMLObject* resolveClass (const QString& className);
40
41 void spawnImport(const QString& file);
42
43 QString joinTypename(const QString& typeName);
44
45 bool m_isStatic;
46 QString m_currentFileName;
47 QString m_currentPackage;
48 QStringList m_imports;
49 Uml::Visibility::Enum m_defaultCurrentAccess;
50
55 static QStringList s_filesAlreadyParsed;
56
61 static int s_parseDepth;
62
63 private:
64 static UMLObject* findObject(const QString& name, UMLPackage *parentPkg);
65
66 };
67
68 #endif
69
CodeImpThread
Definition: codeimpthread.h:36
JavaImport
Definition: javaimport.h:25
JavaImport::m_currentPackage
QString m_currentPackage
current package of the file being parsed
Definition: javaimport.h:47
JavaImport::initVars
void initVars()
Definition: javaimport.cpp:58
JavaImport::m_isStatic
bool m_isStatic
static flag for the member var or method
Definition: javaimport.h:45
JavaImport::fillSource
void fillSource(const QString &word)
Definition: javaimport.cpp:94
JavaImport::resolveClass
UMLObject * resolveClass(const QString &className)
Definition: javaimport.cpp:159
JavaImport::m_imports
QStringList m_imports
imports included in the current file
Definition: javaimport.h:48
JavaImport::parseFile
bool parseFile(const QString &filename)
Definition: javaimport.cpp:287
JavaImport::JavaImport
JavaImport(CodeImpThread *thread=0)
Definition: javaimport.cpp:40
JavaImport::s_filesAlreadyParsed
static QStringList s_filesAlreadyParsed
Definition: javaimport.h:55
JavaImport::m_currentFileName
QString m_currentFileName
current filename being parsed
Definition: javaimport.h:46
JavaImport::findObject
static UMLObject * findObject(const QString &name, UMLPackage *parentPkg)
Definition: javaimport.cpp:148
JavaImport::s_parseDepth
static int s_parseDepth
Definition: javaimport.h:61
JavaImport::m_defaultCurrentAccess
Uml::Visibility::Enum m_defaultCurrentAccess
current visibility for when the visibility is absent
Definition: javaimport.h:49
JavaImport::spawnImport
void spawnImport(const QString &file)
Definition: javaimport.cpp:126
JavaImport::parseStmt
bool parseStmt()
Definition: javaimport.cpp:319
JavaImport::joinTypename
QString joinTypename(const QString &typeName)
Definition: javaimport.cpp:69
JavaImport::~JavaImport
virtual ~JavaImport()
Definition: javaimport.cpp:51
NativeImportBase
Base class for native implementations of language import.
Definition: nativeimportbase.h:45
UMLObject
The base class for UML objects.
Definition: umlobject.h:75
UMLPackage
Non-graphical information for a Package.
Definition: package.h:33
Uml::Visibility::Enum
Enum
Definition: basictypes.h:59
nativeimportbase.h