| Constructor and Description |
|---|
CssLexer(Reader reader)
Ctor
|
CssLexer(String text)
Ctor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowLineComments()
Gets if line comments are allowed
|
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
|
void |
setLineComments(boolean value)
Sets if line comments are allowed
|
ArrayList<CssToken> |
toList()
Produces a list of the remaining tokens
|
public CssLexer(String text)
text - public CssLexer(Reader reader)
reader - public int getLine()
public int getColumn()
public int getIndex()
public Throwable getLastError()
public void clearLastError()
public boolean allowLineComments()
public void setLineComments(boolean value)
value - 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.