Class SpotBugsScannerPlugin

  • All Implemented Interfaces:
    com.buschmais.jqassistant.core.scanner.api.ScannerPlugin<com.buschmais.jqassistant.plugin.common.api.scanner.filesystem.FileResource,​SpotBugsReportDescriptor>, com.buschmais.jqassistant.core.shared.lifecycle.ContextualConfigurableLifecycleAware<com.buschmais.jqassistant.core.scanner.api.ScannerContext,​java.util.Map<java.lang.String,​java.lang.Object>>, com.buschmais.jqassistant.core.shared.lifecycle.LifecycleAware

    public class SpotBugsScannerPlugin
    extends com.buschmais.jqassistant.plugin.common.api.scanner.AbstractScannerPlugin<com.buschmais.jqassistant.plugin.common.api.scanner.filesystem.FileResource,​SpotBugsReportDescriptor>
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.buschmais.jqassistant.core.scanner.api.ScannerPlugin

        com.buschmais.jqassistant.core.scanner.api.ScannerPlugin.Requires
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accepts​(com.buschmais.jqassistant.plugin.common.api.scanner.filesystem.FileResource item, java.lang.String path, com.buschmais.jqassistant.core.scanner.api.Scope scope)  
      protected void addBugInstancesToFindBugsDescriptor​(com.buschmais.jqassistant.core.store.api.Store store, BugCollectionType bugCollectionType, SpotBugsReportDescriptor spotBugsReportDescriptor)  
      protected void configure()  
      SpotBugsReportDescriptor scan​(com.buschmais.jqassistant.plugin.common.api.scanner.filesystem.FileResource file, java.lang.String path, com.buschmais.jqassistant.core.scanner.api.Scope scope, com.buschmais.jqassistant.core.scanner.api.Scanner scanner)  
      protected BugCollectionType unmarshalSpotBugsXml​(java.io.InputStream streamSource)  
      protected void writeFindBugsDescriptor​(java.lang.String path, BugCollectionType bugCollectionType, SpotBugsReportDescriptor spotBugsReportDescriptor)  
      • Methods inherited from class com.buschmais.jqassistant.plugin.common.api.scanner.AbstractScannerPlugin

        configure, equals, getBooleanProperty, getDescriptorType, getDirectoryPath, getName, getProperties, getProperty, getScannerContext, getStringProperty, getType, getTypeParameter, hashCode
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.buschmais.jqassistant.core.scanner.api.ScannerPlugin

        destroy, initialize
    • Field Detail

      • JQASSISTANT_PLUGIN_SPOTBUGS_FILENAME

        public static final java.lang.String JQASSISTANT_PLUGIN_SPOTBUGS_FILENAME
        See Also:
        Constant Field Values
      • JQASSISTANT_PLUGIN_SPOTBUGS_DIRNAME

        public static final java.lang.String JQASSISTANT_PLUGIN_SPOTBUGS_DIRNAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • SpotBugsScannerPlugin

        public SpotBugsScannerPlugin()
    • Method Detail

      • configure

        protected void configure()
        Overrides:
        configure in class com.buschmais.jqassistant.plugin.common.api.scanner.AbstractScannerPlugin<com.buschmais.jqassistant.plugin.common.api.scanner.filesystem.FileResource,​SpotBugsReportDescriptor>
      • accepts

        public boolean accepts​(com.buschmais.jqassistant.plugin.common.api.scanner.filesystem.FileResource item,
                               java.lang.String path,
                               com.buschmais.jqassistant.core.scanner.api.Scope scope)
      • scan

        public SpotBugsReportDescriptor scan​(com.buschmais.jqassistant.plugin.common.api.scanner.filesystem.FileResource file,
                                             java.lang.String path,
                                             com.buschmais.jqassistant.core.scanner.api.Scope scope,
                                             com.buschmais.jqassistant.core.scanner.api.Scanner scanner)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • unmarshalSpotBugsXml

        protected BugCollectionType unmarshalSpotBugsXml​(java.io.InputStream streamSource)
                                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • addBugInstancesToFindBugsDescriptor

        protected void addBugInstancesToFindBugsDescriptor​(com.buschmais.jqassistant.core.store.api.Store store,
                                                           BugCollectionType bugCollectionType,
                                                           SpotBugsReportDescriptor spotBugsReportDescriptor)