umbrello/umbrello
nativeimportbase.cpp
Go to the documentation of this file.
void clear()
void setMultiLineComment(const QString &intro, const QString &end)
Set the delimiter strings for a multi line comment.
Definition: nativeimportbase.cpp:59
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
virtual bool parseStmt()=0
Parse the statement which starts at m_source[m_srcIndex] leaving m_srcIndex pointing to the end of th...
This class contains the non-graphical information required for a UML Package.
Definition: package.h:32
QString & append(QChar ch)
void initialize()
Implement abstract operation from ClassImport.
Definition: nativeimportbase.cpp:490
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:313
QString readLine(qint64 maxlen)
QString m_multiLineAltCommentEnd
Definition: nativeimportbase.h:123
bool isAbsolute() const
void skipStmt(const QString &until=QLatin1String(";"))
Advance m_srcIndex until m_source[m_srcIndex] contains the lexeme given by `until'.
Definition: nativeimportbase.cpp:82
void log(const QString &file, const QString &text)
Write info to a logger or to the debug output.
Definition: classimport.cpp:105
QString & prepend(QChar ch)
bool contains(const QString &str, Qt::CaseSensitivity cs) const
Uml::Visibility::Enum m_currentAccess
current access (public/protected/private)
Definition: nativeimportbase.h:98
bool exists() const
QString & remove(int position, int n)
int size() const
void clear()
QList< UMLPackage * > m_scope
stack of scopes for use by the specific importer
Definition: nativeimportbase.h:96
QString number(int n, int base)
int count(const T &value) const
void append(const T &value)
QString m_multiLineAltCommentIntro
Some languages support an alternative set of multi line comment delimiters.
Definition: nativeimportbase.h:122
bool skipToClosing(QChar opener)
Advance m_srcIndex to the index of the corresponding closing character of the given opening...
Definition: nativeimportbase.cpp:97
bool atEnd() const
bool isEmpty() const
QString trimmed() const
QString advance()
Advance m_srcIndex until m_source[m_srcIndex] contains a non-comment.
Definition: nativeimportbase.cpp:187
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
QString m_multiLineCommentIntro
multi line comment delimiter intro
Definition: nativeimportbase.h:116
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
iterator end()
bool startsWith(const T &value) const
bool contains(QChar ch, Qt::CaseSensitivity cs) const
virtual qint64 size() const
Thread class that does the code import work for one file.
Definition: codeimpthread.h:35
Definition: basictypes.h:57
char toLatin1() const
virtual void close()
void addIncludePath(const QString &path)
Add a path to the include path list.
Definition: import_utils.cpp:608
T takeLast()
QString m_singleLineCommentIntro
start token of a single line comment
Definition: nativeimportbase.h:93
QString mid(int position, int n) const
Interfaces classparser library to uml models Abstract base for programming language specific import c...
Definition: classimport.h:25
T & last()
virtual void fillSource(const QString &word)=0
Analyze the given word and fill `m_source'.
typedef ConstIterator
int length() const
QString left(int n) const
void setMultiLineAltComment(const QString &intro, const QString &end)
Set the delimiter strings for an alternative form of multi line comment.
Definition: nativeimportbase.cpp:71
iterator begin()
bool m_inComment
True if we are currently in a multi-line comment.
Definition: nativeimportbase.h:105
QStringList includePathList()
Return the list of paths set by previous calls to addIncludePath() and the environment variable UMBRE...
Definition: import_utils.cpp:595
virtual bool parseFile(const QString &filename)
Import a single file.
Definition: nativeimportbase.cpp:406
NativeImportBase(const QString &singleLineCommentIntro, CodeImpThread *thread=0)
Constructor.
Definition: nativeimportbase.cpp:34
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.