umbrello/umbrello
#include <csharpimport.h>
Public Member Functions | |
CSharpImport (CodeImpThread *thread=0) | |
virtual | ~CSharpImport () |
Public Member Functions inherited from NativeImportBase | |
NativeImportBase (const QString &singleLineCommentIntro, CodeImpThread *thread=0) | |
virtual | ~NativeImportBase () |
Public Member Functions inherited from ClassImport | |
ClassImport (CodeImpThread *thread=0) | |
virtual | ~ClassImport () |
bool | enabled () |
bool | importFile (const QString &fileName) |
bool | importFiles (const QStringList &fileNames) |
Protected Member Functions | |
void | fillSource (const QString &word) |
void | initVars () |
QString | joinTypename (const QString &typeName) |
bool | parseFile (const QString &filename) |
bool | parseStmt () |
UMLObject * | resolveClass (const QString &className) |
void | spawnImport (const QString &file) |
Protected Member Functions inherited from NativeImportBase | |
QString | advance () |
void | initialize () |
virtual bool | preprocess (QString &line) |
void | scan (const QString &line) |
void | setMultiLineAltComment (const QString &intro, const QString &end) |
void | setMultiLineComment (const QString &intro, const QString &end) |
void | skipStmt (const QString &until=";") |
bool | skipToClosing (QChar opener) |
virtual QStringList | split (const QString &line) |
Protected Member Functions inherited from ClassImport | |
void | log (const QString &file, const QString &text) |
void | log (const QString &text) |
Protected Attributes | |
QString | m_currentFileName |
QString | m_currentPackage |
Uml::Visibility::Enum | m_defaultCurrentAccess |
QStringList | m_imports |
bool | m_isStatic |
Protected Attributes inherited from NativeImportBase | |
QString | m_comment |
Uml::Visibility::Enum | m_currentAccess |
bool | m_inComment |
bool | m_isAbstract |
UMLClassifier * | m_klass |
QString | m_multiLineAltCommentEnd |
QString | m_multiLineAltCommentIntro |
QString | m_multiLineCommentEnd |
QString | m_multiLineCommentIntro |
QStringList | m_parsedFiles |
QList< UMLPackage * > | m_scope |
uint | m_scopeIndex |
QString | m_singleLineCommentIntro |
QStringList | m_source |
int | m_srcIndex |
Protected Attributes inherited from ClassImport | |
bool | m_enabled |
CodeImpThread * | m_thread |
Static Protected Attributes | |
static QStringList | s_filesAlreadyParsed |
static int | s_parseDepth = 0 |
Additional Inherited Members | |
Static Public Member Functions inherited from ClassImport | |
static ClassImport * | createImporterByFileExt (const QString &fileName, CodeImpThread *thread=0) |
Detailed Description
C# code import.
Grammar of C# can be found at http://msdn.microsoft.com/en-us/library/Aa664812 .
Definition at line 24 of file csharpimport.h.
Constructor & Destructor Documentation
|
explicit |
Constructor.
Definition at line 39 of file csharpimport.cpp.
|
virtual |
Destructor.
Definition at line 49 of file csharpimport.cpp.
Member Function Documentation
|
protectedvirtual |
Implement abstract operation from NativeImportBase.
- Parameters
-
word whitespace delimited item
Implements NativeImportBase.
Definition at line 92 of file csharpimport.cpp.
|
protectedvirtual |
Reimplement operation from NativeImportBase.
Reimplemented from NativeImportBase.
Definition at line 56 of file csharpimport.cpp.
|
protected |
Figure out if the type is really an array or template of the given typeName.
Catenate possible template arguments/array dimensions to the end of the type name.
- Parameters
-
typeName the type name
- Returns
- the type name with the additional information
Definition at line 67 of file csharpimport.cpp.
|
protectedvirtual |
Keep track of the current file being parsed and reset the list of imports.
- Parameters
-
filename the name of the file being parsed
Reimplemented from NativeImportBase.
Definition at line 232 of file csharpimport.cpp.
|
protectedvirtual |
Implement abstract operation from NativeImportBase.
compilation-unit: using-directives? global-attributes? namespace-member-declarations?
- Returns
- success status of operation
Implements NativeImportBase.
Definition at line 262 of file csharpimport.cpp.
|
protected |
Try to resolve the specified class the current class depends on.
- Parameters
-
className the name of the class
Definition at line 148 of file csharpimport.cpp.
|
protected |
Spawn off an import of the specified file.
- Parameters
-
file the specified file
Definition at line 116 of file csharpimport.cpp.
Member Data Documentation
|
protected |
current filename being parsed
Definition at line 46 of file csharpimport.h.
|
protected |
current package of the file being parsed
Definition at line 47 of file csharpimport.h.
|
protected |
current visibility for when the visibility is absent
Definition at line 49 of file csharpimport.h.
|
protected |
imports included in the current file
Definition at line 48 of file csharpimport.h.
|
protected |
static flag for the member var or method
Definition at line 45 of file csharpimport.h.
|
staticprotected |
Keep track of the files we have already parsed so we don't reparse the same ones over and over again.
Definition at line 55 of file csharpimport.h.
|
staticprotected |
Keep track of the parses so that the filesAlreadyParsed can be reset when we're done.
Definition at line 61 of file csharpimport.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.