Top Description Fields Constructors Methods
com.github.javaparser

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 Provider
protected int
protected int
protected boolean
protected boolean
public static final boolean
staticFlag

Whether parser is static.

protected int
pack-priv int
protected boolean

Constructor Summary

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

Constructor.

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

Constructor.

public
SimpleCharStream(Provider 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.

public int
pack-priv boolean
public char
readChar()

Read a character.

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

Reinitialise.

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

Reinitialise.

public void
ReInit(Provider dstream)

Reinitialise.

public void
setTabSize(int i)

pack-priv void
setTrackLineColumn(boolean tlc)

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 Provider 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
trackLineColumnback to summary
protected boolean trackLineColumn

Constructor Detail

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

Constructor.

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

Constructor.

SimpleCharStreamback to summary
public SimpleCharStream(Provider 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
public int getTabSize()
getTrackLineColumnback to summary
pack-priv boolean getTrackLineColumn()
readCharback to summary
public char readChar() throws IOException

Read a character.

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

Reinitialise.

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

Reinitialise.

ReInitback to summary
public void ReInit(Provider dstream)

Reinitialise.

setTabSizeback to summary
public void setTabSize(int i)
setTrackLineColumnback to summary
pack-priv void setTrackLineColumn(boolean tlc)
UpdateLineColumnback to summary
protected void UpdateLineColumn(char c)