Class AbstractBridgeSensor
java.lang.Object
org.sonar.plugins.javascript.bridge.AbstractBridgeSensor
- All Implemented Interfaces:
org.sonar.api.batch.sensor.Sensor
,org.sonar.api.scanner.sensor.ProjectSensor
- Direct Known Subclasses:
CssRuleSensor
,HtmlSensor
,JsTsSensor
,YamlSensor
public abstract class AbstractBridgeSensor
extends Object
implements org.sonar.api.batch.sensor.Sensor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BridgeServer
protected org.sonar.api.batch.sensor.SensorContext
protected org.sonar.plugins.javascript.bridge.ContextUtils
protected final String
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractBridgeSensor
(BridgeServer bridgeServer, AnalysisWarningsWrapper analysisWarnings, String lang) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
analyzeFiles
(List<org.sonar.api.batch.fs.InputFile> inputFiles) void
execute
(org.sonar.api.batch.sensor.SensorContext context) protected abstract List<org.sonar.api.batch.fs.InputFile>
protected void
logErrorOrWarn
(String msg, Throwable e) protected boolean
shouldAnalyzeWithProgram
(List<org.sonar.api.batch.fs.InputFile> inputFiles) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.sonar.api.batch.sensor.Sensor
describe
-
Field Details
-
lang
-
bridgeServer
-
exclusions
-
context
protected org.sonar.api.batch.sensor.SensorContext context -
contextUtils
protected org.sonar.plugins.javascript.bridge.ContextUtils contextUtils
-
-
Constructor Details
-
AbstractBridgeSensor
protected AbstractBridgeSensor(BridgeServer bridgeServer, AnalysisWarningsWrapper analysisWarnings, String lang)
-
-
Method Details
-
execute
public void execute(org.sonar.api.batch.sensor.SensorContext context) - Specified by:
execute
in interfaceorg.sonar.api.scanner.sensor.ProjectSensor
- Specified by:
execute
in interfaceorg.sonar.api.batch.sensor.Sensor
-
logErrorOrWarn
-
analyzeFiles
protected abstract void analyzeFiles(List<org.sonar.api.batch.fs.InputFile> inputFiles) throws IOException - Throws:
IOException
-
getInputFiles
-
shouldAnalyzeWithProgram
-