站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v1.4.1, Java 2 SDK 英文文档

SourcePosition (Doclet API) - JDK 5 Documentation v1.4.1, Java 2 SDK 英文文档

Doclet API

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

Doclet API

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.