Class SourceSectionReference
java.lang.Object
org.graalvm.tools.lsp.server.utils.SourceSectionReference
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanstatic SourceSectionReferencefrom(com.oracle.truffle.api.source.SourceSection section) intintintintinthashCode()booleanvoidsetEndColumn(int endColumn) voidsetEndLine(int endLine) voidsetStartColumn(int startColumn) voidsetStartLine(int startLine) toString()
-
Constructor Details
-
SourceSectionReference
-
-
Method Details
-
from
-
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
-
hashCode
public int hashCode() -
toString
-
includes
-
before
-
behind
-