org.codenarc.report
Class HtmlReportWriter

java.lang.Object
  extended by org.codenarc.report.AbstractReportWriter
      extended by org.codenarc.report.HtmlReportWriter
All Implemented Interfaces:
groovy.lang.GroovyObject, ReportWriter

public class HtmlReportWriter
extends AbstractReportWriter


Field Summary
static java.lang.Object DEFAULT_OUTPUT_FILE
           
 
Fields inherited from class org.codenarc.report.AbstractReportWriter
BASE_MESSAGES_BUNDLE, CODENARC_URL, CUSTOM_MESSAGES_BUNDLE, customMessagesBundleName, getTimestamp, initializeResourceBundle, resourceBundle, VERSION_FILE
 
Constructor Summary
HtmlReportWriter()
           
 
Method Summary
protected  java.lang.String formatSourceLine(java.lang.String sourceLine)
           
protected  java.lang.String formatSourceLine(java.lang.String sourceLine, int startColumn)
           
 java.lang.String getDefaultOutputFile()
           
 groovy.lang.MetaClass getMetaClass()
           
 java.lang.Object getProperty(java.lang.String property)
           
 java.lang.String getTitle()
           
 java.lang.Object invokeMethod(java.lang.String method, java.lang.Object arguments)
           
protected  boolean isDirectoryContainingFiles(Results results)
           
protected  boolean isDirectoryContainingFilesWithViolations(Results results)
           
 void setDefaultOutputFile(java.lang.String value)
           
 void setMetaClass(groovy.lang.MetaClass mc)
           
 void setProperty(java.lang.String property, java.lang.Object value)
           
 void setTitle(java.lang.String value)
           
 java.lang.String toString()
           
 void writeReport(java.io.Writer writer, AnalysisContext analysisContext, Results results)
           
 
Methods inherited from class org.codenarc.report.AbstractReportWriter
getCodeNarcVersion, getDescriptionForRule, getFormattedTimestamp, getHtmlDescriptionForRule, getOutputFile, getResourceBundleString, getResourceBundleString, getResourceBundleString, getSortedRules, getWriteToStandardOut, initializeDefaultResourceBundle, isEnabled, setOutputFile, setWriteToStandardOut, writeReport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_OUTPUT_FILE

public static java.lang.Object DEFAULT_OUTPUT_FILE
Constructor Detail

HtmlReportWriter

public HtmlReportWriter()
Method Detail

formatSourceLine

protected java.lang.String formatSourceLine(java.lang.String sourceLine)

getMetaClass

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

setMetaClass

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

invokeMethod

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

getProperty

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

setProperty

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

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String value)

getDefaultOutputFile

public java.lang.String getDefaultOutputFile()

setDefaultOutputFile

public void setDefaultOutputFile(java.lang.String value)

writeReport

public void writeReport(java.io.Writer writer,
                        AnalysisContext analysisContext,
                        Results results)
Specified by:
writeReport in class AbstractReportWriter

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

formatSourceLine

protected java.lang.String formatSourceLine(java.lang.String sourceLine,
                                            int startColumn)

isDirectoryContainingFilesWithViolations

protected boolean isDirectoryContainingFilesWithViolations(Results results)

isDirectoryContainingFiles

protected boolean isDirectoryContainingFiles(Results results)


Copyright © 2011. All Rights Reserved.