net.firstpartners.nounit.reader.bytecode
Class AbstractByteCodeSnippetFactory
java.lang.Object
|
+--net.firstpartners.nounit.reader.bytecode.AbstractByteCodeSnippetFactory
- All Implemented Interfaces:
- ISnippetFactory
- Direct Known Subclasses:
- ByteCodeCallsSnippetFactory, ByteCodeClassSnippetFactory, ByteCodeMethodSnippetFactory, ByteCodePackageSnippetFactory, ByteCodeProjectSnippetFactory
- public abstract class AbstractByteCodeSnippetFactory
- extends java.lang.Object
- implements ISnippetFactory
Implements ISnippetFactory for Convience of Subclasses
Method Summary |
protected java.util.HashMap |
cleanValues(java.util.HashMap dirtyValues)
Clean the Hashset of values to get useful names |
java.lang.String |
cleanValues(java.lang.String valueToClean)
Clean the Hashset of values to get useful names |
abstract Snippets |
getSnippets()
Get the Collection of Snippets (as read from the source) |
protected java.lang.String |
tidyNames(java.lang.String inString)
Tidy the Method and Class names |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractByteCodeSnippetFactory
public AbstractByteCodeSnippetFactory()
getSnippets
public abstract Snippets getSnippets()
throws NoUnitException
- Get the Collection of Snippets (as read from the source)
- Specified by:
getSnippets
in interface ISnippetFactory
- Returns:
- Snippets
cleanValues
protected java.util.HashMap cleanValues(java.util.HashMap dirtyValues)
- Clean the Hashset of values to get useful names
- Parameters:
dirtyValues
- to be cleaned- Returns:
- cleanValues - i.e. proper class names
cleanValues
public java.lang.String cleanValues(java.lang.String valueToClean)
- Clean the Hashset of values to get useful names
- Parameters:
valueToClean
- to be cleaned- Returns:
- valueToClean now with proper class names
tidyNames
protected java.lang.String tidyNames(java.lang.String inString)
- Tidy the Method and Class names
- Parameters:
inString
- to be tidied- Returns:
- String , tidied up