|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.phoenix.report.ResourceInfo
public final class ResourceInfo
This class holds resource information about a Java class.
| Method Summary | |
|---|---|
static int |
countLinesOfCode(String fileName)
Returns the number of lines for the given file filename. |
boolean |
equals(Object obj)
|
String |
getClassname()
Returns the class name. |
int |
getLinesOfCode()
Returns the linesOfCode. |
String |
getPackage()
Returns the package. |
String |
getResourceName()
Returns the resourceName. |
String |
getSourcDir()
Returns the sourcDir. |
int |
hashCode()
|
static ResourceInfo |
lookup(String name)
Locates the resource with the given name. |
static ResourceInfo |
lookup(String packageName,
String className)
Searches the resource with the given class name and package. |
static ResourceInfo |
register(String name,
String pkg,
String sourceDir)
Registers the a new resource with the given parameters. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static ResourceInfo register(String name,
String pkg,
String sourceDir)
name - the name of the resource.pkg - the Java package of the resource.sourceDir - the source directory of the resource.
public static ResourceInfo lookup(String name)
name - resource name.
public static ResourceInfo lookup(String packageName,
String className)
packageName - resource package name.className - resource class name.
public static int countLinesOfCode(String fileName)
throws IOException,
FileNotFoundException
fileName - the name of the file.
IOException - in case of an I/O problem.
FileNotFoundException - in case the named file does
not exists or is a directory.public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic int getLinesOfCode()
public String getPackage()
public String getResourceName()
public String getSourcDir()
public String toString()
toString in class Objectpublic String getClassname()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||