|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.sensor.ant.util.JavaClass2FilePathMapper
public class JavaClass2FilePathMapper
Provides a facility for mapping fully qualified Java class names to their corresponding fully qualified Java source files. Also allows retrieval of the source directory corresponding to a package name.
Constructor Summary | |
---|---|
JavaClass2FilePathMapper(java.util.Collection<java.io.File> fullyQualifiedFileNames)
This constructor accepts a list of file names, and processes this list to build two parallel arrays. |
|
JavaClass2FilePathMapper(java.util.Set<java.lang.String> fullyQualifiedFileNames)
This constructor accepts a list of file names, and processes this list to build two parallel arrays. |
Method Summary | |
---|---|
java.lang.String |
getFilePath(java.lang.String fullyQualifiedClassName)
Returns a string containing the java file name corresponding to the passed class name. |
java.lang.String |
getPackagePath(java.lang.String packageName)
Returns the path associated with a package name. |
java.lang.String |
toString()
Returns the canonical file names array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JavaClass2FilePathMapper(java.util.Collection<java.io.File> fullyQualifiedFileNames)
fullyQualifiedFileNames
- A collection of string representing fully
qualified file paths or directory path for java files.public JavaClass2FilePathMapper(java.util.Set<java.lang.String> fullyQualifiedFileNames)
fullyQualifiedFileNames
- A collection of string representing fully
qualified file paths or directory path for java files.Method Detail |
---|
public java.lang.String getFilePath(java.lang.String fullyQualifiedClassName)
fullyQualifiedClassName
- The java class name.
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getPackagePath(java.lang.String packageName)
packageName
- the name of the package.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |