|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.gate.yam.parse.SimpleCharStream
class SimpleCharStream
An implementation of interface CharStream, where the stream is assumed to contain only ASCII characters (without unicode processing).
Field Summary | |
---|---|
int |
available
|
protected int[] |
bufcolumn
|
protected char[] |
buffer
|
protected int[] |
bufline
|
int |
bufpos
|
int |
bufsize
|
protected int |
column
|
protected int |
inBuf
|
protected def |
inputStream
|
protected int |
line
|
protected int |
maxNextCharInd
|
protected boolean |
prevCharIsCR
|
protected boolean |
prevCharIsLF
|
static boolean |
staticFlag
|
protected int |
tabSize
|
int |
tokenBegin
|
Constructor Summary | |
SimpleCharStream(def dstream, int startline, int startcolumn, int buffersize)
|
|
SimpleCharStream(def dstream, int startline, int startcolumn)
|
|
SimpleCharStream(def dstream)
|
|
SimpleCharStream(def dstream, String encoding, int startline, int startcolumn, int buffersize)
|
|
SimpleCharStream(def dstream, int startline, int startcolumn, int buffersize)
|
|
SimpleCharStream(def dstream, String encoding, int startline, int startcolumn)
|
|
SimpleCharStream(def dstream, int startline, int startcolumn)
|
|
SimpleCharStream(def dstream, String encoding)
|
|
SimpleCharStream(def dstream)
|
Method Summary | |
---|---|
char
|
BeginToken()
|
void
|
Done()
|
protected void
|
ExpandBuff(boolean wrapAround)
|
protected void
|
FillBuff()
|
String
|
GetImage()
|
char[]
|
GetSuffix(int len)
|
void
|
ReInit(def dstream, int startline, int startcolumn, int buffersize)
|
void
|
ReInit(def dstream, int startline, int startcolumn)
|
void
|
ReInit(def dstream)
|
void
|
ReInit(def dstream, String encoding, int startline, int startcolumn, int buffersize)
|
void
|
ReInit(def dstream, int startline, int startcolumn, int buffersize)
|
void
|
ReInit(def dstream, String encoding)
|
void
|
ReInit(def dstream)
|
void
|
ReInit(def dstream, String encoding, int startline, int startcolumn)
|
void
|
ReInit(def dstream, int startline, int startcolumn)
|
protected void
|
UpdateLineColumn(char c)
|
void
|
adjustBeginLineColumn(int newLine, int newCol)
Method to adjust line and column numbers for the start of a token. |
void
|
backup(int amount)
|
int
|
getBeginColumn()
|
int
|
getBeginLine()
|
int
|
getColumn()
|
int
|
getEndColumn()
|
int
|
getEndLine()
|
int
|
getLine()
|
protected int
|
getTabSize(int i)
|
char
|
readChar()
|
protected void
|
setTabSize(int i)
|
Methods inherited from class Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Field Detail |
---|
int available
protected int[] bufcolumn
protected char[] buffer
protected int[] bufline
int bufpos
int bufsize
protected int column
protected int inBuf
protected def inputStream
protected int line
protected int maxNextCharInd
protected boolean prevCharIsCR
protected boolean prevCharIsLF
static final boolean staticFlag
protected int tabSize
int tokenBegin
Constructor Detail |
---|
public SimpleCharStream(def dstream, int startline, int startcolumn, int buffersize)
public SimpleCharStream(def dstream, int startline, int startcolumn)
public SimpleCharStream(def dstream)
public SimpleCharStream(def dstream, String encoding, int startline, int startcolumn, int buffersize)
public SimpleCharStream(def dstream, int startline, int startcolumn, int buffersize)
public SimpleCharStream(def dstream, String encoding, int startline, int startcolumn)
public SimpleCharStream(def dstream, int startline, int startcolumn)
public SimpleCharStream(def dstream, String encoding)
public SimpleCharStream(def dstream)
Method Detail |
---|
public char BeginToken()
public void Done()
protected void ExpandBuff(boolean wrapAround)
protected void FillBuff()
public String GetImage()
public char[] GetSuffix(int len)
public void ReInit(def dstream, int startline, int startcolumn, int buffersize)
public void ReInit(def dstream, int startline, int startcolumn)
public void ReInit(def dstream)
public void ReInit(def dstream, String encoding, int startline, int startcolumn, int buffersize)
public void ReInit(def dstream, int startline, int startcolumn, int buffersize)
public void ReInit(def dstream, String encoding)
public void ReInit(def dstream)
public void ReInit(def dstream, String encoding, int startline, int startcolumn)
public void ReInit(def dstream, int startline, int startcolumn)
protected void UpdateLineColumn(char c)
public void adjustBeginLineColumn(int newLine, int newCol)
public void backup(int amount)
public int getBeginColumn()
public int getBeginLine()
public int getColumn()
public int getEndColumn()
public int getEndLine()
public int getLine()
protected int getTabSize(int i)
public char readChar()
protected void setTabSize(int i)
Groovy Documentation