| java.lang.Object |
| ↳ |
org.mule.module.netsuite.api.model.expression.filter.parser.SimpleCharStream |
Class Overview
An implementation of interface CharStream, where the stream is assumed to
contain only ASCII characters (without unicode processing).
Summary
| Constants |
| boolean |
staticFlag |
Whether parser is static. |
| Public Constructors |
|
|
SimpleCharStream(Reader dstream, int startline, int startcolumn, int buffersize)
Constructor.
|
|
|
SimpleCharStream(Reader dstream, int startline, int startcolumn)
Constructor.
|
|
|
SimpleCharStream(Reader dstream)
Constructor.
|
|
|
SimpleCharStream(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize)
Constructor.
|
|
|
SimpleCharStream(InputStream dstream, int startline, int startcolumn, int buffersize)
Constructor.
|
|
|
SimpleCharStream(InputStream dstream, String encoding, int startline, int startcolumn)
Constructor.
|
|
|
SimpleCharStream(InputStream dstream, int startline, int startcolumn)
Constructor.
|
|
|
SimpleCharStream(InputStream dstream, String encoding)
Constructor.
|
|
|
SimpleCharStream(InputStream dstream)
Constructor.
|
| Public Methods |
|
char
|
BeginToken()
Start.
|
|
void
|
Done()
Reset buffer when finished.
|
|
String
|
GetImage()
Get token literal value.
|
|
char[]
|
GetSuffix(int len)
Get the suffix.
|
|
void
|
ReInit(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize)
Reinitialise.
|
|
void
|
ReInit(InputStream dstream, int startline, int startcolumn)
Reinitialise.
|
|
void
|
ReInit(InputStream dstream)
Reinitialise.
|
|
void
|
ReInit(Reader dstream, int startline, int startcolumn, int buffersize)
Reinitialise.
|
|
void
|
ReInit(InputStream dstream, String encoding, int startline, int startcolumn)
Reinitialise.
|
|
void
|
ReInit(InputStream dstream, String encoding)
Reinitialise.
|
|
void
|
ReInit(Reader dstream)
Reinitialise.
|
|
void
|
ReInit(InputStream dstream, int startline, int startcolumn, int buffersize)
Reinitialise.
|
|
void
|
ReInit(Reader dstream, int startline, int startcolumn)
Reinitialise.
|
|
void
|
adjustBeginLineColumn(int newLine, int newCol)
Method to adjust line and column numbers for the start of a token.
|
|
void
|
backup(int amount)
Backup a number of characters.
|
|
int
|
getBeginColumn()
Get token beginning column number.
|
|
int
|
getBeginLine()
Get token beginning line number.
|
|
int
|
getColumn()
|
|
int
|
getEndColumn()
Get token end column number.
|
|
int
|
getEndLine()
Get token end line number.
|
|
int
|
getLine()
|
|
char
|
readChar()
Read a character.
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
Constants
public
static
final
boolean
staticFlag
Whether parser is static.
Constant Value:
false
Fields
protected
int[]
bufcolumn
protected
Reader
inputStream
protected
int
maxNextCharInd
protected
boolean
prevCharIsCR
protected
boolean
prevCharIsLF
Public Constructors
public
SimpleCharStream
(Reader dstream, int startline, int startcolumn, int buffersize)
Parameters
| dstream
| |
| startline
| |
| startcolumn
| |
| buffersize
| |
public
SimpleCharStream
(Reader dstream, int startline, int startcolumn)
Parameters
| dstream
| |
| startline
| |
| startcolumn
| |
public
SimpleCharStream
(Reader dstream)
public
SimpleCharStream
(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize)
Parameters
| dstream
| |
| encoding
| |
| startline
| |
| startcolumn
| |
| buffersize
| |
Throws
| UnsupportedEncodingException
| |
public
SimpleCharStream
(InputStream dstream, int startline, int startcolumn, int buffersize)
Parameters
| dstream
| |
| startline
| |
| startcolumn
| |
| buffersize
| |
public
SimpleCharStream
(InputStream dstream, String encoding, int startline, int startcolumn)
Parameters
| dstream
| |
| encoding
| |
| startline
| |
| startcolumn
| |
Throws
| UnsupportedEncodingException
| |
public
SimpleCharStream
(InputStream dstream, int startline, int startcolumn)
Parameters
| dstream
| |
| startline
| |
| startcolumn
| |
public
SimpleCharStream
(InputStream dstream, String encoding)
Throws
| UnsupportedEncodingException
| |
public
SimpleCharStream
(InputStream dstream)
Public Methods
public
char
BeginToken
()
public
void
Done
()
Reset buffer when finished.
public
String
GetImage
()
public
char[]
GetSuffix
(int len)
public
void
ReInit
(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize)
Parameters
| dstream
| |
| encoding
| |
| startline
| |
| startcolumn
| |
| buffersize
| |
Throws
| UnsupportedEncodingException
| |
public
void
ReInit
(InputStream dstream, int startline, int startcolumn)
Parameters
| dstream
| |
| startline
| |
| startcolumn
| |
public
void
ReInit
(InputStream dstream)
public
void
ReInit
(Reader dstream, int startline, int startcolumn, int buffersize)
Parameters
| dstream
| |
| startline
| |
| startcolumn
| |
| buffersize
| |
public
void
ReInit
(InputStream dstream, String encoding, int startline, int startcolumn)
Parameters
| dstream
| |
| encoding
| |
| startline
| |
| startcolumn
| |
Throws
| UnsupportedEncodingException
| |
public
void
ReInit
(InputStream dstream, String encoding)
Throws
| UnsupportedEncodingException
| |
public
void
ReInit
(Reader dstream)
public
void
ReInit
(InputStream dstream, int startline, int startcolumn, int buffersize)
Parameters
| dstream
| |
| startline
| |
| startcolumn
| |
| buffersize
| |
public
void
ReInit
(Reader dstream, int startline, int startcolumn)
Parameters
| dstream
| |
| startline
| |
| startcolumn
| |
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
int
getBeginColumn
()
Get token beginning column number.
public
int
getBeginLine
()
Get token beginning line number.
public
int
getEndColumn
()
Get token end column number.
public
int
getEndLine
()
Get token end line number.
Protected Methods
protected
void
ExpandBuff
(boolean wrapAround)
protected
void
FillBuff
()
protected
void
UpdateLineColumn
(char c)
protected
int
getTabSize
(int i)
protected
void
setTabSize
(int i)