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.
|
java.lang.String |
GetImage() |
int |
getLine()
Deprecated.
|
char[] |
GetSuffix(int len) |
protected int |
getTabSize(int i) |
protected char |
ReadByte() |
char |
readChar()
Read a character.
|
void |
ReInit(java.io.InputStream dstream)
Reinitialise.
|
void |
ReInit(java.io.InputStream dstream,
int startline,
int startcolumn)
Reinitialise.
|
void |
ReInit(java.io.InputStream dstream,
int startline,
int startcolumn,
int buffersize)
Reinitialise.
|
void |
ReInit(java.io.InputStream dstream,
java.lang.String encoding)
Reinitialise.
|
void |
ReInit(java.io.InputStream dstream,
java.lang.String encoding,
int startline,
int startcolumn)
Reinitialise.
|
void |
ReInit(java.io.InputStream dstream,
java.lang.String encoding,
int startline,
int startcolumn,
int buffersize)
Reinitialise.
|
void |
ReInit(java.io.Reader dstream)
Reinitialise.
|
void |
ReInit(java.io.Reader dstream,
int startline,
int startcolumn)
Reinitialise.
|
void |
ReInit(java.io.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.JavaCharStream
protected int getTabSize(int i)
getTabSize
in class net.sourceforge.pmd.lang.ast.JavaCharStream
protected void ExpandBuff(boolean wrapAround)
ExpandBuff
in class net.sourceforge.pmd.lang.ast.JavaCharStream
protected void FillBuff() throws java.io.IOException
FillBuff
in class net.sourceforge.pmd.lang.ast.JavaCharStream
java.io.IOException
protected char ReadByte() throws java.io.IOException
ReadByte
in class net.sourceforge.pmd.lang.ast.JavaCharStream
java.io.IOException
public char BeginToken() throws java.io.IOException
BeginToken
in interface net.sourceforge.pmd.lang.ast.CharStream
BeginToken
in class net.sourceforge.pmd.lang.ast.JavaCharStream
java.io.IOException
protected void AdjustBuffSize()
AdjustBuffSize
in class net.sourceforge.pmd.lang.ast.JavaCharStream
protected void UpdateLineColumn(char c)
UpdateLineColumn
in class net.sourceforge.pmd.lang.ast.JavaCharStream
public char readChar() throws java.io.IOException
readChar
in interface net.sourceforge.pmd.lang.ast.CharStream
readChar
in class net.sourceforge.pmd.lang.ast.JavaCharStream
java.io.IOException
public int getColumn()
getColumn
in interface net.sourceforge.pmd.lang.ast.CharStream
getColumn
in class net.sourceforge.pmd.lang.ast.JavaCharStream
getEndColumn()
public int getLine()
getLine
in interface net.sourceforge.pmd.lang.ast.CharStream
getLine
in class net.sourceforge.pmd.lang.ast.JavaCharStream
getEndLine()
public int getEndColumn()
getEndColumn
in interface net.sourceforge.pmd.lang.ast.CharStream
getEndColumn
in class net.sourceforge.pmd.lang.ast.JavaCharStream
public int getEndLine()
getEndLine
in interface net.sourceforge.pmd.lang.ast.CharStream
getEndLine
in class net.sourceforge.pmd.lang.ast.JavaCharStream
public int getBeginColumn()
getBeginColumn
in interface net.sourceforge.pmd.lang.ast.CharStream
getBeginColumn
in class net.sourceforge.pmd.lang.ast.JavaCharStream
public int getBeginLine()
getBeginLine
in interface net.sourceforge.pmd.lang.ast.CharStream
getBeginLine
in class net.sourceforge.pmd.lang.ast.JavaCharStream
public void backup(int amount)
backup
in interface net.sourceforge.pmd.lang.ast.CharStream
backup
in class net.sourceforge.pmd.lang.ast.JavaCharStream
public void ReInit(java.io.Reader dstream, int startline, int startcolumn, int buffersize)
ReInit
in class net.sourceforge.pmd.lang.ast.JavaCharStream
public void ReInit(java.io.Reader dstream, int startline, int startcolumn)
ReInit
in class net.sourceforge.pmd.lang.ast.JavaCharStream
public void ReInit(java.io.Reader dstream)
ReInit
in class net.sourceforge.pmd.lang.ast.JavaCharStream
public void ReInit(java.io.InputStream dstream, java.lang.String encoding, int startline, int startcolumn, int buffersize) throws java.io.UnsupportedEncodingException
ReInit
in class net.sourceforge.pmd.lang.ast.JavaCharStream
java.io.UnsupportedEncodingException
public void ReInit(java.io.InputStream dstream, int startline, int startcolumn, int buffersize)
ReInit
in class net.sourceforge.pmd.lang.ast.JavaCharStream
public void ReInit(java.io.InputStream dstream, java.lang.String encoding, int startline, int startcolumn) throws java.io.UnsupportedEncodingException
ReInit
in class net.sourceforge.pmd.lang.ast.JavaCharStream
java.io.UnsupportedEncodingException
public void ReInit(java.io.InputStream dstream, int startline, int startcolumn)
ReInit
in class net.sourceforge.pmd.lang.ast.JavaCharStream
public void ReInit(java.io.InputStream dstream, java.lang.String encoding) throws java.io.UnsupportedEncodingException
ReInit
in class net.sourceforge.pmd.lang.ast.JavaCharStream
java.io.UnsupportedEncodingException
public void ReInit(java.io.InputStream dstream)
ReInit
in class net.sourceforge.pmd.lang.ast.JavaCharStream
public java.lang.String GetImage()
GetImage
in interface net.sourceforge.pmd.lang.ast.CharStream
GetImage
in class net.sourceforge.pmd.lang.ast.JavaCharStream
public char[] GetSuffix(int len)
GetSuffix
in interface net.sourceforge.pmd.lang.ast.CharStream
GetSuffix
in class net.sourceforge.pmd.lang.ast.JavaCharStream
public void Done()
Done
in interface net.sourceforge.pmd.lang.ast.CharStream
Done
in class net.sourceforge.pmd.lang.ast.JavaCharStream
public void adjustBeginLineColumn(int newLine, int newCol)
adjustBeginLineColumn
in class net.sourceforge.pmd.lang.ast.JavaCharStream
Copyright © 2013. All Rights Reserved.