org.designwizard.extractor.asm
Class ASMExtractor

java.lang.Object
  extended by org.designwizard.extractor.asm.ASMExtractor
All Implemented Interfaces:
Extractor

public class ASMExtractor
extends java.lang.Object
implements Extractor


Constructor Summary
ASMExtractor()
           
 
Method Summary
 void addListener(ExtractionListener manager)
          Adds a listener that is interested in this extractor.
 void processClass(java.lang.String classFilePath)
          Extracts facts from the given .class file.
 void processDir(java.lang.String fileName)
          Extracts from the specified directory file with the specified directoryPath.
 void processEar(java.lang.String pathOfEarFile, java.lang.String... internalPath)
          Extracts from the ear file with the specified pathOfEarFile.
 void processJar(java.lang.String fileName)
          Extracts facts from the jar file with the specified pathOfJarFile.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASMExtractor

public ASMExtractor()
Method Detail

processJar

public void processJar(java.lang.String fileName)
                throws java.io.IOException
Description copied from interface: Extractor
Extracts facts from the jar file with the specified pathOfJarFile.

Specified by:
processJar in interface Extractor
Parameters:
fileName - The path of the jar file.
Throws:
java.io.IOException - If an I/O error occurs.

processDir

public void processDir(java.lang.String fileName)
                throws java.io.IOException
Description copied from interface: Extractor
Extracts from the specified directory file with the specified directoryPath.

Specified by:
processDir in interface Extractor
Parameters:
fileName - The path of the directory.
Throws:
java.io.IOException - If an I/O error occurs.

addListener

public void addListener(ExtractionListener manager)
Description copied from interface: Extractor
Adds a listener that is interested in this extractor.

Specified by:
addListener in interface Extractor
Parameters:
manager - The extraction listener.

processEar

public void processEar(java.lang.String pathOfEarFile,
                       java.lang.String... internalPath)
                throws java.io.IOException
Description copied from interface: Extractor
Extracts from the ear file with the specified pathOfEarFile.

Specified by:
processEar in interface Extractor
Parameters:
pathOfEarFile - The path of the ear file.
Throws:
java.io.IOException - If an I/O error occurs.

processClass

public void processClass(java.lang.String classFilePath)
                  throws java.io.IOException
Description copied from interface: Extractor
Extracts facts from the given .class file.

Specified by:
processClass in interface Extractor
Parameters:
classFilePath - The path of the .class file.
Throws:
java.io.IOException