Package org.qdl_lang.parsing
Class IniListenerImpl
- java.lang.Object
-
- org.qdl_lang.parsing.IniListenerImpl
-
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeListener,iniListener
public class IniListenerImpl extends Object implements iniListener
Created by Jeff Gaynor
on 10/11/21 at 8:15 AM
-
-
Constructor Summary
Constructors Constructor Description IniListenerImpl(QDLStem output)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckLexer(org.antlr.v4.runtime.ParserRuleContext pre)First cut of catching lexer exceptions and handling themprotected ObjectconvertEntryToValue(iniParser.EntryContext entryContext)voidenterEntries(iniParser.EntriesContext ctx)Enter a parse tree produced byiniParser.entries().voidenterEntry(iniParser.EntryContext ctx)Enter a parse tree produced byiniParser.entry().voidenterEveryRule(org.antlr.v4.runtime.ParserRuleContext parserRuleContext)voidenterIni(iniParser.IniContext ctx)Enter a parse tree produced byiniParser.ini().voidenterLine(iniParser.LineContext ctx)Enter a parse tree produced byiniParser.line().voidenterSection(iniParser.SectionContext ctx)Enter a parse tree produced byiniParser.section().voidenterSectionheader(iniParser.SectionheaderContext ctx)Enter a parse tree produced byiniParser.sectionheader().voidexitEntries(iniParser.EntriesContext ctx)Exit a parse tree produced byiniParser.entries().voidexitEntry(iniParser.EntryContext ctx)Exit a parse tree produced byiniParser.entry().voidexitEveryRule(org.antlr.v4.runtime.ParserRuleContext parserRuleContext)voidexitIni(iniParser.IniContext ctx)Exit a parse tree produced byiniParser.ini().voidexitLine(iniParser.LineContext ctx)Exit a parse tree produced byiniParser.line().voidexitSection(iniParser.SectionContext ctx)Exit a parse tree produced byiniParser.section().voidexitSectionheader(iniParser.SectionheaderContext ctx)Exit a parse tree produced byiniParser.sectionheader().QDLStemgetOutput()booleanisAllowListEntries()voidsetAllowListEntries(boolean allowListEntries)voidsetOutput(QDLStem output)voidvisitErrorNode(org.antlr.v4.runtime.tree.ErrorNode errorNode)voidvisitTerminal(org.antlr.v4.runtime.tree.TerminalNode terminalNode)
-
-
-
Constructor Detail
-
IniListenerImpl
public IniListenerImpl(QDLStem output)
-
-
Method Detail
-
getOutput
public QDLStem getOutput()
-
setOutput
public void setOutput(QDLStem output)
-
enterIni
public void enterIni(iniParser.IniContext ctx)
Description copied from interface:iniListenerEnter a parse tree produced byiniParser.ini().- Specified by:
enterIniin interfaceiniListener- Parameters:
ctx- the parse tree
-
exitIni
public void exitIni(iniParser.IniContext ctx)
Description copied from interface:iniListenerExit a parse tree produced byiniParser.ini().- Specified by:
exitIniin interfaceiniListener- Parameters:
ctx- the parse tree
-
enterSection
public void enterSection(iniParser.SectionContext ctx)
Description copied from interface:iniListenerEnter a parse tree produced byiniParser.section().- Specified by:
enterSectionin interfaceiniListener- Parameters:
ctx- the parse tree
-
exitSection
public void exitSection(iniParser.SectionContext ctx)
Description copied from interface:iniListenerExit a parse tree produced byiniParser.section().- Specified by:
exitSectionin interfaceiniListener- Parameters:
ctx- the parse tree
-
enterSectionheader
public void enterSectionheader(iniParser.SectionheaderContext ctx)
Description copied from interface:iniListenerEnter a parse tree produced byiniParser.sectionheader().- Specified by:
enterSectionheaderin interfaceiniListener- Parameters:
ctx- the parse tree
-
exitSectionheader
public void exitSectionheader(iniParser.SectionheaderContext ctx)
Description copied from interface:iniListenerExit a parse tree produced byiniParser.sectionheader().- Specified by:
exitSectionheaderin interfaceiniListener- Parameters:
ctx- the parse tree
-
enterLine
public void enterLine(iniParser.LineContext ctx)
Description copied from interface:iniListenerEnter a parse tree produced byiniParser.line().- Specified by:
enterLinein interfaceiniListener- Parameters:
ctx- the parse tree
-
isAllowListEntries
public boolean isAllowListEntries()
-
setAllowListEntries
public void setAllowListEntries(boolean allowListEntries)
-
exitLine
public void exitLine(iniParser.LineContext ctx)
Description copied from interface:iniListenerExit a parse tree produced byiniParser.line().- Specified by:
exitLinein interfaceiniListener- Parameters:
ctx- the parse tree
-
enterEntries
public void enterEntries(iniParser.EntriesContext ctx)
Description copied from interface:iniListenerEnter a parse tree produced byiniParser.entries().- Specified by:
enterEntriesin interfaceiniListener- Parameters:
ctx- the parse tree
-
exitEntries
public void exitEntries(iniParser.EntriesContext ctx)
Description copied from interface:iniListenerExit a parse tree produced byiniParser.entries().- Specified by:
exitEntriesin interfaceiniListener- Parameters:
ctx- the parse tree
-
convertEntryToValue
protected Object convertEntryToValue(iniParser.EntryContext entryContext)
-
enterEntry
public void enterEntry(iniParser.EntryContext ctx)
Description copied from interface:iniListenerEnter a parse tree produced byiniParser.entry().- Specified by:
enterEntryin interfaceiniListener- Parameters:
ctx- the parse tree
-
exitEntry
public void exitEntry(iniParser.EntryContext ctx)
Description copied from interface:iniListenerExit a parse tree produced byiniParser.entry().- Specified by:
exitEntryin interfaceiniListener- Parameters:
ctx- the parse tree
-
visitTerminal
public void visitTerminal(org.antlr.v4.runtime.tree.TerminalNode terminalNode)
- Specified by:
visitTerminalin interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
visitErrorNode
public void visitErrorNode(org.antlr.v4.runtime.tree.ErrorNode errorNode)
- Specified by:
visitErrorNodein interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
enterEveryRule
public void enterEveryRule(org.antlr.v4.runtime.ParserRuleContext parserRuleContext)
- Specified by:
enterEveryRulein interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
exitEveryRule
public void exitEveryRule(org.antlr.v4.runtime.ParserRuleContext parserRuleContext)
- Specified by:
exitEveryRulein interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
checkLexer
protected void checkLexer(org.antlr.v4.runtime.ParserRuleContext pre)
First cut of catching lexer exceptions and handling them- Parameters:
pre-
-
-