|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD | |||||||
java.lang.Objectorg.codenarc.results.DirectoryResults
class DirectoryResults
Represents the results for a directory
| Property Summary | |
|---|---|
int |
numberOfFilesInThisDirectory
|
| Constructor Summary | |
DirectoryResults()
Create a new uninitialized instance |
|
DirectoryResults(String path)
Create a new instance with the specified path |
|
| Method Summary | |
|---|---|
void
|
addChild(Results child)
|
Results
|
findResultsForPath(String path)
Return the Results object with the specified path within this directory or its descendents. |
List
|
getChildren()
@return the List of child Results objects; may be empty |
int
|
getNumberOfFilesWithViolations(boolean recursive = true)
Return the number of files with violations |
int
|
getNumberOfViolationsWithPriority(int priority, boolean recursive = true)
Return the number of violations with the specified priority |
String
|
getPath()
@return the path to the file or directory associated with these results |
int
|
getTotalNumberOfFiles(boolean recursive = true)
Return the total number of (Groovy) files analyzed |
List
|
getViolationsWithPriority(int priority)
@return the List of violations with the specified priority; may be empty |
boolean
|
isFile()
@return false (this object does not represents the results for a single file) |
String
|
toString()
|
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Property Detail |
|---|
int numberOfFilesInThisDirectory
| Constructor Detail |
|---|
DirectoryResults()
DirectoryResults(String path)
path - - the path
| Method Detail |
|---|
void addChild(Results child)
Results findResultsForPath(String path)
path - - the path to search for
List getChildren()
int getNumberOfFilesWithViolations(boolean recursive = true)
recursive - - true if the returned count should include subdirectories as well; defaults to true
int getNumberOfViolationsWithPriority(int priority, boolean recursive = true)
recursive - - true if the returned count should include subdirectories as well; defaults to true
String getPath()
int getTotalNumberOfFiles(boolean recursive = true)
recursive - - true if the returned count should include subdirectories as well
List getViolationsWithPriority(int priority)
boolean isFile()
String toString()
Groovy Documentation