Module jdk.javadoc

Interface SourcePosition


  • Deprecated. 
    The declarations in this package have been superseded by those in the package jdk.javadoc.doclet. For more information, see the Migration Guide in the documentation for that package.

    @Deprecated
    public interface SourcePosition
    This interface describes a source position: filename, line number, and column number.
    Since:
    1.4
    • Method Detail

      • file

        File file​()
        Deprecated. 
        The source file. Returns null if no file information is available.
        Returns:
        the source file as a File.
      • line

        int line​()
        Deprecated. 
        The line in the source file. The first line is numbered 1; 0 means no line number information is available.
        Returns:
        the line number in the source file as an integer.
      • column

        int column​()
        Deprecated. 
        The column in the source file. The first column is numbered 1; 0 means no column information is available. Columns count characters in the input stream; a tab advances the column number to the next 8-column tab stop.
        Returns:
        the column on the source line as an integer.
      • toString

        String toString​()
        Deprecated. 
        Convert the source position to the form "Filename:line".
        Overrides:
        toString in class Object
        Returns:
        a string representation of the object.