class DirectoryResults extends java.lang.Object
Represents the results for a directory
| Type | Name and description |
|---|---|
int |
numberOfFilesInThisDirectory |
| Constructor and description |
|---|
DirectoryResults
()Create a new uninitialized instance |
DirectoryResults
(java.lang.String path)Create a new instance with the specified path |
DirectoryResults
(java.lang.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(java.lang.String path)Return the Results object with the specified path within this directory or its descendents. |
|
java.util.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 |
|
java.lang.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 |
|
java.util.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) |
|
void |
removeViolation(Violation v) |
|
java.lang.String |
toString() |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
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