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.


Field Summary
private static org.apache.log4j.Logger cat
          logger
 
Fields inherited from class org.argouml.uml.reveng.FileImportSupport
attribute, configPanel, datatype, separator, theFile
 
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
 java.lang.String getModuleDescription()
          Textual description of the module.
 java.lang.String getModuleKey()
          The module identifying key
 java.lang.String getModuleName()
          Display name of the module.
 SuffixFilter[] getSuffixFilters()
          Provides an array of suffix filters for the module.
 void parseFile(Project p, java.lang.Object o, DiagramInterface diagram, Import _import)
          This method parses 1 Java file.
 
Methods inherited from class org.argouml.uml.reveng.FileImportSupport
getChooser, getConfigPanel, 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

cat

private static org.apache.log4j.Logger cat
logger

Constructor Detail

JavaImport

public JavaImport()
Method Detail

parseFile

public void parseFile(Project p,
                      java.lang.Object o,
                      DiagramInterface diagram,
                      Import _import)
               throws java.lang.Exception
This method parses 1 Java file.

Specified by:
parseFile in interface PluggableImport
Overrides:
parseFile in class FileImportSupport
Throws:
java.lang.Exception - Parser exception.

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 java.lang.String getModuleName()
Display name of the module.

Returns:
the module name

getModuleDescription

public java.lang.String getModuleDescription()
Textual description of the module.

Returns:
the module description

getModuleKey

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

Returns:
the string key the module uses to identify itself


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