Package org.codenarc.report
Class AbstractHtmlReportWriter
- java.lang.Object
-
- org.codenarc.report.AbstractReportWriter
-
- org.codenarc.report.AbstractHtmlReportWriter
-
- All Implemented Interfaces:
groovy.lang.GroovyObject,ReportWriter
- Direct Known Subclasses:
HtmlReportWriter,SortableHtmlReportWriter
public abstract class AbstractHtmlReportWriter extends AbstractReportWriter
-
-
Field Summary
Fields Modifier and Type Field Description protected static ObjectCSS_FILEprotected static ObjectMAX_SOURCE_LINE_LENGTHprotected static ObjectSOURCE_LINE_LAST_SEGMENT_LENGTH-
Fields inherited from class org.codenarc.report.AbstractReportWriter
BASE_MESSAGES_BUNDLE, CODENARC_URL, CUSTOM_MESSAGES_BUNDLE, customMessagesBundleName, getTimestamp, initializeResourceBundle, resourceBundle, VERSION_FILE
-
-
Constructor Summary
Constructors Constructor Description AbstractHtmlReportWriter()
-
Method Summary
-
Methods inherited from class org.codenarc.report.AbstractReportWriter
getCodeNarcVersion, getDescriptionForRule, getFormattedTimestamp, getHtmlDescriptionForRule, getOutputFile, getResourceBundleString, getResourceBundleString, getResourceBundleString, getSortedRules, getWriteToStandardOut, initializeDefaultResourceBundle, isEnabled, setOutputFile, setWriteToStandardOut, writeReport
-
-
-
-
Method Detail
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClassin interfacegroovy.lang.GroovyObject- Overrides:
getMetaClassin classAbstractReportWriter
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClassin interfacegroovy.lang.GroovyObject- Overrides:
setMetaClassin classAbstractReportWriter
-
invokeMethod
public Object invokeMethod(String method, Object arguments)
- Specified by:
invokeMethodin interfacegroovy.lang.GroovyObject- Overrides:
invokeMethodin classAbstractReportWriter
-
getProperty
public Object getProperty(String property)
- Specified by:
getPropertyin interfacegroovy.lang.GroovyObject- Overrides:
getPropertyin classAbstractReportWriter
-
setProperty
public void setProperty(String property, Object value)
- Specified by:
setPropertyin interfacegroovy.lang.GroovyObject- Overrides:
setPropertyin classAbstractReportWriter
-
getTitle
public String getTitle()
-
setTitle
public void setTitle(String value)
-
getIncludeRuleDescriptions
public boolean getIncludeRuleDescriptions()
-
isIncludeRuleDescriptions
public boolean isIncludeRuleDescriptions()
-
setIncludeRuleDescriptions
public void setIncludeRuleDescriptions(boolean value)
-
getMaxPriority
public int getMaxPriority()
-
setMaxPriority
public void setMaxPriority(int value)
-
getCssFile
protected String getCssFile()
-
buildBodySection
protected abstract Object buildBodySection(AnalysisContext analysisContext, Object results)
-
writeReport
public void writeReport(Writer writer, AnalysisContext analysisContext, Results results)
- Specified by:
writeReportin classAbstractReportWriter
-
buildCSS
protected Object buildCSS()
-
buildScript
protected Object buildScript()
-
buildHeaderSection
protected Object buildHeaderSection()
-
buildReportMetadata
protected Object buildReportMetadata()
-
buildLogo
protected Object buildLogo()
-
buildRuleDescriptions
protected Object buildRuleDescriptions(AnalysisContext analysisContext)
-
isDirectoryContainingFilesWithViolations
protected boolean isDirectoryContainingFilesWithViolations(Results results)
-
isDirectoryContainingFiles
protected boolean isDirectoryContainingFiles(Results results)
-
buildTitle
protected String buildTitle()
-
-