Package org.sonar.api.measures
Interface FileLinesContext
-
public interface FileLinesContextProvides facility to store measures for the lines of file. Examples:- line 1 is a line of code
- line 2 contains comment
- line 3 contains 2 branches
- author of line 4 is Simon
save()several times.Instances of this interface can be obtained using
FileLinesContextFactory.
This interface is not intended to be implemented by clients.- Since:
- 2.14
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsave()Saves unsaved values.voidsetIntValue(java.lang.String metricKey, int line, int value)voidsetStringValue(java.lang.String metricKey, int line, java.lang.String value)
-
-
-
Method Detail
-
setIntValue
void setIntValue(java.lang.String metricKey, int line, int value)- Throws:
java.lang.UnsupportedOperationException- on attempt to update already saved data
-
setStringValue
void setStringValue(java.lang.String metricKey, int line, java.lang.String value)- Throws:
java.lang.UnsupportedOperationException- on attempt to update already saved data
-
save
void save()
Saves unsaved values.
-
-