|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pz.platypus.InputLine
public class InputLine
//curr: do we need the setters? Line probably should be immutable Defines a InputLine, which simply holds the file#, line # of the current input line, and the content of the current input line (as a string).
Field Summary | |
---|---|
private java.lang.String |
content
the content of the line as a string |
private Source |
source
the file # and line # for this InputLine |
Constructor Summary | |
---|---|
InputLine()
|
|
InputLine(int fileNumber,
int lineNumber,
java.lang.String text)
|
|
InputLine(int lineNumber,
java.lang.String text)
|
|
InputLine(Source s,
java.lang.String text)
|
Method Summary | |
---|---|
java.lang.String |
dump()
Dump one input line to console. |
java.lang.String |
getContent()
return a string with the line content |
Source |
getSource()
get the file number that this line appeared in. |
void |
setContent(java.lang.String newContent)
Set the content portion |
void |
setSource(Source newSource)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Source source
private java.lang.String content
Constructor Detail |
---|
public InputLine()
public InputLine(int lineNumber, java.lang.String text)
public InputLine(int fileNumber, int lineNumber, java.lang.String text)
public InputLine(Source s, java.lang.String text)
Method Detail |
---|
public java.lang.String dump()
public java.lang.String getContent()
public void setContent(java.lang.String newContent)
newContent
- the new line contentpublic Source getSource()
public void setSource(Source newSource)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |