Package com.yahoo.javacc
Class FastCharStream
- java.lang.Object
-
- com.yahoo.javacc.FastCharStream
-
public class FastCharStream extends Object
- Author:
- Simon Thoresen Hult
-
-
Constructor Summary
Constructors Constructor Description FastCharStream(String input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
backup(int amount)
char
beginToken()
void
done()
String
formatException(String parseException)
int
getBeginColumn()
int
getBeginLine()
int
getEndColumn()
int
getEndLine()
String
getImage()
char[]
getSuffix(int len)
int
getTabSize()
boolean
isTrackLineColumn()
char
readChar()
void
setTabSize(int i)
void
setTrackLineColumn(boolean tlc)
-
-
-
Constructor Detail
-
FastCharStream
public FastCharStream(String input)
-
-
Method Detail
-
readChar
public char readChar() throws IOException
- Throws:
IOException
-
getEndColumn
public int getEndColumn()
-
getEndLine
public int getEndLine()
-
getBeginColumn
public int getBeginColumn()
-
getBeginLine
public int getBeginLine()
-
backup
public void backup(int amount)
-
beginToken
public char beginToken() throws IOException
- Throws:
IOException
-
getImage
public String getImage()
-
getSuffix
public char[] getSuffix(int len)
-
done
public void done()
-
setTabSize
public void setTabSize(int i)
-
getTabSize
public int getTabSize()
-
setTrackLineColumn
public void setTrackLineColumn(boolean tlc)
-
isTrackLineColumn
public boolean isTrackLineColumn()
-
-