org.hackystat.sensor.ant.jdepend
Class Package2Path

java.lang.Object
  extended by org.hackystat.sensor.ant.jdepend.Package2Path

public class Package2Path
extends java.lang.Object

A utility for determining the file path associated with a package.

Author:
Philip Johnson

Constructor Summary
Package2Path(java.util.List<java.io.File> sourceFiles)
          Constructs a new Package2Path instance from a list of source file paths.
 
Method Summary
 java.lang.String getPath(java.lang.String packageString)
          Returns the source path associated with the package prefix, or null if not found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Package2Path

public Package2Path(java.util.List<java.io.File> sourceFiles)
Constructs a new Package2Path instance from a list of source file paths.

Parameters:
sourceFiles - The source files from which the package paths are constructed.
Method Detail

getPath

public java.lang.String getPath(java.lang.String packageString)
Returns the source path associated with the package prefix, or null if not found.

Parameters:
packageString - A string such as "foo.bar.baz"
Returns:
The corresponding path, such as "C:\foo\bar\baz", or null if it was not found.