Package gw.lang.parser
Class SourceCodeReader
- java.lang.Object
-
- gw.lang.parser.SourceCodeReader
-
public class SourceCodeReader extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private int_iLengthprivate int_iPositionprivate java.lang.CharSequence_source
-
Constructor Summary
Constructors Constructor Description SourceCodeReader(java.lang.CharSequence source)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLength()intgetPosition()java.lang.StringgetSource()static SourceCodeReadermakeSourceCodeReader(java.io.Reader reader)intpeek()intpeek(int n)intread()voidsetPosition(int iPosition)java.lang.CharSequencesubsequence(int iStart, int iEnd)
-
-
-
Method Detail
-
read
public int read() throws java.io.IOException- Throws:
java.io.IOException
-
peek
public int peek()
-
peek
public int peek(int n)
-
getPosition
public int getPosition()
-
setPosition
public void setPosition(int iPosition) throws java.io.IOException- Throws:
java.io.IOException
-
getSource
public java.lang.String getSource()
-
subsequence
public java.lang.CharSequence subsequence(int iStart, int iEnd)
-
makeSourceCodeReader
public static SourceCodeReader makeSourceCodeReader(java.io.Reader reader)
-
getLength
public int getLength()
-
-