public class CSSLexer
extends org.antlr.v4.runtime.Lexer
| Modifier and Type | Field and Description |
|---|---|
static org.antlr.v4.runtime.atn.ATN |
_ATN |
protected static org.antlr.v4.runtime.dfa.DFA[] |
_decisionToDFA |
static String |
_serializedATN |
protected static org.antlr.v4.runtime.atn.PredictionContextCache |
_sharedContextCache |
static int |
ADJACENT |
static int |
AMPERSAND |
static int |
APOS |
static int |
ASTERISK |
static int |
ATBLOCK |
static int |
ATKEYWORD |
static int |
ATTRIBUTE |
static int |
BRACEBLOCK |
static int |
CDC |
static int |
CDO |
static int |
CLASSKEYWORD |
static int |
COLON |
static int |
COMMA |
static int |
COMMENT |
static int |
CONTAINS |
static int |
CTRL |
static int |
CURLYBLOCK |
static int |
DASHMATCH |
static int |
DECLARATION |
static int |
DESCENDANT |
static int |
DIMENSION |
static int |
ELEMENT |
static int |
ENDSWITH |
static int |
EQUALS |
static int |
EXCLAMATION |
static int |
EXPRESSION |
static int |
FONTFACE |
static int |
FUNCTION |
static int |
GREATER |
static int |
HASH |
static int |
HAT |
static int |
CHARSET |
protected boolean |
charsetChanged |
static int |
CHILD |
static int |
IDENT |
static int |
IMPORT |
static int |
IMPORTANT |
static int |
INCLUDES |
static int |
INDEX |
static int |
INLINESTYLE |
static int |
INVALID_ATSTATEMENT |
static int |
INVALID_DECLARATION |
static int |
INVALID_DIRECTIVE |
static int |
INVALID_IMPORT |
static int |
INVALID_SELECTOR |
static int |
INVALID_SELPART |
static int |
INVALID_STATEMENT |
static int |
INVALID_STRING |
static int |
INVALID_TOKEN |
protected CSSToken |
lastUnclosed |
static int |
LBRACE |
static int |
LCURLY |
static int |
LESS |
static int |
LPAREN |
protected CSSLexerState |
ls |
static int |
MARGIN_AREA |
static int |
MEDIA |
static int |
MEDIA_QUERY |
static int |
MINUS |
static String[] |
modeNames |
static int |
NUMBER |
static int |
PAGE |
static int |
PARENBLOCK |
static int |
PERCENT |
static int |
PERCENTAGE |
static int |
PLUS |
static int |
POUND |
static int |
PRECEDING |
static int |
PSEUDOCLASS |
static int |
PSEUDOELEM |
static int |
QUESTION |
static int |
QUOT |
static int |
RBRACE |
static int |
RCURLY |
static int |
RPAREN |
static int |
RULE |
static String[] |
ruleNames |
static int |
S |
static int |
SELECTOR |
static int |
SEMICOLON |
static int |
SET |
static int |
SL_COMMENT |
static int |
SLASH |
static int |
STARTSWITH |
static int |
STRING |
static int |
STRING_CHAR |
static int |
STRING_MACR |
static int |
STYLESHEET |
protected CSSTokenFactory |
tf
token facctory for generating custom tokens (CSSToken)
|
static int |
TILDE |
protected int |
tokencnt |
static String[] |
tokenNames
Deprecated.
Use
VOCABULARY instead. |
protected CSSTokenRecovery |
tr |
static int |
UNCLOSED_STRING |
static int |
UNCLOSED_STRING_MACR |
static int |
UNCLOSED_URI |
static int |
UNIRANGE |
static int |
URI |
static int |
VALUE |
static int |
VIEWPORT |
static org.antlr.v4.runtime.Vocabulary |
VOCABULARY |
_factory, _hitEOF, _channel, _input, _mode, _modeStack, _text, _token, _tokenFactorySourcePair, _tokenStartCharIndex, _tokenStartCharPositionInLine, _tokenStartLine, _type, DEFAULT_MODE, DEFAULT_TOKEN_CHANNEL, HIDDEN, MAX_CHAR_VALUE, MIN_CHAR_VALUE, MORE, SKIP| Constructor and Description |
|---|
CSSLexer(org.antlr.v4.runtime.CharStream input) |
| Modifier and Type | Method and Description |
|---|---|
void |
action(org.antlr.v4.runtime.RuleContext _localctx,
int ruleIndex,
int actionIndex) |
org.antlr.v4.runtime.Token |
emit()
Adds contextual information about nesting into token.
|
org.antlr.v4.runtime.atn.ATN |
getATN() |
String |
getGrammarFileName() |
String[] |
getModeNames() |
String[] |
getRuleNames() |
String |
getSerializedATN() |
String[] |
getTokenNames()
Deprecated.
|
org.antlr.v4.runtime.Vocabulary |
getVocabulary() |
void |
init()
This function must be called to initialize lexer's state.
|
org.antlr.v4.runtime.Token |
nextToken()
Overrides next token to match includes and to
recover from EOF
|
void |
recover(org.antlr.v4.runtime.RecognitionException re)
Does special token recovery for some cases
|
void |
reset() |
void |
setInputStream(org.antlr.v4.runtime.IntStream input)
Overrides inputStream to avoid setting input
stream after construction
|
emit, emitEOF, getAllTokens, getErrorDisplay, getErrorDisplay, getChannel, getCharErrorDisplay, getCharIndex, getCharPositionInLine, getInputStream, getLine, getSourceName, getText, getToken, getTokenFactory, getType, mode, more, notifyListeners, popMode, pushMode, recover, setChannel, setCharPositionInLine, setLine, setText, setToken, setTokenFactory, setType, skipaddErrorListener, getErrorHeader, getErrorListenerDispatch, getErrorListeners, getInterpreter, getParseInfo, getRuleIndexMap, getState, getTokenErrorDisplay, getTokenType, getTokenTypeMap, precpred, removeErrorListener, removeErrorListeners, sempred, setInterpreter, setStateprotected static final org.antlr.v4.runtime.dfa.DFA[] _decisionToDFA
protected static final org.antlr.v4.runtime.atn.PredictionContextCache _sharedContextCache
public static final int STYLESHEET
public static final int INLINESTYLE
public static final int ATBLOCK
public static final int CURLYBLOCK
public static final int PARENBLOCK
public static final int BRACEBLOCK
public static final int RULE
public static final int SELECTOR
public static final int ELEMENT
public static final int PSEUDOCLASS
public static final int PSEUDOELEM
public static final int ADJACENT
public static final int PRECEDING
public static final int CHILD
public static final int DESCENDANT
public static final int ATTRIBUTE
public static final int SET
public static final int DECLARATION
public static final int VALUE
public static final int MEDIA_QUERY
public static final int INVALID_STRING
public static final int INVALID_SELECTOR
public static final int INVALID_SELPART
public static final int INVALID_DECLARATION
public static final int INVALID_STATEMENT
public static final int INVALID_ATSTATEMENT
public static final int INVALID_IMPORT
public static final int INVALID_DIRECTIVE
public static final int IMPORTANT
public static final int IDENT
public static final int CHARSET
public static final int IMPORT
public static final int MEDIA
public static final int PAGE
public static final int MARGIN_AREA
public static final int VIEWPORT
public static final int FONTFACE
public static final int ATKEYWORD
public static final int CLASSKEYWORD
public static final int STRING
public static final int UNCLOSED_STRING
public static final int HASH
public static final int INDEX
public static final int NUMBER
public static final int PERCENTAGE
public static final int DIMENSION
public static final int URI
public static final int UNCLOSED_URI
public static final int UNIRANGE
public static final int CDO
public static final int CDC
public static final int SEMICOLON
public static final int COLON
public static final int COMMA
public static final int QUESTION
public static final int PERCENT
public static final int EQUALS
public static final int SLASH
public static final int GREATER
public static final int LESS
public static final int LCURLY
public static final int RCURLY
public static final int APOS
public static final int QUOT
public static final int LPAREN
public static final int RPAREN
public static final int LBRACE
public static final int RBRACE
public static final int EXCLAMATION
public static final int TILDE
public static final int MINUS
public static final int PLUS
public static final int ASTERISK
public static final int POUND
public static final int AMPERSAND
public static final int HAT
public static final int S
public static final int COMMENT
public static final int SL_COMMENT
public static final int EXPRESSION
public static final int FUNCTION
public static final int INCLUDES
public static final int DASHMATCH
public static final int STARTSWITH
public static final int ENDSWITH
public static final int CONTAINS
public static final int CTRL
public static final int INVALID_TOKEN
public static final int STRING_MACR
public static final int UNCLOSED_STRING_MACR
public static final int STRING_CHAR
public static String[] modeNames
public static final String[] ruleNames
public static final org.antlr.v4.runtime.Vocabulary VOCABULARY
@Deprecated public static final String[] tokenNames
VOCABULARY instead.protected int tokencnt
protected boolean charsetChanged
protected CSSLexerState ls
protected CSSToken lastUnclosed
protected CSSTokenFactory tf
protected CSSTokenRecovery tr
public static final String _serializedATN
public static final org.antlr.v4.runtime.atn.ATN _ATN
@Deprecated public String[] getTokenNames()
getTokenNames in class org.antlr.v4.runtime.Lexerpublic org.antlr.v4.runtime.Vocabulary getVocabulary()
getVocabulary in class org.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>public void init()
public void reset()
reset in class org.antlr.v4.runtime.Lexerpublic void setInputStream(org.antlr.v4.runtime.IntStream input)
setInputStream in class org.antlr.v4.runtime.Lexerpublic org.antlr.v4.runtime.Token nextToken()
nextToken in interface org.antlr.v4.runtime.TokenSourcenextToken in class org.antlr.v4.runtime.Lexerpublic org.antlr.v4.runtime.Token emit()
emit in class org.antlr.v4.runtime.Lexerpublic void recover(org.antlr.v4.runtime.RecognitionException re)
recover in class org.antlr.v4.runtime.Lexerpublic String getGrammarFileName()
getGrammarFileName in class org.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>public String[] getRuleNames()
getRuleNames in class org.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>public String getSerializedATN()
getSerializedATN in class org.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>public String[] getModeNames()
getModeNames in class org.antlr.v4.runtime.Lexerpublic org.antlr.v4.runtime.atn.ATN getATN()
getATN in class org.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>public void action(org.antlr.v4.runtime.RuleContext _localctx,
int ruleIndex,
int actionIndex)
action in class org.antlr.v4.runtime.Recognizer<Integer,org.antlr.v4.runtime.atn.LexerATNSimulator>Copyright © 2018. All rights reserved.