org.apache.commons.jexl.parser

Class SimpleCharStream

public final class SimpleCharStream extends Object

An implementation of interface CharStream, where the stream is assumed to contain only ASCII characters (without unicode processing).
Field Summary
intbufpos
static booleanstaticFlag
Constructor Summary
SimpleCharStream(Reader dstream, int startline, int startcolumn, int buffersize)
SimpleCharStream(Reader dstream, int startline, int startcolumn)
SimpleCharStream(Reader dstream)
SimpleCharStream(InputStream dstream, int startline, int startcolumn, int buffersize)
SimpleCharStream(InputStream dstream, int startline, int startcolumn)
SimpleCharStream(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)
voidReInit(InputStream dstream, int startline, int startcolumn)

Field Detail

bufpos

public int bufpos

staticFlag

public static final boolean staticFlag

Constructor Detail

SimpleCharStream

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

SimpleCharStream

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

SimpleCharStream

public SimpleCharStream(Reader dstream)

SimpleCharStream

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

SimpleCharStream

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

SimpleCharStream

public SimpleCharStream(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 final void backup(int amount)

BeginToken

public final char BeginToken()

Done

public void Done()

getBeginColumn

public final int getBeginColumn()

getBeginLine

public final int getBeginLine()

getColumn

public final int getColumn()

Deprecated:

See Also: SimpleCharStream

getEndColumn

public final int getEndColumn()

getEndLine

public final int getEndLine()

getLine

public final int getLine()

Deprecated:

See Also: SimpleCharStream

GetImage

public final String GetImage()

GetSuffix

public final char[] GetSuffix(int len)

readChar

public final 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)

ReInit

public void ReInit(InputStream dstream, int startline, int startcolumn)
Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.