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 |
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". |
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.
public File file()
The source file. Returns null if no file information is available.
public int line()
The line in the source file. The first line is numbered 1; 0 means
no line number information is available.
public String toString()
Convert the source position to the form "Filename:line".
Copyright © 2003 C. Scott Ananian