Class TextLocation

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<TextLocation>

    public final class TextLocation
    extends java.lang.Object
    implements java.lang.Comparable<TextLocation>, java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • TextLocation

        private TextLocation()
      • TextLocation

        public TextLocation​(int line,
                            int column)
    • Method Detail

      • line

        public final int line()
      • column

        public final int column()
      • isEmpty

        public final boolean isEmpty()
      • isBefore

        public final boolean isBefore​(TextLocation other)
      • isAfter

        public final boolean isAfter​(TextLocation other)
      • toString

        public final java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • compareTo

        public final int compareTo​(TextLocation o)
        Specified by:
        compareTo in interface java.lang.Comparable<TextLocation>