net.firstpartners.nounit.reader.bytecode
Class ByteCodeClassSnippetFactory

java.lang.Object
  |
  +--net.firstpartners.nounit.reader.bytecode.AbstractByteCodeSnippetFactory
        |
        +--net.firstpartners.nounit.reader.bytecode.ByteCodeClassSnippetFactory
All Implemented Interfaces:
ISnippetFactory

public class ByteCodeClassSnippetFactory
extends AbstractByteCodeSnippetFactory
implements ISnippetFactory

Reads Class Files (Byte Code) and returns them as snippets


Constructor Summary
ByteCodeClassSnippetFactory(java.io.File sourceFile)
          Constructor - Get (and store) source class file
ByteCodeClassSnippetFactory(java.lang.String sourceFile)
          Constructor - Get (and store) source class file
 
Method Summary
 Snippets getSnippets()
          Get a set of snippets from the current class source
 
Methods inherited from class net.firstpartners.nounit.reader.bytecode.AbstractByteCodeSnippetFactory
cleanValues, cleanValues, tidyNames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteCodeClassSnippetFactory

public ByteCodeClassSnippetFactory(java.io.File sourceFile)
Constructor - Get (and store) source class file
Parameters:
sourceFile - - Compiled Byte Code to read

ByteCodeClassSnippetFactory

public ByteCodeClassSnippetFactory(java.lang.String sourceFile)
Constructor - Get (and store) source class file
Parameters:
sourceFile - - Compiled Byte Code to read
Method Detail

getSnippets

public Snippets getSnippets()
                     throws NoUnitException
Get a set of snippets from the current class source
Specified by:
getSnippets in interface ISnippetFactory
Overrides:
getSnippets in class AbstractByteCodeSnippetFactory
Returns:
snippets Collection of ISnippets describing the file