mjc

org.multijava.mjdoc.mjdoc_142
Class MjSourcePosition

java.lang.Object
  extended byorg.multijava.mjdoc.mjdoc_142.MjSourcePosition
All Implemented Interfaces:
com.sun.javadoc.SourcePosition

public class MjSourcePosition
extends Object
implements com.sun.javadoc.SourcePosition


Field Summary
(package private)  TokenReference token
           
 
Constructor Summary
MjSourcePosition(TokenReference tok)
          Creates a SourcePosition object, wrapping the given TokenReference.
 
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".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

token

TokenReference token
Constructor Detail

MjSourcePosition

public MjSourcePosition(TokenReference tok)
Creates a SourcePosition object, wrapping the given TokenReference.

Method Detail

file

public File file()
The source file. Returns null if no file information is available.

Specified by:
file in interface com.sun.javadoc.SourcePosition

line

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

Specified by:
line in interface com.sun.javadoc.SourcePosition

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.

Specified by:
column in interface com.sun.javadoc.SourcePosition

toString

public String toString()
Convert the source position to the form "Filename:line". The filename is rendered in a relative form.

Specified by:
toString in interface com.sun.javadoc.SourcePosition
Overrides:
toString in class Object

mjc

mjc is Copyright (C) 2000-2004 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. mjc is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.