@java.lang.SuppressWarnings('UnusedMethodParameter')
class FileResults
extends java.lang.Object
Represents the results of applying a set of rules against a single sourcefile
| Constructor and description |
|---|
FileResults
(java.lang.String path, java.util.List violations) |
FileResults
(java.lang.String path, java.util.List violations, SourceCode sourceCode) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
Results |
findResultsForPath(java.lang.String path)Return the Results object with the specified path. |
|
java.util.List |
getChildren()Return an empty List |
|
int |
getNumberOfFilesWithViolations(int maxPriority, boolean recursive = true)Return 1 if these results include at least one violation |
|
int |
getNumberOfViolationsWithPriority(int priority, boolean recursive = true)@param recursive - ignored |
|
java.lang.String |
getPath()@return the path to the file or directory associated with these results |
|
java.util.List |
getRawViolations()Not intended for general use |
|
int |
getTotalNumberOfFiles(boolean recursive = true)Return the total number of (Groovy) files analyzed |
|
java.util.List |
getViolations()@return the List of all violations |
|
boolean |
isFile()@return true (this object 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() |
Return the Results object with the specified path.
path - - the path to search forReturn an empty List
Return 1 if these results include at least one violation
maxPriority - - the maximum priority level; ignore violations with priority greater than thisrecursive - - ignored
recursive - - ignored
Not intended for general use
Return the total number of (Groovy) files analyzed
recursive - - ignored