Class SpotBugsReport

  • All Implemented Interfaces:
    org.gradle.api.reporting.ConfigurableReport, org.gradle.api.reporting.CustomizableHtmlReport, org.gradle.api.reporting.Report, org.gradle.api.reporting.SingleFileReport, org.gradle.util.Configurable<org.gradle.api.reporting.Report>
    Direct Known Subclasses:
    SpotBugsHtmlReport, SpotBugsTextReport, SpotBugsXmlReport

    public abstract class SpotBugsReport
    extends java.lang.Object
    implements org.gradle.api.reporting.SingleFileReport, org.gradle.api.reporting.CustomizableHtmlReport
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.gradle.api.reporting.Report

        org.gradle.api.reporting.Report.OutputType
    • Field Summary

      • Fields inherited from interface org.gradle.api.reporting.Report

        NAMER
    • Constructor Summary

      Constructors 
      Constructor Description
      SpotBugsReport​(org.gradle.api.model.ObjectFactory objects, com.github.spotbugs.snom.SpotBugsTask task)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      org.gradle.api.reporting.Report configure​(groovy.lang.Closure closure)  
      java.io.File getDestination()  
      java.lang.String getDisplayName()  
      org.gradle.api.file.RegularFileProperty getOutputLocation()  
      org.gradle.api.reporting.Report.OutputType getOutputType()  
      org.gradle.api.provider.Property<java.lang.Boolean> getRequired()  
      org.gradle.api.resources.TextResource getStylesheet()  
      protected com.github.spotbugs.snom.SpotBugsTask getTask()  
      boolean isEnabled()  
      void setDestination​(java.io.File file)  
      void setDestination​(org.gradle.api.provider.Provider<java.io.File> provider)  
      void setEnabled​(boolean b)  
      void setEnabled​(org.gradle.api.provider.Provider<java.lang.Boolean> provider)  
      void setStylesheet​(java.lang.String path)  
      void setStylesheet​(org.gradle.api.resources.TextResource textResource)  
      abstract java.util.Optional<java.lang.String> toCommandLineOption()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.gradle.api.reporting.Report

        getName
    • Constructor Detail

      • SpotBugsReport

        @Inject
        public SpotBugsReport​(org.gradle.api.model.ObjectFactory objects,
                              com.github.spotbugs.snom.SpotBugsTask task)
    • Method Detail

      • toCommandLineOption

        @NonNull
        public abstract java.util.Optional<java.lang.String> toCommandLineOption()
      • getDestination

        @OutputFile
        public java.io.File getDestination()
        Specified by:
        getDestination in interface org.gradle.api.reporting.Report
      • getOutputLocation

        @OutputFile
        public org.gradle.api.file.RegularFileProperty getOutputLocation()
        Specified by:
        getOutputLocation in interface org.gradle.api.reporting.Report
        Specified by:
        getOutputLocation in interface org.gradle.api.reporting.SingleFileReport
      • getOutputType

        @Internal("This property returns always same value")
        public org.gradle.api.reporting.Report.OutputType getOutputType()
        Specified by:
        getOutputType in interface org.gradle.api.reporting.Report
        Specified by:
        getOutputType in interface org.gradle.api.reporting.SingleFileReport
      • getRequired

        @Input
        public org.gradle.api.provider.Property<java.lang.Boolean> getRequired()
        Specified by:
        getRequired in interface org.gradle.api.reporting.Report
      • isEnabled

        @Input
        public boolean isEnabled()
        Specified by:
        isEnabled in interface org.gradle.api.reporting.Report
      • setEnabled

        public void setEnabled​(boolean b)
        Specified by:
        setEnabled in interface org.gradle.api.reporting.ConfigurableReport
        Specified by:
        setEnabled in interface org.gradle.api.reporting.Report
      • setEnabled

        public void setEnabled​(org.gradle.api.provider.Provider<java.lang.Boolean> provider)
        Specified by:
        setEnabled in interface org.gradle.api.reporting.ConfigurableReport
      • setDestination

        public void setDestination​(java.io.File file)
        Specified by:
        setDestination in interface org.gradle.api.reporting.ConfigurableReport
      • setDestination

        public void setDestination​(org.gradle.api.provider.Provider<java.io.File> provider)
        Specified by:
        setDestination in interface org.gradle.api.reporting.ConfigurableReport
      • configure

        public org.gradle.api.reporting.Report configure​(groovy.lang.Closure closure)
        Specified by:
        configure in interface org.gradle.util.Configurable<org.gradle.api.reporting.Report>
      • getDisplayName

        @Internal("This property provides only a human readable name.")
        public java.lang.String getDisplayName()
        Specified by:
        getDisplayName in interface org.gradle.api.reporting.Report
      • getStylesheet

        @CheckForNull
        public org.gradle.api.resources.TextResource getStylesheet()
        Specified by:
        getStylesheet in interface org.gradle.api.reporting.CustomizableHtmlReport
      • setStylesheet

        public void setStylesheet​(@Nullable
                                  org.gradle.api.resources.TextResource textResource)
        Specified by:
        setStylesheet in interface org.gradle.api.reporting.CustomizableHtmlReport
      • setStylesheet

        public void setStylesheet​(@Nullable
                                  java.lang.String path)
      • getTask

        @NonNull
        @Internal
        protected final com.github.spotbugs.snom.SpotBugsTask getTask()