|
umbrello 2.32.3
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
|
#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 | importFiles (const QStringList &fileNames) |
| bool | importFile (const QString &fileName) |
| void | setRootPath (const QString &path) |
| bool | enabled () const |
Protected Member Functions | |
| void | initVars () |
| bool | parseInitializer (const QString &keyword, QString &type, QString &value) |
| bool | parseAssignmentStmt (const QString &keyword) |
| bool | parseMethodParameters (UMLOperation *op) |
| bool | parseStmt () |
| void | fillSource (const QString &line) |
| bool | preprocess (QString &line) |
| QString | indentation (int level) |
| QString | skipBody () |
Protected Member Functions inherited from NativeImportBase | |
| void | initialize () |
| void | setMultiLineComment (const QString &intro, const QString &end) |
| void | setMultiLineAltComment (const QString &intro, const QString &end) |
| virtual bool | parseFile (const QString &filename) |
| virtual void | initVars () |
| void | scan (const QString &line) |
| virtual bool | preprocess (QString &line) |
| virtual QStringList | split (const QString &line) |
| virtual void | fillSource (const QString &word)=0 |
| virtual bool | parseStmt ()=0 |
| void | skipStmt (const QString &until=QLatin1String(";")) |
| bool | skipToClosing (QChar opener) |
| QString | lookAhead () |
| virtual QString | advance () |
| void | pushScope (UMLPackage *p) |
| UMLPackage * | popScope () |
| UMLPackage * | currentScope () |
| int | scopeIndex () |
Protected Member Functions inherited from ClassImport | |
| virtual void | initialize ()=0 |
| virtual void | initPerFile () |
| virtual bool | parseFile (const QString &fileName)=0 |
| void | log (const QString &file, const QString &text) |
| void | log (const QString &text) |
Protected Attributes | |
| int | m_srcIndent [100] |
| int | m_srcIndentIndex |
| bool | m_braceWasOpened |
| Flag denoting the opening of a block. More... | |
| bool | m_isStatic |
| Flag denoting staticness of defined method. More... | |
Protected Attributes inherited from NativeImportBase | |
| QString | m_singleLineCommentIntro |
| start token of a single line comment More... | |
| QStringList | m_source |
| the scanned lexemes More... | |
| int | m_srcIndex |
| used for indexing m_source More... | |
| QList< UMLPackage * > | m_scope |
| stack of scopes for use by the specific importer More... | |
| UMLClassifier * | m_klass |
| class currently being processed More... | |
| Uml::Visibility::Enum | m_currentAccess |
| current access (public/protected/private) More... | |
| QString | m_comment |
| intermediate accumulator for comment text More... | |
| bool | m_inComment |
| bool | m_isAbstract |
| accumulator for abstractness More... | |
| QString | m_multiLineCommentIntro |
| multi line comment delimiter intro More... | |
| QString | m_multiLineCommentEnd |
| multi line comment delimiter end More... | |
| QString | m_multiLineAltCommentIntro |
| QString | m_multiLineAltCommentEnd |
Protected Attributes inherited from ClassImport | |
| CodeImpThread * | m_thread |
| thread in which the work of importing is done More... | |
| bool | m_enabled |
| state of importer More... | |
| QString | m_rootPath |
| root path of import More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from ClassImport | |
| static ClassImport * | createImporterByFileExt (const QString &fileName, CodeImpThread *thread=0) |
Static Protected Attributes inherited from NativeImportBase | |
| static QStringList | m_parsedFiles |
Python code import
|
explicit |
Constructor.
|
virtual |
Destructor.
|
protectedvirtual |
Implement abstract operation from NativeImportBase.
| word | whitespace delimited item |
Implements NativeImportBase.
|
protected |
Return an amount of spaces that corresponds to
| level |
|
protectedvirtual |
Reimplement operation from NativeImportBase.
Reimplemented from NativeImportBase.
|
protected |
Parse assignments in the form <identifier> '=' <value> Instance variables are identified by a prefixed 'self.'.
| keyword | current string from parser |
|
protected |
Parses a python initializer
| _keyword | current string from parser |
| type | returns type of assignment |
| value | returns assignment value |
|
protected |
Parses method parameter list
| op | UMLOperation instance to add parameter |
|
protectedvirtual |
Implement abstract operation from NativeImportBase.
Implements NativeImportBase.
|
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.
| line | the line to preprocess |
Reimplemented from NativeImportBase.
|
protected |
Skip ahead to outermost closing brace.
|
protected |
Flag denoting the opening of a block.
|
protected |
Flag denoting staticness of defined method.
|
protected |
Buffer for number of indentation characters (whitespace, i.e. tabs or spaces) at beginning of input line.
|
protected |
Index for m_srcIndent[]. Index 0 is reserved and contains 0.