net.cscott.sinjdoc

Interface SourcePosition

public interface SourcePosition

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

Version: $Id: SourcePosition.java,v 1.3 2003/05/08 03:54:25 cananian Exp $

Author: C. Scott Ananian (cscott@cscott.net)

See Also: com.sun.javadoc.SourcePosition

Method Summary
intcolumn()
The column in the source file.
Filefile()
The source file.
intline()
The line in the source file.
StringtoString()
Convert the source position to the form "Filename:line".

Method Detail

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.

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.

toString

public String toString()
Convert the source position to the form "Filename:line".
Copyright © 2003 C. Scott Ananian