• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdesdk
  • Sitemap
  • Contact Us
 

umbrello/umbrello

JavaImport Class Reference

Java code import. More...

#include <javaimport.h>

Inheritance diagram for JavaImport:

Inheritance graph
[legend]

List of all members.


Public Member Functions

 JavaImport ()
virtual ~JavaImport ()

Protected Member Functions

void fillSource (const QString &word)
void initVars ()
QString joinTypename (QString typeName)
void parseFile (const QString &filename)
bool parseStmt ()
UMLObject * resolveClass (QString className)
void spawnImport (QString file)

Protected Attributes

QString m_currentFileName
QString m_currentPackage
Uml::Visibility m_defaultCurrentAccess
QStringList m_imports
bool m_isStatic

Static Protected Attributes

static QStringList s_filesAlreadyParsed
static int s_parseDepth = 0

Detailed Description

Java code import.

Author:
Oliver Kellogg

JP Fournier Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org

Definition at line 24 of file javaimport.h.


Constructor & Destructor Documentation

JavaImport::JavaImport (  ) 

Definition at line 37 of file javaimport.cpp.

JavaImport::~JavaImport (  )  [virtual]

Definition at line 43 of file javaimport.cpp.


Member Function Documentation

void JavaImport::fillSource ( const QString &  word  )  [protected, virtual]

Implement abstract operation from NativeImportBase.

Implements NativeImportBase.

Definition at line 71 of file javaimport.cpp.

void JavaImport::initVars (  )  [protected, virtual]

Reimplement operation from NativeImportBase.

Reimplemented from NativeImportBase.

Definition at line 47 of file javaimport.cpp.

QString JavaImport::joinTypename ( 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.

Definition at line 53 of file javaimport.cpp.

void JavaImport::parseFile ( const QString &  filename  )  [protected, virtual]

Keep track of the filename currently being parsed.

keep track of the current file being parsed and reset the list of imports

Reimplemented from NativeImportBase.

Definition at line 207 of file javaimport.cpp.

bool JavaImport::parseStmt (  )  [protected, virtual]

Implement abstract operation from NativeImportBase.

Implements NativeImportBase.

Definition at line 229 of file javaimport.cpp.

UMLObject * JavaImport::resolveClass ( QString  className  )  [protected]

Try to resolve the specified class the current class depends on.

Resolve the specified className.

Definition at line 118 of file javaimport.cpp.

void JavaImport::spawnImport ( QString  file  )  [protected]

spawn off an import of the specified file

Spawn off an import of the specified file.

Definition at line 92 of file javaimport.cpp.


Member Data Documentation

QString JavaImport::m_currentFileName [protected]

The current filename being parsed.

Definition at line 73 of file javaimport.h.

QString JavaImport::m_currentPackage [protected]

the current package of the file being parsed

Definition at line 78 of file javaimport.h.

Uml::Visibility JavaImport::m_defaultCurrentAccess [protected]

The current visibility for when the visibility is absent.

Definition at line 100 of file javaimport.h.

QStringList JavaImport::m_imports [protected]

the imports included in the current file

Definition at line 83 of file javaimport.h.

bool JavaImport::m_isStatic [protected]

true if the member var or method is declared static

Definition at line 68 of file javaimport.h.

QStringList JavaImport::s_filesAlreadyParsed [static, protected]

Keep track of the files we have already parsed so we don't reparse the same ones over and over again.

Definition at line 89 of file javaimport.h.

int JavaImport::s_parseDepth = 0 [static, protected]

Keep track of the parses so that the filesAlreadyParsed can be reset when we're done.

Definition at line 95 of file javaimport.h.


The documentation for this class was generated from the following files:
  • javaimport.h
  • javaimport.cpp

umbrello/umbrello

Skip menu "umbrello/umbrello"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdesdk

Skip menu "kdesdk"
  • kapptemplate
  • kate
  •     kate
  • kbugbuster
  • kcachegrind
  • kompare
  • lokalize
  • umbrello
  •   umbrello
Generated for kdesdk by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal