public class JavaCharStreamAdapter
extends net.sourceforge.pmd.lang.ast.JavaCharStream
| Modifier and Type | Field and Description |
|---|---|
protected SimpleCharStream |
m_source |
| Constructor and Description |
|---|
JavaCharStreamAdapter(SimpleCharStream source) |
| 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.
|
protected void |
AdjustBuffSize() |
void |
backup(int amount)
Retreat.
|
char |
BeginToken() |
void |
Done()
Set buffers back to null when finished.
|
protected void |
ExpandBuff(boolean wrapAround) |
protected void |
FillBuff() |
int |
getBeginColumn() |
int |
getBeginLine() |
int |
getColumn()
Deprecated.
|
int |
getEndColumn()
Get end column.
|
int |
getEndLine()
Get end line.
|
String |
GetImage() |
int |
getLine()
Deprecated.
|
char[] |
GetSuffix(int len) |
protected int |
getTabSize(int i) |
protected char |
ReadByte() |
char |
readChar()
Read a character.
|
void |
ReInit(InputStream dstream)
Reinitialise.
|
void |
ReInit(InputStream dstream,
int startline,
int startcolumn)
Reinitialise.
|
void |
ReInit(InputStream dstream,
int startline,
int startcolumn,
int buffersize)
Reinitialise.
|
void |
ReInit(InputStream dstream,
String encoding)
Reinitialise.
|
void |
ReInit(InputStream dstream,
String encoding,
int startline,
int startcolumn)
Reinitialise.
|
void |
ReInit(InputStream dstream,
String encoding,
int startline,
int startcolumn,
int buffersize)
Reinitialise.
|
void |
ReInit(Reader dstream)
Reinitialise.
|
void |
ReInit(Reader dstream,
int startline,
int startcolumn)
Reinitialise.
|
void |
ReInit(Reader dstream,
int startline,
int startcolumn,
int buffersize)
Reinitialise.
|
protected void |
setTabSize(int i) |
protected void |
UpdateLineColumn(char c) |
protected SimpleCharStream m_source
public JavaCharStreamAdapter(SimpleCharStream source)
protected void setTabSize(int i)
setTabSize in class net.sourceforge.pmd.lang.ast.JavaCharStreamprotected int getTabSize(int i)
getTabSize in class net.sourceforge.pmd.lang.ast.JavaCharStreamprotected void ExpandBuff(boolean wrapAround)
ExpandBuff in class net.sourceforge.pmd.lang.ast.JavaCharStreamprotected void FillBuff()
throws IOException
FillBuff in class net.sourceforge.pmd.lang.ast.JavaCharStreamIOExceptionprotected char ReadByte()
throws IOException
ReadByte in class net.sourceforge.pmd.lang.ast.JavaCharStreamIOExceptionpublic char BeginToken()
throws IOException
BeginToken in interface net.sourceforge.pmd.lang.ast.CharStreamBeginToken in class net.sourceforge.pmd.lang.ast.JavaCharStreamIOExceptionprotected void AdjustBuffSize()
AdjustBuffSize in class net.sourceforge.pmd.lang.ast.JavaCharStreamprotected void UpdateLineColumn(char c)
UpdateLineColumn in class net.sourceforge.pmd.lang.ast.JavaCharStreampublic char readChar()
throws IOException
readChar in interface net.sourceforge.pmd.lang.ast.CharStreamreadChar in class net.sourceforge.pmd.lang.ast.JavaCharStreamIOExceptionpublic int getColumn()
getColumn in interface net.sourceforge.pmd.lang.ast.CharStreamgetColumn in class net.sourceforge.pmd.lang.ast.JavaCharStreamgetEndColumn()public int getLine()
getLine in interface net.sourceforge.pmd.lang.ast.CharStreamgetLine in class net.sourceforge.pmd.lang.ast.JavaCharStreamgetEndLine()public int getEndColumn()
getEndColumn in interface net.sourceforge.pmd.lang.ast.CharStreamgetEndColumn in class net.sourceforge.pmd.lang.ast.JavaCharStreampublic int getEndLine()
getEndLine in interface net.sourceforge.pmd.lang.ast.CharStreamgetEndLine in class net.sourceforge.pmd.lang.ast.JavaCharStreampublic int getBeginColumn()
getBeginColumn in interface net.sourceforge.pmd.lang.ast.CharStreamgetBeginColumn in class net.sourceforge.pmd.lang.ast.JavaCharStreampublic int getBeginLine()
getBeginLine in interface net.sourceforge.pmd.lang.ast.CharStreamgetBeginLine in class net.sourceforge.pmd.lang.ast.JavaCharStreampublic void backup(int amount)
backup in interface net.sourceforge.pmd.lang.ast.CharStreambackup in class net.sourceforge.pmd.lang.ast.JavaCharStreampublic void ReInit(Reader dstream, int startline, int startcolumn, int buffersize)
ReInit in class net.sourceforge.pmd.lang.ast.JavaCharStreampublic void ReInit(Reader dstream, int startline, int startcolumn)
ReInit in class net.sourceforge.pmd.lang.ast.JavaCharStreampublic void ReInit(Reader dstream)
ReInit in class net.sourceforge.pmd.lang.ast.JavaCharStreampublic void ReInit(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize) throws UnsupportedEncodingException
ReInit in class net.sourceforge.pmd.lang.ast.JavaCharStreamUnsupportedEncodingExceptionpublic void ReInit(InputStream dstream, int startline, int startcolumn, int buffersize)
ReInit in class net.sourceforge.pmd.lang.ast.JavaCharStreampublic void ReInit(InputStream dstream, String encoding, int startline, int startcolumn) throws UnsupportedEncodingException
ReInit in class net.sourceforge.pmd.lang.ast.JavaCharStreamUnsupportedEncodingExceptionpublic void ReInit(InputStream dstream, int startline, int startcolumn)
ReInit in class net.sourceforge.pmd.lang.ast.JavaCharStreampublic void ReInit(InputStream dstream, String encoding) throws UnsupportedEncodingException
ReInit in class net.sourceforge.pmd.lang.ast.JavaCharStreamUnsupportedEncodingExceptionpublic void ReInit(InputStream dstream)
ReInit in class net.sourceforge.pmd.lang.ast.JavaCharStreampublic String GetImage()
GetImage in interface net.sourceforge.pmd.lang.ast.CharStreamGetImage in class net.sourceforge.pmd.lang.ast.JavaCharStreampublic char[] GetSuffix(int len)
GetSuffix in interface net.sourceforge.pmd.lang.ast.CharStreamGetSuffix in class net.sourceforge.pmd.lang.ast.JavaCharStreampublic void Done()
Done in interface net.sourceforge.pmd.lang.ast.CharStreamDone in class net.sourceforge.pmd.lang.ast.JavaCharStreampublic void adjustBeginLineColumn(int newLine,
int newCol)
adjustBeginLineColumn in class net.sourceforge.pmd.lang.ast.JavaCharStreamCopyright © 2013. All Rights Reserved.