net.sourceforge.pmd.lang.ast.CharStream
public final class VelocityCharStream extends java.lang.Object implements net.sourceforge.pmd.lang.ast.CharStream
Modifier and Type | Field | Description |
---|---|---|
int |
bufpos |
|
static boolean |
STATIC_FLAG |
Constructor | Description |
---|---|
VelocityCharStream(java.io.InputStream dstream,
int startline,
int startcolumn) |
|
VelocityCharStream(java.io.InputStream dstream,
int startline,
int startcolumn,
int buffersize) |
|
VelocityCharStream(java.io.Reader dstream,
int startline,
int startcolumn) |
|
VelocityCharStream(java.io.Reader dstream,
int startline,
int startcolumn,
int buffersize) |
Modifier and Type | Method | 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() |
|
java.lang.String |
GetImage() |
|
int |
getLine() |
Deprecated.
|
char[] |
GetSuffix(int len) |
|
char |
readChar() |
|
void |
reInit(java.io.InputStream dstream,
int startline,
int startcolumn) |
|
void |
reInit(java.io.InputStream dstream,
int startline,
int startcolumn,
int buffersize) |
|
void |
reInit(java.io.Reader dstream,
int startline,
int startcolumn) |
|
void |
reInit(java.io.Reader dstream,
int startline,
int startcolumn,
int buffersize) |
public static final boolean STATIC_FLAG
public int bufpos
public VelocityCharStream(java.io.InputStream dstream, int startline, int startcolumn, int buffersize)
dstream
- startline
- startcolumn
- buffersize
- public VelocityCharStream(java.io.InputStream dstream, int startline, int startcolumn)
dstream
- startline
- startcolumn
- public VelocityCharStream(java.io.Reader dstream, int startline, int startcolumn, int buffersize)
dstream
- startline
- startcolumn
- buffersize
- public VelocityCharStream(java.io.Reader dstream, int startline, int startcolumn)
dstream
- startline
- startcolumn
- public char BeginToken() throws java.io.IOException
BeginToken
in interface net.sourceforge.pmd.lang.ast.CharStream
java.io.IOException
public char readChar() throws java.io.IOException
readChar
in interface net.sourceforge.pmd.lang.ast.CharStream
java.io.IOException
@Deprecated public int getColumn()
getColumn
in interface net.sourceforge.pmd.lang.ast.CharStream
@Deprecated public int getLine()
getLine
in interface net.sourceforge.pmd.lang.ast.CharStream
public int getEndColumn()
getEndColumn
in interface net.sourceforge.pmd.lang.ast.CharStream
public int getEndLine()
getEndLine
in interface net.sourceforge.pmd.lang.ast.CharStream
public int getBeginColumn()
getBeginColumn
in interface net.sourceforge.pmd.lang.ast.CharStream
public int getBeginLine()
getBeginLine
in interface net.sourceforge.pmd.lang.ast.CharStream
public void backup(int amount)
backup
in interface net.sourceforge.pmd.lang.ast.CharStream
public void reInit(java.io.Reader dstream, int startline, int startcolumn, int buffersize)
dstream
- startline
- startcolumn
- buffersize
- public void reInit(java.io.Reader dstream, int startline, int startcolumn)
dstream
- startline
- startcolumn
- public void reInit(java.io.InputStream dstream, int startline, int startcolumn, int buffersize)
dstream
- startline
- startcolumn
- buffersize
- public void reInit(java.io.InputStream dstream, int startline, int startcolumn)
dstream
- startline
- startcolumn
- public java.lang.String GetImage()
GetImage
in interface net.sourceforge.pmd.lang.ast.CharStream
public char[] GetSuffix(int len)
GetSuffix
in interface net.sourceforge.pmd.lang.ast.CharStream
public void Done()
Done
in interface net.sourceforge.pmd.lang.ast.CharStream
public void adjustBeginLineColumn(int newLine, int newCol)
newLine
- newCol
- Copyright © 2002–2018 PMD. All rights reserved.