umbrello API Documentation

JavaImport Class Reference

Java code import. More...

#include <javaimport.h>

Inheritance diagram for JavaImport:

NativeImportBase ClassImport List of all members.

Protected Member Functions

void initVars ()
 Reimplement operation from NativeImportBase.
bool parseStmt ()
 Implement abstract operation from NativeImportBase.
void fillSource (const QString &word)
 Implement abstract operation from NativeImportBase.
void parseFile (const QString &filename)
 Keep track of the filename currently being parsed.
UMLObjectresolveClass (QString className)
 Try to resolve the specified class the current class depends on.
void spawnImport (QString file)
 spawn off an import of the specified file
QString joinTypename (QString typeName)
 figure out if the type is really an array or template of the given typeName

Protected Attributes

bool m_isStatic
 true if the member var or method is declared static
QString m_currentFileName
 The current filename being parsed.
QString m_currentPackage
 the current package of the file being parsed
QStringList m_imports
 the imports included in the current file
Uml::Visibility m_defaultCurrentAccess
 The current visibility for when the visibility is absent.

Static Protected Attributes

static QStringList s_filesAlreadyParsed
 Keep track of the files we have already parsed so we don't reparse the same ones over and over again.
static int s_parseDepth = 0
 Keep track of the parses so that the filesAlreadyParsed can be reset when we're done.

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.


Member Function Documentation

void JavaImport::initVars  )  [protected, virtual]
 

Reimplement operation from NativeImportBase.

Reimplemented from NativeImportBase.

Definition at line 43 of file javaimport.cpp.

References m_isStatic.

bool JavaImport::parseStmt  )  [protected, virtual]
 

Implement abstract operation from NativeImportBase.

Implements NativeImportBase.

Definition at line 224 of file javaimport.cpp.

References Import_Utils::addEnumLiteral(), Import_Utils::addMethodParameter(), UMLClassifier::addTemplate(), NativeImportBase::advance(), Import_Utils::createGeneralization(), Import_Utils::createUMLObject(), UMLObject::getFullyQualifiedName(), UMLObject::getName(), Import_Utils::insertAttribute(), Import_Utils::insertMethod(), UMLClassifier::isInterface(), joinTypename(), m_currentPackage, m_defaultCurrentAccess, m_imports, m_isStatic, Import_Utils::makeOperation(), resolveClass(), UMLObject::setAbstract(), UMLClassifier::setBaseType(), UMLObject::setStatic(), UMLObject::setVisibility(), NativeImportBase::skipStmt(), and NativeImportBase::skipToClosing().

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

Implement abstract operation from NativeImportBase.

Implements NativeImportBase.

Definition at line 65 of file javaimport.cpp.

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

Keep track of the filename currently being parsed.

Reimplemented from NativeImportBase.

Definition at line 200 of file javaimport.cpp.

References m_currentFileName, m_defaultCurrentAccess, m_imports, NativeImportBase::parseFile(), s_filesAlreadyParsed, and s_parseDepth.

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

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

Definition at line 111 of file javaimport.cpp.

References Import_Utils::createUMLObject(), m_currentFileName, and spawnImport().

Referenced by parseStmt().

void JavaImport::spawnImport QString  file  )  [protected]
 

spawn off an import of the specified file

Definition at line 86 of file javaimport.cpp.

References ClassImport::importFiles(), and s_filesAlreadyParsed.

Referenced by resolveClass().

QString JavaImport::joinTypename QString  typeName  )  [protected]
 

figure out if the type is really an array or template of the given typeName

Definition at line 48 of file javaimport.cpp.

References NativeImportBase::skipToClosing().

Referenced by parseStmt().


Member Data Documentation

bool JavaImport::m_isStatic [protected]
 

true if the member var or method is declared static

Definition at line 68 of file javaimport.h.

Referenced by initVars(), and parseStmt().

QString JavaImport::m_currentFileName [protected]
 

The current filename being parsed.

Definition at line 73 of file javaimport.h.

Referenced by parseFile(), and resolveClass().

QString JavaImport::m_currentPackage [protected]
 

the current package of the file being parsed

Definition at line 78 of file javaimport.h.

Referenced by parseStmt().

QStringList JavaImport::m_imports [protected]
 

the imports included in the current file

Definition at line 83 of file javaimport.h.

Referenced by parseFile(), and parseStmt().

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 32 of file javaimport.cpp.

Referenced by parseFile(), and spawnImport().

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 33 of file javaimport.cpp.

Referenced by parseFile().

Uml::Visibility JavaImport::m_defaultCurrentAccess [protected]
 

The current visibility for when the visibility is absent.

Definition at line 100 of file javaimport.h.

Referenced by parseFile(), and parseStmt().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:08:05 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003