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 intgetLength()intgetPosition()StringgetSource()static SourceCodeReadermakeSourceCodeReader(Reader reader)intpeek()intpeek(int n)intread()voidsetPosition(int iPosition)CharSequencesubsequence(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()
-
-