public class CSSTokenRecovery extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
APOS |
static int |
CHARSET |
static int |
IMPORT |
static int |
INVALID_STRING |
static int |
QUOT |
static int |
RCURLY |
static int |
RPAREN |
static int |
STRING |
| Constructor and Description |
|---|
CSSTokenRecovery(org.antlr.v4.runtime.Lexer lexer,
org.antlr.v4.runtime.CharStream input,
CSSLexerState ls,
org.slf4j.Logger log) |
| Modifier and Type | Method and Description |
|---|---|
void |
end() |
void |
expecting(int token) |
CSSToken |
generateEOFRecover()
Recovers from unexpected EOF by preparing
new token
|
boolean |
isAtEof() |
org.antlr.v4.runtime.Token |
nextToken()
Implements Lexer's next token with extra token passing from
recovery function
|
boolean |
recover() |
public static final int APOS
public static final int QUOT
public static final int RPAREN
public static final int RCURLY
public static final int IMPORT
public static final int CHARSET
public static final int STRING
public static final int INVALID_STRING
public CSSTokenRecovery(org.antlr.v4.runtime.Lexer lexer,
org.antlr.v4.runtime.CharStream input,
CSSLexerState ls,
org.slf4j.Logger log)
public boolean isAtEof()
public void expecting(int token)
public void end()
public boolean recover()
public org.antlr.v4.runtime.Token nextToken()
public CSSToken generateEOFRecover()
Copyright © 2018. All rights reserved.