#include <csvalaimportbase.h>
Base class for C# and Vala code import. 
- Author
- Andi Fischer (copied from JavaImport) Bugs and comments to umbre.nosp@m.llo-.nosp@m.devel.nosp@m.@kde.nosp@m..org or https://bugs.kde.org 
◆ CsValaImportBase()
  
  | 
        
          | CsValaImportBase::CsValaImportBase | ( | CodeImpThread * | thread = nullptr | ) |  |  | explicit | 
 
 
◆ ~CsValaImportBase()
  
  | 
        
          | CsValaImportBase::~CsValaImportBase | ( |  | ) |  |  | virtual | 
 
 
◆ fileExtension()
  
  | 
        
          | QString CsValaImportBase::fileExtension | ( |  | ) |  |  | virtual | 
 
 
◆ fillSource()
  
  | 
        
          | void CsValaImportBase::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 CsValaImportBase::initVars | ( |  | ) |  |  | protectedvirtual | 
 
 
◆ isClassModifier()
  
  | 
        
          | bool CsValaImportBase::isClassModifier | ( | const QString & | keyword | ) |  |  | private | 
 
Check if keyword is a class-modifier. 
- Returns
- result of check 
 
 
◆ isCommonModifier()
  
  | 
        
          | bool CsValaImportBase::isCommonModifier | ( | const QString & | keyword | ) |  |  | private | 
 
Check if keyword is an interface, struct, enum or delegate modifier. 
- Returns
- result of check 
 
 
◆ isTypeDeclaration()
  
  | 
        
          | bool CsValaImportBase::isTypeDeclaration | ( | const QString & | keyword | ) |  |  | private | 
 
Check if keyword is belonging to a type-declaration. 
- Returns
- result of check 
 
 
◆ joinTypename()
  
  | 
        
          | QString CsValaImportBase::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 
 
 
◆ parseAttributes()
  
  | 
        
          | bool CsValaImportBase::parseAttributes | ( |  | ) |  |  | private | 
 
Parsing attributes. 
- Returns
- success status of parsing 
 
 
◆ parseClassDeclaration()
  
  | 
        
          | bool CsValaImportBase::parseClassDeclaration | ( | const QString & | keyword | ) |  |  | private | 
 
Parsing the statement 'class' or 'interface'. 
- Returns
- success status of parsing 
 
 
◆ parseDelegateDeclaration()
  
  | 
        
          | bool CsValaImportBase::parseDelegateDeclaration | ( |  | ) |  |  | private | 
 
Parsing a delegate-declaration. 
- Returns
- success status of parsing 
 
 
◆ parseEnumDeclaration()
  
  | 
        
          | bool CsValaImportBase::parseEnumDeclaration | ( |  | ) |  |  | private | 
 
Parsing the statement 'enum'. 
- Returns
- success status of parsing 
 
 
◆ parseFile()
  
  | 
        
          | bool CsValaImportBase::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.
 
 
◆ parseGlobalAttributes()
  
  | 
        
          | bool CsValaImportBase::parseGlobalAttributes | ( |  | ) |  |  | private | 
 
Parsing global attributes. 
- Returns
- success status of parsing 
 
 
◆ parseNamespaceMemberDeclarations()
  
  | 
        
          | bool CsValaImportBase::parseNamespaceMemberDeclarations | ( |  | ) |  |  | private | 
 
Parsing the statement 'namespace'. 
- Returns
- success status of parsing 
 
 
◆ parseStmt()
  
  | 
        
          | bool CsValaImportBase::parseStmt | ( |  | ) |  |  | protectedvirtual | 
 
Implement abstract operation from NativeImportBase. compilation-unit: using-directives? global-attributes? namespace-member-declarations? 
- Returns
- success status of operation 
Implements NativeImportBase.
 
 
◆ parseStructDeclaration()
  
  | 
        
          | bool CsValaImportBase::parseStructDeclaration | ( |  | ) |  |  | private | 
 
Parsing a struct-declaration. 
- Returns
- success status of parsing 
 
 
◆ parseUsingDirectives()
  
  | 
        
          | bool CsValaImportBase::parseUsingDirectives | ( |  | ) |  |  | private | 
 
Parsing the statement 'using'. Keep track of imports so we can resolve classes we are dependent on. 
- Returns
- success status of parsing 
 
 
◆ preprocess()
  
  | 
        
          | bool CsValaImportBase::preprocess | ( | QString & | line | ) |  |  | protectedvirtual | 
 
 
◆ resolveClass()
  
  | 
        
          | UMLObject * CsValaImportBase::resolveClass | ( | const QString & | className | ) |  |  | protected | 
 
Try to resolve the specified class the current class depends on. 
- Parameters
- 
  
    | className | the name of the class |  
 
 
 
◆ spawnImport()
  
  | 
        
          | void CsValaImportBase::spawnImport | ( | const QString & | file | ) |  |  | protected | 
 
Spawn off an import of the specified file. 
- Parameters
- 
  
  
 
 
◆ m_currentFileName
  
  | 
        
          | QString CsValaImportBase::m_currentFileName |  | protected | 
 
current filename being parsed 
 
 
◆ m_currentPackage
  
  | 
        
          | QString CsValaImportBase::m_currentPackage |  | protected | 
 
current package of the file being parsed 
 
 
◆ m_defaultCurrentAccess
current visibility for when the visibility is absent 
 
 
◆ m_imports
  
  | 
        
          | QStringList CsValaImportBase::m_imports |  | protected | 
 
imports included in the current file 
 
 
◆ m_isStatic
  
  | 
        
          | bool CsValaImportBase::m_isStatic |  | protected | 
 
static flag for the member var or method 
 
 
◆ m_language
required for language specific suport 
 
 
◆ s_filesAlreadyParsed
  
  | 
        
          | QStringList CsValaImportBase::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 CsValaImportBase::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: