umbrello/umbrello
csharpimport.cpp
Go to the documentation of this file.
683 const UMLObject::ObjectType t = (keyword == "class" ? UMLObject::ot_Class : UMLObject::ot_Interface);
693 UMLObject::ObjectType ot = (keyword == "interface" ? UMLObject::ot_Interface : UMLObject::ot_Class);
UMLTemplate * addTemplate(const QString &name, Uml::ID::Type id=Uml::ID::None)
Adds an already created template.
Definition: classifier.cpp:1043
UMLObject * resolveClass(const QString &className)
Try to resolve the specified class the current class depends on.
Definition: csharpimport.cpp:148
void skipStmt(const QString &until=";")
Advance m_srcIndex until m_source[m_srcIndex] contains the lexeme given by `until'.
Definition: nativeimportbase.cpp:81
void setMultiLineComment(const QString &intro, const QString &end)
Set the delimiter strings for a multi line comment.
Definition: nativeimportbase.cpp:58
This class contains the non-graphical information required for a UML Package.
Definition: package.h:32
This class defines the non-graphical information required for a UML Classifier (ie a class or interfa...
Definition: classifier.h:39
void spawnImport(const QString &file)
Spawn off an import of the specified file.
Definition: csharpimport.cpp:116
virtual QStringList split(const QString &line)
Split the line so that a string is returned as a single element of the list.
Definition: nativeimportbase.cpp:260
UMLObject * insertAttribute(UMLClassifier *owner, Uml::Visibility::Enum scope, const QString &name, UMLClassifier *attrType, const QString &comment, bool isStatic)
Create a UMLAttribute and insert it into the document.
Definition: import_utils.cpp:364
Definition: umlobject.h:55
Intermediate base class for native Umbrello implementations of programming language import...
Definition: nativeimportbase.h:44
void setVisibility(Uml::Visibility::Enum visibility)
Sets the visibility of the object.
Definition: umlobject.cpp:445
void log(const QString &file, const QString &text)
Write info to a logger or to the debug output.
Definition: classimport.cpp:94
Uml::Visibility::Enum m_currentAccess
current access (public/protected/private)
Definition: nativeimportbase.h:94
void setBaseType(UMLObject::ObjectType ot)
Reimplementation of method from class UMLObject for controlling the exact type of this classifier: cl...
Definition: classifier.cpp:82
bool parseFile(const QString &filename)
Keep track of the current file being parsed and reset the list of imports.
Definition: csharpimport.cpp:232
UMLDoc * document() const
Returns a pointer to the current document connected to the KMainWindow instance.
Definition: uml.cpp:872
Definition: basictypes.h:58
QList< UMLPackage * > m_scope
stack of scopes for use by the specific importer
Definition: nativeimportbase.h:91
bool skipToClosing(QChar opener)
Advance m_srcIndex to the index of the corresponding closing character of the given opening...
Definition: nativeimportbase.cpp:96
bool isInterface() const
Returns true if this classifier represents an interface.
Definition: classifier.cpp:112
static int s_parseDepth
Keep track of the parses so that the filesAlreadyParsed can be reset when we're done.
Definition: csharpimport.h:61
Uml::Visibility::Enum m_defaultCurrentAccess
current visibility for when the visibility is absent
Definition: csharpimport.h:49
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &inName, UMLPackage *parentPkg, const QString &comment, const QString &stereotype)
Find or create a document object.
Definition: import_utils.cpp:169
QString advance()
Advance m_srcIndex until m_source[m_srcIndex] contains a non-comment.
Definition: nativeimportbase.cpp:143
Definition: basictypes.h:60
void insertMethod(UMLClassifier *klass, UMLOperation *&op, Uml::Visibility::Enum scope, const QString &type, bool isStatic, bool isAbstract, bool isFriend, bool isConstructor, const QString &comment)
Insert the UMLOperation into the given classifier.
Definition: import_utils.cpp:435
static QStringList s_filesAlreadyParsed
Keep track of the files we have already parsed so we don't reparse the same ones over and over again...
Definition: csharpimport.h:55
UMLAttribute * addMethodParameter(UMLOperation *method, const QString &type, const QString &name)
Add an argument to a UMLOperation.
Definition: import_utils.cpp:507
bool parseStmt()
Implement abstract operation from NativeImportBase.
Definition: csharpimport.cpp:262
uint m_scopeIndex
indexes m_scope, index 0 is reserved for global scope
Definition: nativeimportbase.h:92
Thread class that does the code import work for one file.
Definition: codeimpthread.h:35
Definition: basictypes.h:57
This class contains the non-graphical information required for a UML Enum.
Definition: enum.h:28
Definition: umlobject.h:53
void fillSource(const QString &word)
Implement abstract operation from NativeImportBase.
Definition: csharpimport.cpp:92
UMLOperation * makeOperation(UMLClassifier *parent, const QString &name)
Create a UMLOperation.
Definition: import_utils.cpp:354
Definition: umlobject.h:56
Definition: umlobject.h:49
Definition: umlobject.h:52
void addEnumLiteral(UMLEnum *enumType, const QString &literal, const QString &comment)
Add an enum literal to an UMLEnum.
Definition: import_utils.cpp:528
virtual QString fullyQualifiedName(const QString &separator=QString(), bool includeRoot=false) const
Returns the fully qualified name, i.e.
Definition: umlobject.cpp:201
void createGeneralization(UMLClassifier *child, UMLClassifier *parent)
Create a generalization from the given child classifier to the given parent classifier.
Definition: import_utils.cpp:538
UMLObject * findUMLObject(const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject, UMLObject *currentObj=0)
Used to find a UMLObject by its type and name.
Definition: umldoc.cpp:809
Definition: basictypes.h:59
QString joinTypename(const QString &typeName)
Figure out if the type is really an array or template of the given typeName.
Definition: csharpimport.cpp:67
virtual bool parseFile(const QString &filename)
Import a single file.
Definition: nativeimportbase.cpp:353
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.