Top Description Inners Fields Constructors Methods
org.apache.groovy.parser.antlr4

public Class GroovyLangLexer

extends GroovyLexer
Class Inheritance
Imports
org.antlr.v4.runtime.CharStream, .CharStreams, .Lexer, .LexerNoViableAltException, org.antlr.v4.runtime.atn.ATN, .LexerATNSimulator, org.apache.groovy.parser.antlr4.internal.atnmanager.LexerAtnManager, java.io.IOException, .Reader

The lexer for Groovy programming language, which is based on the lexer generated by Antlr4

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Inherited from org.apache.groovy.parser.antlr4.GroovyLexer:
_ATN_serializedATNABSTRACTADDADD_ASSIGNANDAND_ASSIGNARROWASASSERTASSIGNATBITANDBITNOTBITORBooleanLiteralBREAKBuiltInPrimitiveTypeCapitalizedIdentifierCASECATCHchannelNamesCLASSCOLONCOMMACONSTCONTINUEDECDEFDEFAULTDIVDIV_ASSIGNDODOLLAR_SLASHY_GSTRING_MODEDOTDQ_GSTRING_MODEELLIPSISELSEELVISELVIS_ASSIGNENUMEQUALEXTENDSFINALFINALLYFloatingPointLiteralFORGEGOTOGSTRING_PATH_MODEGSTRING_TYPE_SELECTOR_MODEGStringBeginGStringEndGStringPartGStringPathPartGTIDENTICALIdentifierIFIMPLEMENTSIMPORTININCINSTANCEOFIntegerLiteralINTERFACELBRACELBRACKLELPARENLSHIFT_ASSIGNLTMETHOD_POINTERMETHOD_REFERENCEMODMOD_ASSIGNmodeNamesMULMUL_ASSIGNNATIVENEWNLNOTNOT_IDENTICALNOT_INNOT_INSTANCEOFNOTEQUALNullLiteralOROR_ASSIGNPACKAGEPOWERPOWER_ASSIGNPRIVATEPROTECTEDPUBLICQUESTIONRANGE_EXCLUSIVERANGE_INCLUSIVERBRACERBRACKREGEX_FINDREGEX_MATCHRETURNRollBackOneRPARENRSHIFT_ASSIGNruleNamesSAFE_CHAIN_DOTSAFE_DOTSEMISH_COMMENTSLASHY_GSTRING_MODESPACESHIPSPREAD_DOTSTATICSTRICTFPStringLiteralSUBSUB_ASSIGNSUPERSWITCHSYNCHRONIZEDTDQ_GSTRING_MODETHISTHREADSAFETHROWTHROWStokenNamesTRAITTRANSIENTTRYUNEXPECTED_CHARURSHIFT_ASSIGNVARVOCABULARYVOIDVOLATILEWHILEWSXORXOR_ASSIGN

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public void
protected void
rollbackOneChar()

Overrides org.apache.groovy.parser.antlr4.GroovyLexer.rollbackOneChar.

just a hook, which will be overrided by GroovyLangLexer
Inherited from org.apache.groovy.parser.antlr4.GroovyLexer:
actionemitenterParenCallbackexitParenCallbackgetChannelNamesgetErrorColumngetErrorLinegetGrammarFileNamegetModeNamesgetRuleNamesgetSerializedATNgetSyntaxErrorSourcegetTokenNamesgetVocabularyisErrorIgnoredpopModesempredsetErrorIgnored

Constructor Detail

GroovyLangLexerback to summary
public GroovyLangLexer(Reader reader) throws IOException
GroovyLangLexerback to summary
public GroovyLangLexer(CharStream input)

Method Detail

recoverback to summary
public void recover(LexerNoViableAltException e)

Overrides org.antlr.v4.runtime.Lexer.recover.

Annotations
@Override
rollbackOneCharback to summary
protected void rollbackOneChar()

Overrides org.apache.groovy.parser.antlr4.GroovyLexer.rollbackOneChar.

Doc from org.apache.groovy.parser.antlr4.GroovyLexer.rollbackOneChar.

just a hook, which will be overrided by GroovyLangLexer

Annotations
@Override
org.apache.groovy.parser.antlr4 back to summary

private Class GroovyLangLexer.PositionAdjustingLexerATNSimulator

extends LexerATNSimulator
Class Inheritance

Field Summary

Inherited from org.antlr.v4.runtime.atn.LexerATNSimulator:
charPositionInLinedebugdfa_debuglinematch_callsMAX_DFA_EDGEMIN_DFA_EDGEmodeoptimize_tail_callsprevAcceptrecogstartIndex

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
resetAcceptPosition(CharStream input, int index, int line, int charPositionInLine)

Inherited from org.antlr.v4.runtime.atn.LexerATNSimulator:
acceptaddDFAEdgeaddDFAEdgeaddDFAStatecaptureSimStateclosurecomputeStartStatecomputeTargetStateconsumecopyStateevaluatePredicateexecATNfailOrAcceptgetCharPositionInLinegetDFAgetEpsilonTargetgetExistingTargetStategetLinegetReachableConfigSetgetReachableTargetgetTextgetTokenNamematchmatchATNresetsetCharPositionInLinesetLine

Constructor Detail

PositionAdjustingLexerATNSimulatorback to summary
public PositionAdjustingLexerATNSimulator(Lexer recog, ATN atn)

Method Detail

resetAcceptPositionback to summary
protected void resetAcceptPosition(CharStream input, int index, int line, int charPositionInLine)