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:
  J2SE1.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

    public File file()

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

### line

    public int line()

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

### column

    public 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

    public 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-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.