@CompileStatic class CurlyCountingGroovyLexer extends GroovyLangLexer
patching GroovyLangLexer to get access to Paren level
Fields inherited from class | Fields |
---|---|
class GroovyLexer |
DQ_GSTRING_MODE, StringLiteral, VOCABULARY, _ATN, _serializedATN, channelNames, modeNames, ruleNames, tokenNames |
Constructor and description |
---|
protected CurlyCountingGroovyLexer(Reader reader) |
Type Params | Return Type | Name and description |
---|---|---|
|
int |
countCurlyLevel() |
|
static CurlyCountingGroovyLexer |
createGroovyLexer(String src) |
|
protected void |
enterParenCallback(String text) |
|
protected void |
exitParenCallback(String text) |
|
int |
getCurlyLevel() |
|
List<Token> |
toList() |
Methods inherited from class | Name |
---|---|
class GroovyLangLexer |
recover, rollbackOneChar |
class GroovyLexer |
action, emit, enterParenCallback, exitParenCallback, getChannelNames, getErrorColumn, getErrorLine, getGrammarFileName, getModeNames, getRuleNames, getSerializedATN, getSyntaxErrorSource, getTokenNames, getVocabulary, isErrorIgnored, popMode, rollbackOneChar, sempred, setErrorIgnored |
Copyright © 2003-2022 The Apache Software Foundation. All rights reserved.