class DirectoryResults
Represents the results for a directory
Type | Name and description |
---|---|
int |
numberOfFilesInThisDirectory |
Constructor and description |
---|
DirectoryResults
() Create a new uninitialized instance |
DirectoryResults
(String path) Create a new instance with the specified path |
DirectoryResults
(String path, int numberOfFilesInThisDirectory) Create a new instance with the specified path and number of files in the directory |
Type Params | Return Type | Name and description |
---|---|---|
|
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(int maxPriority, 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 |
getViolations() @return the List of all violations; may be empty |
|
boolean |
isFile() @return false (this object does not represents the results for a single file) |
|
String |
toString() |
Create a new uninitialized instance
Create a new instance with the specified path
path
- - the pathCreate a new instance with the specified path and number of files in the directory
Return the Results object with the specified path within this directory or its descendents.
path
- - the path to search for
Return the number of files with violations
maxPriority
- - the maximum priority level; ignore violations with priority greater than thisrecursive
- - true if the returned count should include subdirectories as well; defaults to trueReturn the number of violations with the specified priority
recursive
- - true if the returned count should include subdirectories as well; defaults to true
Return the total number of (Groovy) files analyzed
recursive
- - true if the returned count should include subdirectories as well
Groovy Documentation