org.argouml.uml.reveng.java
Class JavaImport
java.lang.Object
org.argouml.uml.reveng.FileImportSupport
org.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 Logger |
LOG
logger |
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 |
LOG
private static final Logger LOG
- logger
JavaImport
public JavaImport()
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 projecto
- the objectdiagram
- the diagram interfacetheImport
- 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()