#include <javacsvalaimportbase.h>
Base class for Java, C# and Vala code import.
- Author
- Oliver Kellogg Bugs and comments to umbre.nosp@m.llo-.nosp@m.devel.nosp@m.@kde.nosp@m..org or https://bugs.kde.org
◆ JavaCsValaImportBase()
JavaCsValaImportBase::JavaCsValaImportBase |
( |
CodeImpThread * |
thread = nullptr | ) |
|
|
explicit |
◆ ~JavaCsValaImportBase()
virtual JavaCsValaImportBase::~JavaCsValaImportBase |
( |
| ) |
|
|
inlinevirtual |
◆ fileExtension()
virtual QString JavaCsValaImportBase::fileExtension |
( |
| ) |
|
|
pure virtual |
◆ fillSource()
void JavaCsValaImportBase::fillSource |
( |
const QString & |
word | ) |
|
|
protectedvirtual |
◆ findObject()
Returns the UML Object if found, or null otherwise.
- Parameters
-
name | name of the uml object |
parentPkg | parent package |
- Returns
- null or the uml objecct
◆ initVars()
void JavaCsValaImportBase::initVars |
( |
| ) |
|
|
protectedvirtual |
◆ joinTypename()
QString JavaCsValaImportBase::joinTypename |
( |
const QString & |
typeName | ) |
|
|
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
-
- Returns
- the type name with the additional information
◆ parseClassDeclaration()
bool JavaCsValaImportBase::parseClassDeclaration |
( |
const QString & |
keyword | ) |
|
|
protected |
◆ parseEnumDeclaration()
bool JavaCsValaImportBase::parseEnumDeclaration |
( |
| ) |
|
|
protected |
◆ parseFile()
bool JavaCsValaImportBase::parseFile |
( |
const QString & |
filename | ) |
|
|
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.
◆ resolveClass()
UMLObject * JavaCsValaImportBase::resolveClass |
( |
const QString & |
className | ) |
|
|
protected |
Try to resolve the specified class the current class depends on.
- Parameters
-
className | the name of the class |
◆ spawnImport()
virtual void JavaCsValaImportBase::spawnImport |
( |
const QString & |
file | ) |
|
|
protectedpure virtual |
◆ m_currentFileName
QString JavaCsValaImportBase::m_currentFileName |
|
protected |
current filename being parsed
◆ m_currentPackage
QString JavaCsValaImportBase::m_currentPackage |
|
protected |
current package of the file being parsed
◆ m_defaultCurrentAccess
current visibility for when the visibility is absent
◆ m_imports
QStringList JavaCsValaImportBase::m_imports |
|
protected |
imports included in the current file
◆ m_isStatic
bool JavaCsValaImportBase::m_isStatic |
|
protected |
static flag for the member var or method
◆ m_language
required for language specific suport
◆ s_filesAlreadyParsed
QStringList JavaCsValaImportBase::s_filesAlreadyParsed |
|
staticprotected |
Keep track of the files we have already parsed so we don't reparse the same ones over and over again.
◆ s_parseDepth
int JavaCsValaImportBase::s_parseDepth = 0 |
|
staticprotected |
Keep track of the parses so that the filesAlreadyParsed can be reset when we're done.
The documentation for this class was generated from the following files: