Package net.sourceforge.pmd.renderers
Class HTMLRenderer
java.lang.Object
net.sourceforge.pmd.properties.AbstractPropertySource
net.sourceforge.pmd.renderers.AbstractRenderer
net.sourceforge.pmd.renderers.AbstractIncrementingRenderer
net.sourceforge.pmd.renderers.HTMLRenderer
- All Implemented Interfaces:
PropertySource,Renderer
Renderer to basic HTML format.
FIXME: this class should just work with the XMLRenderer and then apply an
XSLT transformation + stylesheet. No need to hard-code HTML markup here.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PropertyDescriptor<Boolean>static final PropertyDescriptor<Optional<String>>static final PropertyDescriptor<String>static final StringFields inherited from class net.sourceforge.pmd.renderers.AbstractIncrementingRenderer
configErrors, errors, suppressedFields inherited from class net.sourceforge.pmd.renderers.AbstractRenderer
description, name, showSuppressedViolations, writer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the default filename extension to use.voidend()This method is at the very end of the Rendering process, afterRenderer.renderFileReport(Report).voidrenderBody(PrintWriter writer, Report report) Write the body of the main body of the HTML content.voidrenderFileViolations(Iterator<RuleViolation> violations) Render a series ofRuleViolations.voidstart()This method is called before any source files are processed.Methods inherited from class net.sourceforge.pmd.renderers.AbstractIncrementingRenderer
renderFileReport, startFileAnalysisMethods inherited from class net.sourceforge.pmd.renderers.AbstractRenderer
determineFileName, flush, getDescription, getName, getPropertySourceType, getWriter, isShowSuppressedViolations, setDescription, setFileNameRenderer, setName, setReportFile, setShowSuppressedViolations, setWriterMethods inherited from class net.sourceforge.pmd.properties.AbstractPropertySource
definePropertyDescriptor, equals, getOverriddenPropertiesByPropertyDescriptor, getOverriddenPropertyDescriptors, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, hashCode, isPropertyOverridden, setPropertyMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sourceforge.pmd.properties.PropertySource
definePropertyDescriptor, dysfunctionReason, getOverriddenPropertiesByPropertyDescriptor, getOverriddenPropertyDescriptors, getPropertiesByPropertyDescriptor, getProperty, getPropertyDescriptor, getPropertyDescriptors, hasDescriptor, isPropertyOverridden, setPropertyMethods inherited from interface net.sourceforge.pmd.renderers.Renderer
newListener
-
Field Details
-
NAME
- See Also:
-
LINE_PREFIX
-
LINK_PREFIX
-
HTML_EXTENSION
-
-
Constructor Details
-
HTMLRenderer
public HTMLRenderer()
-
-
Method Details
-
defaultFileExtension
Description copied from interface:RendererReturn the default filename extension to use.- Returns:
- String
-
renderBody
Write the body of the main body of the HTML content.- Throws:
IOException
-
start
Description copied from interface:RendererThis method is called before any source files are processed. The Renderer will have been fully initialized by the time this method is called, so the Writer and other state will be available.- Specified by:
startin interfaceRenderer- Overrides:
startin classAbstractIncrementingRenderer- Throws:
IOException
-
renderFileViolations
Description copied from class:AbstractIncrementingRendererRender a series ofRuleViolations.- Specified by:
renderFileViolationsin classAbstractIncrementingRenderer- Parameters:
violations- The iterator of violations to render.- Throws:
IOException
-
end
Description copied from interface:RendererThis method is at the very end of the Rendering process, afterRenderer.renderFileReport(Report).- Specified by:
endin interfaceRenderer- Overrides:
endin classAbstractIncrementingRenderer- Throws:
IOException
-