public final class CssCharStream extends Object implements CharStream
Modifier and Type | Field and Description |
---|---|
int |
bufpos
Position in buffer.
|
static boolean |
staticFlag
Whether parser is static.
|
Constructor and Description |
---|
CssCharStream(Reader dstream,
int startline,
int startcolumn)
Constructor.
|
CssCharStream(Reader dstream,
int startline,
int startcolumn,
int buffersize)
Constructor.
|
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)
Backup a number of characters.
|
char |
BeginToken()
Start.
|
void |
Done()
Reset buffer when finished.
|
int |
getBeginColumn()
Get token beginning column number.
|
int |
getBeginLine()
Get token beginning line number.
|
int |
getColumn()
Deprecated.
|
int |
getEndColumn()
Get token end column number.
|
int |
getEndLine()
Get token end line number.
|
String |
GetImage()
Get token literal value.
|
int |
getLine()
Deprecated.
|
char[] |
GetSuffix(int len)
Get the suffix.
|
int |
getTabSize() |
boolean |
getTrackLineColumn() |
char |
readChar()
Read a character.
|
void |
setTabSize(int i) |
void |
setTrackLineColumn(boolean tlc) |
public static final boolean staticFlag
public int bufpos
public CssCharStream(Reader dstream, int startline, int startcolumn, int buffersize)
public CssCharStream(Reader dstream, int startline, int startcolumn)
public final char BeginToken() throws IOException
BeginToken
in interface CharStream
IOException
public final char readChar() throws IOException
readChar
in interface CharStream
IOException
@Deprecated public final int getColumn()
CharStream
getColumn
in interface CharStream
CharStream.getEndColumn()
@Deprecated public final int getLine()
CharStream
getLine
in interface CharStream
CharStream.getEndLine()
public final int getEndColumn()
getEndColumn
in interface CharStream
public final int getEndLine()
getEndLine
in interface CharStream
public final int getBeginColumn()
getBeginColumn
in interface CharStream
public final int getBeginLine()
getBeginLine
in interface CharStream
public final void backup(int amount)
backup
in interface CharStream
public final String GetImage()
GetImage
in interface CharStream
public final char[] GetSuffix(int len)
GetSuffix
in interface CharStream
public void Done()
Done
in interface CharStream
public void adjustBeginLineColumn(int newLine, int newCol)
public void setTabSize(int i)
setTabSize
in interface CharStream
public int getTabSize()
getTabSize
in interface CharStream
public boolean getTrackLineColumn()
getTrackLineColumn
in interface CharStream
public void setTrackLineColumn(boolean tlc)
setTrackLineColumn
in interface CharStream
Copyright © 1999–2022. All rights reserved.