Interface Location


public interface Location
Represents a location information inside a document.
Since:
6.0.0
Author:
tomyeh
  • Method Summary

    Modifier and Type
    Method
    Description
    format(String message)
    Formats the given message by prefixing with the location information.
    int
    Return the column number in the document, or -1 if not available.
    int
    Return the line number in the document, or -1 if not available.
    Returns the path of the document, or null if not available.
  • Method Details

    • getPath

      String getPath()
      Returns the path of the document, or null if not available.
    • getLineNumber

      int getLineNumber()
      Return the line number in the document, or -1 if not available.
    • getColumnNumber

      int getColumnNumber()
      Return the column number in the document, or -1 if not available.
    • format

      String format(String message)
      Formats the given message by prefixing with the location information.