Class SourceSectionReference

java.lang.Object
org.graalvm.tools.lsp.server.utils.SourceSectionReference

public final class SourceSectionReference extends Object
A light-weight source section reference whose equality is depending only on line and column and not also on the content of a Source object. Used to create a mapping from source section to CoverageData and to migrate the coverage data when the user modifies code.
  • Constructor Details

  • Method Details

    • from

      public static SourceSectionReference from(com.oracle.truffle.api.source.SourceSection section)
    • getStartLine

      public int getStartLine()
    • setStartLine

      public void setStartLine(int startLine)
    • getEndLine

      public int getEndLine()
    • setEndLine

      public void setEndLine(int endLine)
    • getStartColumn

      public int getStartColumn()
    • setStartColumn

      public void setStartColumn(int startColumn)
    • getEndColumn

      public int getEndColumn()
    • setEndColumn

      public void setEndColumn(int endColumn)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • includes

      public boolean includes(Range range)
    • before

      public boolean before(Range range)
    • behind

      public boolean behind(Range range)