Class PrimaryLocation
- java.lang.Object
-
- org.sonarsource.analyzer.commons.checks.verifier.internal.PreciseLocation
-
- org.sonarsource.analyzer.commons.checks.verifier.internal.PrimaryLocation
-
public class PrimaryLocation extends PreciseLocation
-
-
Field Summary
Fields Modifier and Type Field Description IntegerexpectedAdditionalCountList<List<FlowLocation>>flowLocationsList<SecondaryLocation>secondaryLocations-
Fields inherited from class org.sonarsource.analyzer.commons.checks.verifier.internal.PreciseLocation
range
-
-
Constructor Summary
Constructors Constructor Description PrimaryLocation(UnderlinedRange range, Integer expectedAdditionalCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecondaryLocationaddSecondary(UnderlinedRange range, String message)intsecondaryAndFlowLocationCount()voidwrite(int indent, StringBuilder out, boolean primaryIsWritten)
-
-
-
Field Detail
-
secondaryLocations
public final List<SecondaryLocation> secondaryLocations
-
flowLocations
public final List<List<FlowLocation>> flowLocations
-
-
Constructor Detail
-
PrimaryLocation
public PrimaryLocation(UnderlinedRange range, @Nullable Integer expectedAdditionalCount)
-
-
Method Detail
-
secondaryAndFlowLocationCount
public int secondaryAndFlowLocationCount()
-
addSecondary
public SecondaryLocation addSecondary(UnderlinedRange range, @Nullable String message)
-
write
public void write(int indent, StringBuilder out, boolean primaryIsWritten)- Specified by:
writein classPreciseLocation
-
-