org.pentaho.reporting.libraries.formula.parser

Class JavaCharStream

public class JavaCharStream extends Object

An implementation of interface CharStream, where the stream is assumed to contain only ASCII characters (with java-like unicode escape processing).
Field Summary
intbufpos
static booleanstaticFlag
Constructor Summary
JavaCharStream(Reader dstream, int startline, int startcolumn, int buffersize)
JavaCharStream(Reader dstream, int startline, int startcolumn)
JavaCharStream(Reader dstream)
JavaCharStream(InputStream dstream, int startline, int startcolumn, int buffersize)
JavaCharStream(InputStream dstream, int startline, int startcolumn)
JavaCharStream(InputStream dstream)
Method Summary
voidadjustBeginLineColumn(int newLine, int newCol)
Method to adjust line and column numbers for the start of a token.
voidbackup(int amount)
charBeginToken()
voidDone()
intgetBeginColumn()
intgetBeginLine()
intgetColumn()
intgetEndColumn()
intgetEndLine()
intgetLine()
StringGetImage()
char[]GetSuffix(int len)
charreadChar()
voidReInit(Reader dstream, int startline, int startcolumn, int buffersize)
voidReInit(Reader dstream, int startline, int startcolumn)
voidReInit(Reader dstream)
voidReInit(InputStream dstream, int startline, int startcolumn, int buffersize)
voidReInit(InputStream dstream, int startline, int startcolumn)
voidReInit(InputStream dstream)

Field Detail

bufpos

public int bufpos

staticFlag

public static final boolean staticFlag

Constructor Detail

JavaCharStream

public JavaCharStream(Reader dstream, int startline, int startcolumn, int buffersize)

JavaCharStream

public JavaCharStream(Reader dstream, int startline, int startcolumn)

JavaCharStream

public JavaCharStream(Reader dstream)

JavaCharStream

public JavaCharStream(InputStream dstream, int startline, int startcolumn, int buffersize)

JavaCharStream

public JavaCharStream(InputStream dstream, int startline, int startcolumn)

JavaCharStream

public JavaCharStream(InputStream dstream)

Method Detail

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)

BeginToken

public char BeginToken()

Done

public void Done()

getBeginColumn

public int getBeginColumn()

getBeginLine

public int getBeginLine()

getColumn

public int getColumn()

Deprecated:

See Also: JavaCharStream

getEndColumn

public int getEndColumn()

getEndLine

public int getEndLine()

getLine

public int getLine()

Deprecated:

See Also: JavaCharStream

GetImage

public String GetImage()

GetSuffix

public char[] GetSuffix(int len)

readChar

public char readChar()

ReInit

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

ReInit

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

ReInit

public void ReInit(Reader dstream)

ReInit

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

ReInit

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

ReInit

public void ReInit(InputStream dstream)