tribble.io
Interface TextLineI

All Known Implementing Classes:
DiffLine, TextLine

public interface TextLineI

Generic numbered text line interface.

This interface is used to implement classes representing a single line of text. Such a stream can be used to hold text lines read from a source file.

This interface is used by the LineInputStreamI interface methods.

Since:
2001-04-22
Version:
$Revision: 1.3 $ $Date: 2003/09/06 19:16:04 $
Author:
David R. Tribble (david@tribble.com).
Copyright 2001-2003 by David R. Tribble, all rights reserved.
Permission is granted to freely use and distribute this source code provided that the original copyright and authorship notices remain intact.
See Also:
LineInputStreamI

Field Summary
static java.lang.String REV
          Revision information.
 
Method Summary
 java.lang.String getFileName()
          Retrieves the source filename of this token.
 int getLineNo()
          Retrieves the source line number of this text line.
 java.lang.String getText()
          Retrieves the textual contents of this text line.
 

Field Detail

REV

static final java.lang.String REV
Revision information.

See Also:
Constant Field Values
Method Detail

getText

java.lang.String getText()
Retrieves the textual contents of this text line.

Returns:
The contents of this text line.
Since:
1.1, 2001-04-22

getLineNo

int getLineNo()
Retrieves the source line number of this text line.

Returns:
The source line number of this text line.
Since:
1.1, 2001-04-22

getFileName

java.lang.String getFileName()
Retrieves the source filename of this token.

Returns:
The source filename for this token.
Since:
1.1, 2001-04-22