org.kit.furia.fragment
Class AbstractFragmentExtractor

java.lang.Object
  extended by org.kit.furia.fragment.AbstractFragmentExtractor
All Implemented Interfaces:
FragmentExtractor
Direct Known Subclasses:
FragmentExtractorASM, FragmentExtractorSoot

public abstract class AbstractFragmentExtractor
extends java.lang.Object
implements FragmentExtractor


Constructor Summary
AbstractFragmentExtractor()
           
 
Method Summary
protected  void getClassFiles(java.io.File directory, java.util.List<java.io.File> result)
          Receives a directory and returns all the class files found in it.
protected  void getClassFiles(java.io.File x, java.util.List<java.lang.String> output, java.lang.String dir)
          Iterates the given directory, and returns all the .class files found in it, if there are other directories.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kit.furia.fragment.FragmentExtractor
extractMethodsFromDirectory
 

Constructor Detail

AbstractFragmentExtractor

public AbstractFragmentExtractor()
Method Detail

getClassFiles

protected void getClassFiles(java.io.File directory,
                             java.util.List<java.io.File> result)
Receives a directory and returns all the class files found in it.

Parameters:
directory -
result - Returns all the files in the given folder

getClassFiles

protected void getClassFiles(java.io.File x,
                             java.util.List<java.lang.String> output,
                             java.lang.String dir)
Iterates the given directory, and returns all the .class files found in it, if there are other directories. iterates through all of them

Parameters:
x - the directory where we will take the classes from
output - A list where all the file names will be stored.
dir - The parent class file.


Copyright © 2008 Arnoldo Jose Muller Molina. All Rights Reserved.