Class LessFilePosition


  • public final class LessFilePosition
    extends java.lang.Object
    the Position of an error in a less file
    • Constructor Summary

      Constructors 
      Constructor Description
      LessFilePosition​(java.lang.String filename, int line, int column)
      filename may be null to indicate a file name is unavailable
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      int getColumn()
      Get the column in the source file.
      java.lang.String getFilename()
      Get the file name.
      int getLine()
      Get the line in the source file
      int hashCode()
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • LessFilePosition

        public LessFilePosition​(java.lang.String filename,
                                int line,
                                int column)
        filename may be null to indicate a file name is unavailable
        Parameters:
        filename - the less file, can be null if a string was parsed
        line - the line number in the less file
        column - the column in the less file
    • Method Detail

      • getFilename

        public java.lang.String getFilename()
        Get the file name.
        Returns:
        the file name or null if in memory
      • getLine

        public int getLine()
        Get the line in the source file
        Returns:
        the line number
      • getColumn

        public int getColumn()
        Get the column in the source file.
        Returns:
        the column number
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

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