|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectplatypus.ReadLine
public class ReadLine
Defines a ReadLine, which simply holds the line (as a string) and the line # from the imput file.
| Field Summary | |
|---|---|
private java.lang.String |
lineContent
|
private int |
lineNumber
|
| Constructor Summary | |
|---|---|
ReadLine()
|
|
ReadLine(int number,
java.lang.String text)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getLineContent()
return a string with the line content |
int |
getLineNumber()
return the line number we're currently working on |
Tokens |
parse()
Parses gid.currLine into a tokens[]. |
Tokens |
parse(ReadLine rl)
Parses the readline into an array of tokens. |
void |
setContent(java.lang.String newContent)
|
void |
setLineNumber(int newNumber)
Set line number |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String lineContent
private int lineNumber
| Constructor Detail |
|---|
public ReadLine()
public ReadLine(int number,
java.lang.String text)
| Method Detail |
|---|
public Tokens parse()
public Tokens parse(ReadLine rl)
rl - the readline to process
public int getLineNumber()
public java.lang.String getLineContent()
public void setContent(java.lang.String newContent)
public void setLineNumber(int newNumber)
newNumber - the new line number
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||