Interface FileLinesContext


  • public interface FileLinesContext
    Provides 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
    Numbering of lines starts from 1. Also note that you can't update what already was saved, however it is safe to call 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 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.