|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.InputStream
tools.code.CodeLineInputStream
public class CodeLineInputStream
This class implements an InputStream over a list of CodeLine lines. This is useful for a parser that reads constructs that span several lines. This stream only traverses opcode data ... not labels or comments.
| Constructor Summary | |
|---|---|
CodeLineInputStream(java.util.List<CodeLine> codeLines,
int startLineNumber,
int startPosition)
This constructs a new CodeLineInputStream |
|
| Method Summary | |
|---|---|
int |
getCurrentFileLineNumber()
This method returns the current line number within the list of CodeLine lines. |
java.lang.String |
getCurrentFilename()
This method returns the name of the file of the current line. |
CodeLine |
getCurrentLine()
This method returns the current line |
int |
getCurrentLineNumber()
This method returns the current line index in the array of code lines. |
int |
getCurrentPosition()
This method return the current character index of the current line. |
int |
read()
|
| Methods inherited from class java.io.InputStream |
|---|
available, close, mark, markSupported, read, read, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CodeLineInputStream(java.util.List<CodeLine> codeLines,
int startLineNumber,
int startPosition)
codeLines - the list of CodeLine linesstartLineNumber - the starting line numberstartPosition - the starting position within the starting line| Method Detail |
|---|
public int getCurrentLineNumber()
public int getCurrentFileLineNumber()
public int getCurrentPosition()
public java.lang.String getCurrentFilename()
public CodeLine getCurrentLine()
public int read()
read in class java.io.InputStream
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||