org.kit.furia.fragment.asm
Class FragmentExtractorASM

java.lang.Object
  extended by org.kit.furia.fragment.AbstractFragmentExtractor
      extended by org.kit.furia.fragment.asm.FragmentExtractorASM
All Implemented Interfaces:
FragmentExtractor

public class FragmentExtractorASM
extends AbstractFragmentExtractor


Constructor Summary
FragmentExtractorASM()
           
 
Method Summary
 void extractMethodsFromDirectory(java.lang.String directory, int maxStructuresAllowed, int minStructuresAllowed, java.lang.String outputPath, java.lang.String outputFile)
          Extracts fragments from the given directory.
protected  void processClass(java.io.File f, java.util.HashMap<java.lang.String,IntegerHolder> fragments, int max)
           
protected  java.lang.String toString(FValue x, int max)
           
 
Methods inherited from class org.kit.furia.fragment.AbstractFragmentExtractor
getClassFiles, getClassFiles
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FragmentExtractorASM

public FragmentExtractorASM()
Method Detail

extractMethodsFromDirectory

public void extractMethodsFromDirectory(java.lang.String directory,
                                        int maxStructuresAllowed,
                                        int minStructuresAllowed,
                                        java.lang.String outputPath,
                                        java.lang.String outputFile)
                                 throws java.io.FileNotFoundException,
                                        NoClassesFound,
                                        java.io.IOException,
                                        IRException,
                                        FragmentParseException
Description copied from interface: FragmentExtractor
Extracts fragments from the given directory. Furia-chan's fragment file format is: \t\n where is a string representation of an integer and is a string representation of a tree (for example: a(b,c))

Parameters:
directory - Directory from where we will extract fragments.
maxStructuresAllowed - Maximum nodes per tree.
minStructuresAllowed - Minimum nodes per tree.
outputPath - Output path where logs will be written.
outputFile - The file where the fragments will be stored.
Throws:
java.io.FileNotFoundException - If the input or output files cannot be found.
NoClassesFound - If no classes were found.
java.io.IOException - If an IO error occurs.
IRException - If some other error occurs it will be wrapped on this exception.
FragmentParseException - If a fragment is not generated properly, this exception will be thrown. For debugging purposes.

toString

protected java.lang.String toString(FValue x,
                                    int max)
                             throws HugeFragmentException
Throws:
HugeFragmentException

processClass

protected void processClass(java.io.File f,
                            java.util.HashMap<java.lang.String,IntegerHolder> fragments,
                            int max)
                     throws java.io.IOException
Throws:
java.io.IOException


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