Top Description Fields Constructors Methods
org.apache.commons.jexl2.parser

public Class SimpleCharStream

extends Object
Class Inheritance

An implementation of interface CharStream, where the stream is assumed to contain only ASCII characters (without unicode processing).

Field Summary

Modifier and TypeField and Description
pack-priv int
protected int[]
protected char[]
protected int[]
public int
bufpos

Position in buffer.

pack-priv int
protected int
protected int
protected Reader
protected int
protected int
protected boolean
protected boolean
public static final boolean
staticFlag

Whether parser is static.

protected int
pack-priv int

Constructor Summary

AccessConstructor and Description
public
SimpleCharStream(Reader dstream, int startline, int startcolumn, int buffersize)

Constructor.

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

Constructor.

public
SimpleCharStream(Reader dstream)

Constructor.

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

Constructor.

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

Constructor.

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

Constructor.

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

Constructor.

public
SimpleCharStream(InputStream dstream, String encoding)

Constructor.

public
SimpleCharStream(InputStream dstream)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public void
adjustBeginLineColumn(int newLine, int newCol)

Method to adjust line and column numbers for the start of a token.

public void
backup(int amount)

Backup a number of characters.

public char
BeginToken()

Start.

public void
Done()

Reset buffer when finished.

protected void
ExpandBuff(boolean wrapAround)

protected void
public int
getBeginColumn()

Get token beginning column number.

public int
getBeginLine()

Get token beginning line number.

public int
getColumn()

Deprecated
public int
getEndColumn()

Get token end column number.

public int
getEndLine()

Get token end line number.

public String
GetImage()

Get token literal value.

public int
getLine()

Deprecated
public char[]
GetSuffix(int len)

Get the suffix.

protected int
getTabSize(int i)

public char
readChar()

Read a character.

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

Reinitialise.

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

Reinitialise.

public void
ReInit(Reader dstream)

Reinitialise.

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

Reinitialise.

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

Reinitialise.

public void
ReInit(InputStream dstream, String encoding)

Reinitialise.

public void
ReInit(InputStream dstream)

Reinitialise.

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

Reinitialise.

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

Reinitialise.

protected void
setTabSize(int i)

protected void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

availableback to summary
pack-priv int available
bufcolumnback to summary
protected int[] bufcolumn
bufferback to summary
protected char[] buffer
buflineback to summary
protected int[] bufline
bufposback to summary
public int bufpos

Position in buffer.

bufsizeback to summary
pack-priv int bufsize
columnback to summary
protected int column
inBufback to summary
protected int inBuf
inputStreamback to summary
protected Reader inputStream
lineback to summary
protected int line
maxNextCharIndback to summary
protected int maxNextCharInd
prevCharIsCRback to summary
protected boolean prevCharIsCR
prevCharIsLFback to summary
protected boolean prevCharIsLF
staticFlagback to summary
public static final boolean staticFlag

Whether parser is static.

tabSizeback to summary
protected int tabSize
tokenBeginback to summary
pack-priv int tokenBegin

Constructor Detail

SimpleCharStreamback to summary
public SimpleCharStream(Reader dstream, int startline, int startcolumn, int buffersize)

Constructor.

SimpleCharStreamback to summary
public SimpleCharStream(Reader dstream, int startline, int startcolumn)

Constructor.

SimpleCharStreamback to summary
public SimpleCharStream(Reader dstream)

Constructor.

SimpleCharStreamback to summary
public SimpleCharStream(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize) throws UnsupportedEncodingException

Constructor.

SimpleCharStreamback to summary
public SimpleCharStream(InputStream dstream, int startline, int startcolumn, int buffersize)

Constructor.

SimpleCharStreamback to summary
public SimpleCharStream(InputStream dstream, String encoding, int startline, int startcolumn) throws UnsupportedEncodingException

Constructor.

SimpleCharStreamback to summary
public SimpleCharStream(InputStream dstream, int startline, int startcolumn)

Constructor.

SimpleCharStreamback to summary
public SimpleCharStream(InputStream dstream, String encoding) throws UnsupportedEncodingException

Constructor.

SimpleCharStreamback to summary
public SimpleCharStream(InputStream dstream)

Constructor.

Method Detail

adjustBeginLineColumnback to summary
public void adjustBeginLineColumn(int newLine, int newCol)

Method to adjust line and column numbers for the start of a token.

backupback to summary
public void backup(int amount)

Backup a number of characters.

BeginTokenback to summary
public char BeginToken() throws IOException

Start.

Doneback to summary
public void Done()

Reset buffer when finished.

ExpandBuffback to summary
protected void ExpandBuff(boolean wrapAround)
FillBuffback to summary
protected void FillBuff() throws IOException
getBeginColumnback to summary
public int getBeginColumn()

Get token beginning column number.

getBeginLineback to summary
public int getBeginLine()

Get token beginning line number.

getColumnback to summary
public int getColumn()

Deprecated

Annotations
@Deprecated
getEndColumnback to summary
public int getEndColumn()

Get token end column number.

getEndLineback to summary
public int getEndLine()

Get token end line number.

GetImageback to summary
public String GetImage()

Get token literal value.

getLineback to summary
public int getLine()

Deprecated

Annotations
@Deprecated
GetSuffixback to summary
public char[] GetSuffix(int len)

Get the suffix.

getTabSizeback to summary
protected int getTabSize(int i)
readCharback to summary
public char readChar() throws IOException

Read a character.

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

Reinitialise.

ReInitback to summary
public void ReInit(Reader dstream, int startline, int startcolumn)

Reinitialise.

ReInitback to summary
public void ReInit(Reader dstream)

Reinitialise.

ReInitback to summary
public void ReInit(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize) throws UnsupportedEncodingException

Reinitialise.

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

Reinitialise.

ReInitback to summary
public void ReInit(InputStream dstream, String encoding) throws UnsupportedEncodingException

Reinitialise.

ReInitback to summary
public void ReInit(InputStream dstream)

Reinitialise.

ReInitback to summary
public void ReInit(InputStream dstream, String encoding, int startline, int startcolumn) throws UnsupportedEncodingException

Reinitialise.

ReInitback to summary
public void ReInit(InputStream dstream, int startline, int startcolumn)

Reinitialise.

setTabSizeback to summary
protected void setTabSize(int i)
UpdateLineColumnback to summary
protected void UpdateLineColumn(char c)