Package org.codenarc.results
Class VirtualResults
java.lang.Object
org.codenarc.results.VirtualResults
- All Implemented Interfaces:
groovy.lang.GroovyObject
,Results
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindResultsForPath
(String path) groovy.lang.MetaClass
int
getNumberOfFilesWithViolations
(int maxPriority, boolean recursive) int
getNumberOfViolationsWithPriority
(int priority, boolean recursive) getPath()
getProperty
(String property) int
getTotalNumberOfFiles
(boolean recursive) invokeMethod
(String method, Object arguments) boolean
isFile()
void
void
setMetaClass
(groovy.lang.MetaClass mc) void
setProperty
(String property, Object value)
-
Constructor Details
-
VirtualResults
-
-
Method Details
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()- Specified by:
getMetaClass
in interfacegroovy.lang.GroovyObject
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc) - Specified by:
setMetaClass
in interfacegroovy.lang.GroovyObject
-
invokeMethod
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
-
getProperty
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
-
setProperty
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
-
getViolations
- Specified by:
getViolations
in interfaceResults
-
getPath
-
getChildren
- Specified by:
getChildren
in interfaceResults
-
removeViolation
- Specified by:
removeViolation
in interfaceResults
-
getNumberOfViolationsWithPriority
public int getNumberOfViolationsWithPriority(int priority, boolean recursive) - Specified by:
getNumberOfViolationsWithPriority
in interfaceResults
-
getTotalNumberOfFiles
public int getTotalNumberOfFiles(boolean recursive) - Specified by:
getTotalNumberOfFiles
in interfaceResults
-
getNumberOfFilesWithViolations
public int getNumberOfFilesWithViolations(int maxPriority, boolean recursive) - Specified by:
getNumberOfFilesWithViolations
in interfaceResults
-
isFile
public boolean isFile() -
findResultsForPath
- Specified by:
findResultsForPath
in interfaceResults
-