Package org.codenarc.results
Class VirtualResults
- java.lang.Object
-
- org.codenarc.results.VirtualResults
-
-
Constructor Summary
Constructors Constructor Description VirtualResults(java.util.List violations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Results
findResultsForPath(java.lang.String path)
java.util.List
getChildren()
groovy.lang.MetaClass
getMetaClass()
int
getNumberOfFilesWithViolations(int maxPriority, boolean recursive)
int
getNumberOfViolationsWithPriority(int priority, boolean recursive)
java.lang.String
getPath()
java.lang.Object
getProperty(java.lang.String property)
int
getTotalNumberOfFiles(boolean recursive)
java.util.List
getViolations()
java.lang.Object
invokeMethod(java.lang.String method, java.lang.Object arguments)
boolean
isFile()
void
removeViolation(Violation v)
void
setMetaClass(groovy.lang.MetaClass mc)
void
setProperty(java.lang.String property, java.lang.Object value)
-
-
-
Method Detail
-
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
public java.lang.Object invokeMethod(java.lang.String method, java.lang.Object arguments)
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
-
getProperty
public java.lang.Object getProperty(java.lang.String property)
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
-
setProperty
public void setProperty(java.lang.String property, java.lang.Object value)
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
-
getViolations
public java.util.List getViolations()
- Specified by:
getViolations
in interfaceResults
-
getChildren
public java.util.List getChildren()
- Specified by:
getChildren
in interfaceResults
-
removeViolation
public void removeViolation(Violation v)
- 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
-
findResultsForPath
public Results findResultsForPath(java.lang.String path)
- Specified by:
findResultsForPath
in interfaceResults
-
-