Class InputFileContext
java.lang.Object
org.sonar.iac.common.extension.visitors.TreeContext
org.sonar.iac.common.extension.visitors.InputFileContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal org.sonar.api.batch.fs.InputFilefinal org.sonar.api.batch.sensor.SensorContext -
Constructor Summary
ConstructorsConstructorDescriptionInputFileContext(org.sonar.api.batch.sensor.SensorContext sensorContext, org.sonar.api.batch.fs.InputFile inputFile) -
Method Summary
Modifier and TypeMethodDescriptionvoidreportAnalysisError(String message, org.sonar.api.batch.fs.TextPointer location) voidreportIssue(org.sonar.api.rule.RuleKey ruleKey, TextRange textRange, String message, List<SecondaryLocation> secondaryLocations) voidreportParseError(String repositoryKey, org.sonar.api.batch.fs.TextPointer location) Methods inherited from class org.sonar.iac.common.extension.visitors.TreeContext
ancestors, before, enter, leave
-
Field Details
-
sensorContext
public final org.sonar.api.batch.sensor.SensorContext sensorContext -
inputFile
public final org.sonar.api.batch.fs.InputFile inputFile
-
-
Constructor Details
-
InputFileContext
public InputFileContext(org.sonar.api.batch.sensor.SensorContext sensorContext, org.sonar.api.batch.fs.InputFile inputFile)
-
-
Method Details
-
reportIssue
public void reportIssue(org.sonar.api.rule.RuleKey ruleKey, @Nullable TextRange textRange, String message, List<SecondaryLocation> secondaryLocations) -
reportParseError
public void reportParseError(String repositoryKey, @Nullable org.sonar.api.batch.fs.TextPointer location) -
reportAnalysisError
public void reportAnalysisError(String message, @Nullable org.sonar.api.batch.fs.TextPointer location)
-