Package | Class | Use | Tree | Deprecated | Index | Help
| Doclet API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sun.javadoc
Interface SourcePosition

    public interface SourcePosition

This interface describes a source position: filename, line number, and column number.

Since:
  1.4

Method Summary
`int` | `column()` The column in the source file.
`File` | `file()` The source file.
`int` | `line()` The line in the source file.
`String` | `toString()` Convert the source position to the form "Filename:line".

Method Detail

### file

    File file()

  The source file. Returns null if no file information is available.

### line

    int line()

  The line in the source file. The first line is numbered 1; 0 means no line number information is available.

### column

    int column()

  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.

### toString

    String toString()

  Convert the source position to the form "Filename:line".

  Overrides:
    `toString` in class `Object`

Package | Class | Use | Tree | Deprecated | Index | Help
| Doclet API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Submit a bug or feature
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2008 Sun Microsystems, Inc. 4150 Network Circle
Santa Clara, California, 95054, U.S.A. All Rights Reserved.