Class Location

java.lang.Object
com.formdev.flatlaf.json.Location

public class Location extends Object
An immutable object that represents a location in the parsed text.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
    The column number, starting at 1.
    final int
    The line number, starting at 1.
    final int
    The absolute character index, starting at 0.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Location(int offset, int line, int column)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • offset

      public final int offset
      The absolute character index, starting at 0.
    • line

      public final int line
      The line number, starting at 1.
    • column

      public final int column
      The column number, starting at 1.
  • Constructor Details

    • Location

      Location(int offset, int line, int column)
  • Method Details