Groovy Documentation

java.gate.yam.parse
Class SimpleCharStream

java.lang.Object
  java.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

available

int available


bufcolumn

protected int[] bufcolumn


buffer

protected char[] buffer


bufline

protected int[] bufline


bufpos

int bufpos


bufsize

int bufsize


column

protected int column


inBuf

protected int inBuf


inputStream

protected def inputStream


line

protected int line


maxNextCharInd

protected int maxNextCharInd


prevCharIsCR

protected boolean prevCharIsCR


prevCharIsLF

protected boolean prevCharIsLF


staticFlag

static final boolean staticFlag


tabSize

protected int tabSize


tokenBegin

int tokenBegin


 
Constructor Detail

SimpleCharStream

public SimpleCharStream(def dstream, int startline, int startcolumn, int buffersize)


SimpleCharStream

public SimpleCharStream(def dstream, int startline, int startcolumn)


SimpleCharStream

public SimpleCharStream(def dstream)


SimpleCharStream

public SimpleCharStream(def dstream, String encoding, int startline, int startcolumn, int buffersize)


SimpleCharStream

public SimpleCharStream(def dstream, int startline, int startcolumn, int buffersize)


SimpleCharStream

public SimpleCharStream(def dstream, String encoding, int startline, int startcolumn)


SimpleCharStream

public SimpleCharStream(def dstream, int startline, int startcolumn)


SimpleCharStream

public SimpleCharStream(def dstream, String encoding)


SimpleCharStream

public SimpleCharStream(def dstream)


 
Method Detail

BeginToken

public char BeginToken()


Done

public void Done()


ExpandBuff

protected void ExpandBuff(boolean wrapAround)


FillBuff

protected void FillBuff()


GetImage

public String GetImage()


GetSuffix

public char[] GetSuffix(int len)


ReInit

public void ReInit(def dstream, int startline, int startcolumn, int buffersize)


ReInit

public void ReInit(def dstream, int startline, int startcolumn)


ReInit

public void ReInit(def dstream)


ReInit

public void ReInit(def dstream, String encoding, int startline, int startcolumn, int buffersize)


ReInit

public void ReInit(def dstream, int startline, int startcolumn, int buffersize)


ReInit

public void ReInit(def dstream, String encoding)


ReInit

public void ReInit(def dstream)


ReInit

public void ReInit(def dstream, String encoding, int startline, int startcolumn)


ReInit

public void ReInit(def dstream, int startline, int startcolumn)


UpdateLineColumn

protected void UpdateLineColumn(char c)


adjustBeginLineColumn

public void adjustBeginLineColumn(int newLine, int newCol)
Method to adjust line and column numbers for the start of a token.


backup

public void backup(int amount)


getBeginColumn

public int getBeginColumn()


getBeginLine

public int getBeginLine()


getColumn

public int getColumn()
deprecated:
@see #getEndColumn


getEndColumn

public int getEndColumn()


getEndLine

public int getEndLine()


getLine

public int getLine()
deprecated:
@see #getEndLine


getTabSize

protected int getTabSize(int i)


readChar

public char readChar()


setTabSize

protected void setTabSize(int i)


 

Groovy Documentation