umbrello/umbrello
#include <pythonimport.h>
Public Member Functions | |
PythonImport (CodeImpThread *thread=0) | |
virtual | ~PythonImport () |
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 &line) |
QString | indentation (int level) |
void | initVars () |
bool | parseStmt () |
bool | preprocess (QString &line) |
QString | skipBody () |
Protected Member Functions inherited from NativeImportBase | |
QString | advance () |
void | initialize () |
virtual bool | parseFile (const QString &filename) |
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 | |
bool | m_braceWasOpened |
int | m_srcIndent [100] |
int | m_srcIndentIndex |
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 |
Additional Inherited Members | |
Static Public Member Functions inherited from ClassImport | |
static ClassImport * | createImporterByFileExt (const QString &fileName, CodeImpThread *thread=0) |
Detailed Description
Python code import.
Definition at line 21 of file pythonimport.h.
Constructor & Destructor Documentation
|
explicit |
Constructor.
Definition at line 33 of file pythonimport.cpp.
|
virtual |
Destructor.
Definition at line 43 of file pythonimport.cpp.
Member Function Documentation
|
protectedvirtual |
Implement abstract operation from NativeImportBase.
- Parameters
-
word whitespace delimited item
Implements NativeImportBase.
Definition at line 127 of file pythonimport.cpp.
|
protected |
Return an amount of spaces that corresponds to.
- Parameters
-
level
- Returns
- spaces of indentation
Definition at line 155 of file pythonimport.cpp.
|
protectedvirtual |
Reimplement operation from NativeImportBase.
Reimplemented from NativeImportBase.
Definition at line 50 of file pythonimport.cpp.
|
protectedvirtual |
Implement abstract operation from NativeImportBase.
- Returns
- success status of operation
Implements NativeImportBase.
Definition at line 212 of file pythonimport.cpp.
|
protectedvirtual |
Reimplement operation from NativeImportBase.
In addition to handling multiline comments, this method transforms changes in leading indentation into braces (opening brace for increase in indentation, closing brace for decrease in indentation) in m_source. Removal of Python's indentation sensitivity simplifies subsequent processing using Umbrello's native import framework.
- Parameters
-
line the line to preprocess
- Returns
- success status of operation
Reimplemented from NativeImportBase.
Definition at line 67 of file pythonimport.cpp.
|
protected |
Skip ahead to outermost closing brace.
- Returns
- body contents skipped
Definition at line 168 of file pythonimport.cpp.
Member Data Documentation
|
protected |
Flag denoting the opening of a block.
Definition at line 51 of file pythonimport.h.
|
protected |
Buffer for number of indentation characters (whitespace, i.e.
tabs or spaces) at beginning of input line.
Definition at line 44 of file pythonimport.h.
|
protected |
Index for m_srcIndent[].
Index 0 is reserved and contains 0.
Definition at line 49 of file pythonimport.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.