org.codenarc.results
Class FileResults

java.lang.Object
  extended by org.codenarc.results.FileResults
All Implemented Interfaces:
groovy.lang.GroovyObject, Results

public class FileResults
extends Object
implements Results, groovy.lang.GroovyObject


Constructor Summary
FileResults(String path, List violations)
           
 
Method Summary
 Results findResultsForPath(String path)
           
 List getChildren()
           
 groovy.lang.MetaClass getMetaClass()
           
 int getNumberOfFilesWithViolations()
           
 int getNumberOfFilesWithViolations(boolean recursive)
           
 int getNumberOfViolationsWithPriority(int priority)
           
 int getNumberOfViolationsWithPriority(int priority, boolean recursive)
           
 String getPath()
           
 Object getProperty(String property)
           
 int getTotalNumberOfFiles()
           
 int getTotalNumberOfFiles(boolean recursive)
           
 List getViolations()
           
 Object invokeMethod(String method, Object arguments)
           
 boolean isFile()
           
 void setMetaClass(groovy.lang.MetaClass mc)
           
 void setProperty(String property, Object value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileResults

public FileResults(String path,
                   List violations)
Method Detail

getNumberOfViolationsWithPriority

public int getNumberOfViolationsWithPriority(int priority)

getTotalNumberOfFiles

public int getTotalNumberOfFiles()

getNumberOfFilesWithViolations

public int getNumberOfFilesWithViolations()

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject

setMetaClass

public void setMetaClass(groovy.lang.MetaClass mc)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject

invokeMethod

public Object invokeMethod(String method,
                           Object arguments)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject

getProperty

public Object getProperty(String property)
Specified by:
getProperty in interface groovy.lang.GroovyObject

setProperty

public void setProperty(String property,
                        Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject

getPath

public String getPath()
Specified by:
getPath in interface Results

isFile

public boolean isFile()
Specified by:
isFile in interface Results

getChildren

public List getChildren()
Specified by:
getChildren in interface Results

getViolations

public List getViolations()
Specified by:
getViolations in interface Results

getNumberOfViolationsWithPriority

public int getNumberOfViolationsWithPriority(int priority,
                                             boolean recursive)
Specified by:
getNumberOfViolationsWithPriority in interface Results

getTotalNumberOfFiles

public int getTotalNumberOfFiles(boolean recursive)
Specified by:
getTotalNumberOfFiles in interface Results

getNumberOfFilesWithViolations

public int getNumberOfFilesWithViolations(boolean recursive)
Specified by:
getNumberOfFilesWithViolations in interface Results

findResultsForPath

public Results findResultsForPath(String path)
Specified by:
findResultsForPath in interface Results

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.