Class FileLocation

    • Method Detail

      • getFileId

        public FileId getFileId()
        File name of this position.
      • getStartLine

        public int getStartLine()
        Inclusive, 1-based line number.
      • getEndLine

        public int getEndLine()
        Inclusive, 1-based line number.
      • getStartColumn

        public int getStartColumn()
        Inclusive, 1-based column number.
      • getEndColumn

        public int getEndColumn()
        Exclusive, 1-based column number.
      • getStartPos

        public TextPos2d getStartPos()
        Returns the start position.
      • getEndPos

        public TextPos2d getEndPos()
        Returns the end position.
      • toRange2d

        public TextRange2d toRange2d()
        Turn this into a range country.
      • getRegionInFile

        public @Nullable TextRegion getRegionInFile()
        Returns the region in the file, or null if this was not available.
      • startPosToString

        public String startPosToString()
        Formats the start position as e.g. "line 1, column 2".
      • startPosToStringWithFile

        public String startPosToStringWithFile()
        Formats the start position as e.g. "/path/to/file:1:2".
      • getLineCount

        public int getLineCount()