Package gw.lang.parser
Class SourceCodeReader
- java.lang.Object
-
- gw.lang.parser.SourceCodeReader
-
public class SourceCodeReader extends Object
-
-
Constructor Summary
Constructors Constructor Description SourceCodeReader(CharSequence source)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getLength()
int
getPosition()
String
getSource()
static SourceCodeReader
makeSourceCodeReader(Reader reader)
int
peek()
int
peek(int n)
int
read()
void
setPosition(int iPosition)
CharSequence
subsequence(int iStart, int iEnd)
-
-
-
Constructor Detail
-
SourceCodeReader
public SourceCodeReader(CharSequence source)
-
-
Method Detail
-
read
public int read() throws IOException
- Throws:
IOException
-
peek
public int peek()
-
peek
public int peek(int n)
-
getPosition
public int getPosition()
-
setPosition
public void setPosition(int iPosition) throws IOException
- Throws:
IOException
-
getSource
public String getSource()
-
subsequence
public CharSequence subsequence(int iStart, int iEnd)
-
makeSourceCodeReader
public static SourceCodeReader makeSourceCodeReader(Reader reader)
-
getLength
public int getLength()
-
-