public final class VelocityCharStream extends Object implements CharStream
| Modifier and Type | Field and Description |
|---|---|
int |
bufpos |
static boolean |
STATIC_FLAG |
| Constructor and Description |
|---|
VelocityCharStream(InputStream dstream,
int startline,
int startcolumn) |
VelocityCharStream(InputStream dstream,
int startline,
int startcolumn,
int buffersize) |
VelocityCharStream(Reader dstream,
int startline,
int startcolumn) |
VelocityCharStream(Reader dstream,
int startline,
int startcolumn,
int buffersize) |
| Modifier and Type | Method and Description |
|---|---|
void |
adjustBeginLineColumn(int newLine,
int newCol)
Method to adjust line and column numbers for the start of a token.
|
void |
backup(int amount) |
char |
BeginToken() |
void |
Done() |
int |
getBeginColumn() |
int |
getBeginLine() |
int |
getColumn()
Deprecated.
|
int |
getEndColumn() |
int |
getEndLine() |
String |
GetImage() |
int |
getLine()
Deprecated.
|
char[] |
GetSuffix(int len) |
char |
readChar() |
void |
ReInit(InputStream dstream,
int startline,
int startcolumn) |
void |
ReInit(InputStream dstream,
int startline,
int startcolumn,
int buffersize) |
void |
ReInit(Reader dstream,
int startline,
int startcolumn) |
void |
ReInit(Reader dstream,
int startline,
int startcolumn,
int buffersize) |
public static final boolean STATIC_FLAG
public int bufpos
public VelocityCharStream(Reader dstream, int startline, int startcolumn, int buffersize)
dstream - startline - startcolumn - buffersize - public VelocityCharStream(Reader dstream, int startline, int startcolumn)
dstream - startline - startcolumn - public VelocityCharStream(InputStream dstream, int startline, int startcolumn, int buffersize)
dstream - startline - startcolumn - buffersize - public VelocityCharStream(InputStream dstream, int startline, int startcolumn)
dstream - startline - startcolumn - public char BeginToken()
throws IOException
BeginToken in interface CharStreamIOExceptionorg.apache.velocity.runtime.parser.CharStream#BeginToken()public char readChar()
throws IOException
readChar in interface CharStreamIOExceptionorg.apache.velocity.runtime.parser.CharStream#readChar()public int getColumn()
getColumn in interface CharStreamorg.apache.velocity.runtime.parser.CharStream#getColumn()public int getLine()
getLine in interface CharStreamorg.apache.velocity.runtime.parser.CharStream#getLine()public int getEndColumn()
getEndColumn in interface CharStreamorg.apache.velocity.runtime.parser.CharStream#getEndColumn()public int getEndLine()
getEndLine in interface CharStreamorg.apache.velocity.runtime.parser.CharStream#getEndLine()public int getBeginColumn()
getBeginColumn in interface CharStreamorg.apache.velocity.runtime.parser.CharStream#getBeginColumn()public int getBeginLine()
getBeginLine in interface CharStreamorg.apache.velocity.runtime.parser.CharStream#getBeginLine()public void backup(int amount)
backup in interface CharStreamorg.apache.velocity.runtime.parser.CharStream#backup(int)public void ReInit(Reader dstream, int startline, int startcolumn, int buffersize)
dstream - startline - startcolumn - buffersize - public void ReInit(Reader dstream, int startline, int startcolumn)
dstream - startline - startcolumn - public void ReInit(InputStream dstream, int startline, int startcolumn, int buffersize)
dstream - startline - startcolumn - buffersize - public void ReInit(InputStream dstream, int startline, int startcolumn)
dstream - startline - startcolumn - public String GetImage()
GetImage in interface CharStreamorg.apache.velocity.runtime.parser.CharStream#GetImage()public char[] GetSuffix(int len)
GetSuffix in interface CharStreamorg.apache.velocity.runtime.parser.CharStream#GetSuffix(int)public void Done()
Done in interface CharStreamorg.apache.velocity.runtime.parser.CharStream#Done()public void adjustBeginLineColumn(int newLine,
int newCol)
newLine - newCol - Copyright © 2002–2016 InfoEther. All rights reserved.