| Constructor and Description |
|---|
CssLexer(Reader source)
Ctor
|
CssLexer(Reader source,
CssParser.Syntax lexSyntax)
Ctor
|
CssLexer(String text)
Ctor
|
CssLexer(String text,
CssParser.Syntax lexSyntax)
Ctor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearLastError()
Clears the last error
|
static String |
decodeString(String value)
Properly String-decodes the value
|
static String |
encodeString(String value)
Properly String-encodes the value
|
int |
getColumn()
Gets the current column within the input
|
int |
getIndex()
Gets the current index within the input
|
Throwable |
getLastError()
Returns the last exception encountered
|
int |
getLine()
Gets the current line within the input
|
boolean |
hasNext()
Determines if any more tokens are available
|
CssToken |
next()
Returns the next token in the input
|
void |
remove()
Altering the input is not supported
|
CssParser.Syntax |
syntax()
Gets the syntax used
|
ArrayList<CssToken> |
toList()
Produces a list of the remaining tokens
|
public CssLexer(String text)
text - public CssLexer(String text, CssParser.Syntax lexSyntax)
text - allowLineComments - public CssLexer(Reader source)
source - public CssLexer(Reader source, CssParser.Syntax lexSyntax)
source - allowLineComments - public int getLine()
public int getColumn()
public int getIndex()
public Throwable getLastError()
public void clearLastError()
public CssParser.Syntax syntax()
public boolean hasNext()
public CssToken next()
public void remove()
throws UnsupportedOperationException
remove in interface Iterator<CssToken>UnsupportedOperationExceptionpublic static String decodeString(String value)
Copyright © 2014. All rights reserved.