Class SpotBugsScannerPlugin
- java.lang.Object
-
- com.buschmais.jqassistant.plugin.common.api.scanner.AbstractScannerPlugin<com.buschmais.jqassistant.plugin.common.api.scanner.filesystem.FileResource,SpotBugsReportDescriptor>
-
- de.kontext_e.jqassistant.plugin.spotbugs.scanner.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>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJQASSISTANT_PLUGIN_SPOTBUGS_DIRNAMEstatic java.lang.StringJQASSISTANT_PLUGIN_SPOTBUGS_FILENAME
-
Constructor Summary
Constructors Constructor Description SpotBugsScannerPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccepts(com.buschmais.jqassistant.plugin.common.api.scanner.filesystem.FileResource item, java.lang.String path, com.buschmais.jqassistant.core.scanner.api.Scope scope)protected voidaddBugInstancesToFindBugsDescriptor(com.buschmais.jqassistant.core.store.api.Store store, BugCollectionType bugCollectionType, SpotBugsReportDescriptor spotBugsReportDescriptor)protected voidconfigure()SpotBugsReportDescriptorscan(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 BugCollectionTypeunmarshalSpotBugsXml(java.io.InputStream streamSource)protected voidwriteFindBugsDescriptor(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
-
-
-
-
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
-
-
Method Detail
-
configure
protected void configure()
- Overrides:
configurein classcom.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)
-
writeFindBugsDescriptor
protected void writeFindBugsDescriptor(java.lang.String path, BugCollectionType bugCollectionType, SpotBugsReportDescriptor spotBugsReportDescriptor)
-
-