|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tribble.io.TextLine
public class TextLine
Generic numbered text line.
This is a default implementation of the TextLineI
interface.
Field Summary | |
---|---|
protected java.lang.String |
m_fname
Source filename. |
protected int |
m_lineNo
Source line number. |
protected java.lang.String |
m_text
Textual content of this line. |
(package private) static java.lang.String |
REV
Revision information. |
Constructor Summary | |
---|---|
protected |
TextLine()
Default constructor. |
|
TextLine(java.lang.String text)
Constructor. |
|
TextLine(java.lang.String text,
int lineNo)
Constructor. |
|
TextLine(java.lang.String text,
int lineNo,
java.lang.String fname)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getFileName()
Retrieve the source filename of this token. |
int |
getLineNo()
Retrieve the source line number of this text line. |
java.lang.String |
getText()
Retrieve the textual contents of this text line. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final java.lang.String REV
protected java.lang.String m_text
protected int m_lineNo
protected java.lang.String m_fname
Constructor Detail |
---|
public TextLine(java.lang.String text)
text
- Textual content for this text line.public TextLine(java.lang.String text, int lineNo)
text
- Textual content for this text line.lineNo
- Source line number of this text line.public TextLine(java.lang.String text, int lineNo, java.lang.String fname)
text
- Textual content for this text line.lineNo
- Source line number of this text line.fname
- Source file name from whence this text line was read.protected TextLine()
Method Detail |
---|
public java.lang.String getText()
getText
in interface TextLineI
public int getLineNo()
getLineNo
in interface TextLineI
public java.lang.String getFileName()
getFileName
in interface TextLineI
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |