org.argouml.uml.reveng.java
Class JavaImport

java.lang.Object
  extended byorg.argouml.uml.reveng.FileImportSupport
      extended byorg.argouml.uml.reveng.java.JavaImport
All Implemented Interfaces:
ArgoModule, Pluggable, PluggableImport

public class JavaImport
extends FileImportSupport

This is the main class for Java reverse engineering. It's based on the Antlr Java example.


Nested Class Summary
 
Nested classes inherited from class org.argouml.uml.reveng.FileImportSupport
 
Field Summary
private static Logger LOG
          logger
 
Fields inherited from class org.argouml.uml.reveng.FileImportSupport
 
Fields inherited from interface org.argouml.application.api.Pluggable
PLUGIN_PREFIX, PLUGIN_TITLE, PLUGIN_VENDOR
 
Fields inherited from interface org.argouml.application.api.ArgoModule
MODULEFILENAME, MODULEFILENAME_ALTERNATE
 
Constructor Summary
JavaImport()
           
 
Method Summary
 String getModuleDescription()
          Textual description of the module.
 String getModuleKey()
          The module identifying key.
 String getModuleName()
          Display name of the module.
 SuffixFilter[] getSuffixFilters()
          Provides an array of suffix filters for the module.
 void parseFile(Project p, Object o, DiagramInterface diagram, Import theImport)
          This method parses 1 Java file.
 
Methods inherited from class org.argouml.uml.reveng.FileImportSupport
getAttribute, getChooser, getConfigPanel, getDatatype, getLayout, getList, getModuleAuthor, getModulePopUpActions, getModuleVersion, inContext, initializeModule, isModuleEnabled, isParseable, setModuleEnabled, shutdownModule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final Logger LOG
logger

Constructor Detail

JavaImport

public JavaImport()
Method Detail

parseFile

public void parseFile(Project p,
                      Object o,
                      DiagramInterface diagram,
                      Import theImport)
               throws Exception
This method parses 1 Java file. Throws a Parser exception.

Specified by:
parseFile in interface PluggableImport
Overrides:
parseFile in class FileImportSupport
Parameters:
p - the project
o - the object
diagram - the diagram interface
theImport - the import
Throws:
Exception - Parser exception.
See Also:
PluggableImport.parseFile( org.argouml.kernel.Project, java.lang.Object, org.argouml.uml.reveng.DiagramInterface, org.argouml.uml.reveng.Import)

getSuffixFilters

public SuffixFilter[] getSuffixFilters()
Provides an array of suffix filters for the module.

Specified by:
getSuffixFilters in class FileImportSupport
Returns:
SuffixFilter[] files with these suffixes will be processed.

getModuleName

public String getModuleName()
Display name of the module.

Returns:
the module name
See Also:
ArgoModule.getModuleName()

getModuleDescription

public String getModuleDescription()
Textual description of the module.

Returns:
the module description
See Also:
ArgoModule.getModuleDescription()

getModuleKey

public String getModuleKey()
Description copied from interface: ArgoModule
The module identifying key.

Returns:
the string key the module uses to identify itself
See Also:
ArgoModule.getModuleKey()


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook