Class LuaBaseListener
- java.lang.Object
-
- net.sourceforge.pmd.lang.lua.antlr4.LuaBaseListener
-
- All Implemented Interfaces:
LuaListener,org.antlr.v4.runtime.tree.ParseTreeListener
public class LuaBaseListener extends Object implements LuaListener
This class provides an empty implementation ofLuaListener, which can be extended to create a listener which only needs to handle a subset of the available methods.
-
-
Constructor Summary
Constructors Constructor Description LuaBaseListener()
-
Method Summary
-
-
-
Method Detail
-
enterChunk
public void enterChunk(LuaParser.ChunkContext ctx)
Enter a parse tree produced byLuaParser.chunk().The default implementation does nothing.
- Specified by:
enterChunkin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitChunk
public void exitChunk(LuaParser.ChunkContext ctx)
Exit a parse tree produced byLuaParser.chunk().The default implementation does nothing.
- Specified by:
exitChunkin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterBlock
public void enterBlock(LuaParser.BlockContext ctx)
Enter a parse tree produced byLuaParser.block().The default implementation does nothing.
- Specified by:
enterBlockin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitBlock
public void exitBlock(LuaParser.BlockContext ctx)
Exit a parse tree produced byLuaParser.block().The default implementation does nothing.
- Specified by:
exitBlockin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterStat
public void enterStat(LuaParser.StatContext ctx)
Enter a parse tree produced byLuaParser.stat().The default implementation does nothing.
- Specified by:
enterStatin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitStat
public void exitStat(LuaParser.StatContext ctx)
Exit a parse tree produced byLuaParser.stat().The default implementation does nothing.
- Specified by:
exitStatin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterRetstat
public void enterRetstat(LuaParser.RetstatContext ctx)
Enter a parse tree produced byLuaParser.retstat().The default implementation does nothing.
- Specified by:
enterRetstatin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitRetstat
public void exitRetstat(LuaParser.RetstatContext ctx)
Exit a parse tree produced byLuaParser.retstat().The default implementation does nothing.
- Specified by:
exitRetstatin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterLabel
public void enterLabel(LuaParser.LabelContext ctx)
Enter a parse tree produced byLuaParser.label().The default implementation does nothing.
- Specified by:
enterLabelin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitLabel
public void exitLabel(LuaParser.LabelContext ctx)
Exit a parse tree produced byLuaParser.label().The default implementation does nothing.
- Specified by:
exitLabelin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterFuncname
public void enterFuncname(LuaParser.FuncnameContext ctx)
Enter a parse tree produced byLuaParser.funcname().The default implementation does nothing.
- Specified by:
enterFuncnamein interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitFuncname
public void exitFuncname(LuaParser.FuncnameContext ctx)
Exit a parse tree produced byLuaParser.funcname().The default implementation does nothing.
- Specified by:
exitFuncnamein interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterVarlist
public void enterVarlist(LuaParser.VarlistContext ctx)
Enter a parse tree produced byLuaParser.varlist().The default implementation does nothing.
- Specified by:
enterVarlistin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitVarlist
public void exitVarlist(LuaParser.VarlistContext ctx)
Exit a parse tree produced byLuaParser.varlist().The default implementation does nothing.
- Specified by:
exitVarlistin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterNamelist
public void enterNamelist(LuaParser.NamelistContext ctx)
Enter a parse tree produced byLuaParser.namelist().The default implementation does nothing.
- Specified by:
enterNamelistin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitNamelist
public void exitNamelist(LuaParser.NamelistContext ctx)
Exit a parse tree produced byLuaParser.namelist().The default implementation does nothing.
- Specified by:
exitNamelistin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterExplist
public void enterExplist(LuaParser.ExplistContext ctx)
Enter a parse tree produced byLuaParser.explist().The default implementation does nothing.
- Specified by:
enterExplistin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitExplist
public void exitExplist(LuaParser.ExplistContext ctx)
Exit a parse tree produced byLuaParser.explist().The default implementation does nothing.
- Specified by:
exitExplistin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterExp
public void enterExp(LuaParser.ExpContext ctx)
Enter a parse tree produced byLuaParser.exp().The default implementation does nothing.
- Specified by:
enterExpin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitExp
public void exitExp(LuaParser.ExpContext ctx)
Exit a parse tree produced byLuaParser.exp().The default implementation does nothing.
- Specified by:
exitExpin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterPrefixexp
public void enterPrefixexp(LuaParser.PrefixexpContext ctx)
Enter a parse tree produced byLuaParser.prefixexp().The default implementation does nothing.
- Specified by:
enterPrefixexpin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitPrefixexp
public void exitPrefixexp(LuaParser.PrefixexpContext ctx)
Exit a parse tree produced byLuaParser.prefixexp().The default implementation does nothing.
- Specified by:
exitPrefixexpin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterFunctioncall
public void enterFunctioncall(LuaParser.FunctioncallContext ctx)
Enter a parse tree produced byLuaParser.functioncall().The default implementation does nothing.
- Specified by:
enterFunctioncallin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitFunctioncall
public void exitFunctioncall(LuaParser.FunctioncallContext ctx)
Exit a parse tree produced byLuaParser.functioncall().The default implementation does nothing.
- Specified by:
exitFunctioncallin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterVarOrExp
public void enterVarOrExp(LuaParser.VarOrExpContext ctx)
Enter a parse tree produced byLuaParser.varOrExp().The default implementation does nothing.
- Specified by:
enterVarOrExpin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitVarOrExp
public void exitVarOrExp(LuaParser.VarOrExpContext ctx)
Exit a parse tree produced byLuaParser.varOrExp().The default implementation does nothing.
- Specified by:
exitVarOrExpin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterVar
public void enterVar(LuaParser.VarContext ctx)
Enter a parse tree produced byLuaParser.var().The default implementation does nothing.
- Specified by:
enterVarin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitVar
public void exitVar(LuaParser.VarContext ctx)
Exit a parse tree produced byLuaParser.var().The default implementation does nothing.
- Specified by:
exitVarin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterVarSuffix
public void enterVarSuffix(LuaParser.VarSuffixContext ctx)
Enter a parse tree produced byLuaParser.varSuffix().The default implementation does nothing.
- Specified by:
enterVarSuffixin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitVarSuffix
public void exitVarSuffix(LuaParser.VarSuffixContext ctx)
Exit a parse tree produced byLuaParser.varSuffix().The default implementation does nothing.
- Specified by:
exitVarSuffixin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterNameAndArgs
public void enterNameAndArgs(LuaParser.NameAndArgsContext ctx)
Enter a parse tree produced byLuaParser.nameAndArgs().The default implementation does nothing.
- Specified by:
enterNameAndArgsin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitNameAndArgs
public void exitNameAndArgs(LuaParser.NameAndArgsContext ctx)
Exit a parse tree produced byLuaParser.nameAndArgs().The default implementation does nothing.
- Specified by:
exitNameAndArgsin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterArgs
public void enterArgs(LuaParser.ArgsContext ctx)
Enter a parse tree produced byLuaParser.args().The default implementation does nothing.
- Specified by:
enterArgsin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitArgs
public void exitArgs(LuaParser.ArgsContext ctx)
Exit a parse tree produced byLuaParser.args().The default implementation does nothing.
- Specified by:
exitArgsin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterFunctiondef
public void enterFunctiondef(LuaParser.FunctiondefContext ctx)
Enter a parse tree produced byLuaParser.functiondef().The default implementation does nothing.
- Specified by:
enterFunctiondefin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitFunctiondef
public void exitFunctiondef(LuaParser.FunctiondefContext ctx)
Exit a parse tree produced byLuaParser.functiondef().The default implementation does nothing.
- Specified by:
exitFunctiondefin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterFuncbody
public void enterFuncbody(LuaParser.FuncbodyContext ctx)
Enter a parse tree produced byLuaParser.funcbody().The default implementation does nothing.
- Specified by:
enterFuncbodyin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitFuncbody
public void exitFuncbody(LuaParser.FuncbodyContext ctx)
Exit a parse tree produced byLuaParser.funcbody().The default implementation does nothing.
- Specified by:
exitFuncbodyin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterParlist
public void enterParlist(LuaParser.ParlistContext ctx)
Enter a parse tree produced byLuaParser.parlist().The default implementation does nothing.
- Specified by:
enterParlistin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitParlist
public void exitParlist(LuaParser.ParlistContext ctx)
Exit a parse tree produced byLuaParser.parlist().The default implementation does nothing.
- Specified by:
exitParlistin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterTableconstructor
public void enterTableconstructor(LuaParser.TableconstructorContext ctx)
Enter a parse tree produced byLuaParser.tableconstructor().The default implementation does nothing.
- Specified by:
enterTableconstructorin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitTableconstructor
public void exitTableconstructor(LuaParser.TableconstructorContext ctx)
Exit a parse tree produced byLuaParser.tableconstructor().The default implementation does nothing.
- Specified by:
exitTableconstructorin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterFieldlist
public void enterFieldlist(LuaParser.FieldlistContext ctx)
Enter a parse tree produced byLuaParser.fieldlist().The default implementation does nothing.
- Specified by:
enterFieldlistin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitFieldlist
public void exitFieldlist(LuaParser.FieldlistContext ctx)
Exit a parse tree produced byLuaParser.fieldlist().The default implementation does nothing.
- Specified by:
exitFieldlistin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterField
public void enterField(LuaParser.FieldContext ctx)
Enter a parse tree produced byLuaParser.field().The default implementation does nothing.
- Specified by:
enterFieldin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitField
public void exitField(LuaParser.FieldContext ctx)
Exit a parse tree produced byLuaParser.field().The default implementation does nothing.
- Specified by:
exitFieldin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterFieldsep
public void enterFieldsep(LuaParser.FieldsepContext ctx)
Enter a parse tree produced byLuaParser.fieldsep().The default implementation does nothing.
- Specified by:
enterFieldsepin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitFieldsep
public void exitFieldsep(LuaParser.FieldsepContext ctx)
Exit a parse tree produced byLuaParser.fieldsep().The default implementation does nothing.
- Specified by:
exitFieldsepin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterOperatorOr
public void enterOperatorOr(LuaParser.OperatorOrContext ctx)
Enter a parse tree produced byLuaParser.operatorOr().The default implementation does nothing.
- Specified by:
enterOperatorOrin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitOperatorOr
public void exitOperatorOr(LuaParser.OperatorOrContext ctx)
Exit a parse tree produced byLuaParser.operatorOr().The default implementation does nothing.
- Specified by:
exitOperatorOrin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterOperatorAnd
public void enterOperatorAnd(LuaParser.OperatorAndContext ctx)
Enter a parse tree produced byLuaParser.operatorAnd().The default implementation does nothing.
- Specified by:
enterOperatorAndin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitOperatorAnd
public void exitOperatorAnd(LuaParser.OperatorAndContext ctx)
Exit a parse tree produced byLuaParser.operatorAnd().The default implementation does nothing.
- Specified by:
exitOperatorAndin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterOperatorComparison
public void enterOperatorComparison(LuaParser.OperatorComparisonContext ctx)
Enter a parse tree produced byLuaParser.operatorComparison().The default implementation does nothing.
- Specified by:
enterOperatorComparisonin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitOperatorComparison
public void exitOperatorComparison(LuaParser.OperatorComparisonContext ctx)
Exit a parse tree produced byLuaParser.operatorComparison().The default implementation does nothing.
- Specified by:
exitOperatorComparisonin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterOperatorStrcat
public void enterOperatorStrcat(LuaParser.OperatorStrcatContext ctx)
Enter a parse tree produced byLuaParser.operatorStrcat().The default implementation does nothing.
- Specified by:
enterOperatorStrcatin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitOperatorStrcat
public void exitOperatorStrcat(LuaParser.OperatorStrcatContext ctx)
Exit a parse tree produced byLuaParser.operatorStrcat().The default implementation does nothing.
- Specified by:
exitOperatorStrcatin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterOperatorAddSub
public void enterOperatorAddSub(LuaParser.OperatorAddSubContext ctx)
Enter a parse tree produced byLuaParser.operatorAddSub().The default implementation does nothing.
- Specified by:
enterOperatorAddSubin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitOperatorAddSub
public void exitOperatorAddSub(LuaParser.OperatorAddSubContext ctx)
Exit a parse tree produced byLuaParser.operatorAddSub().The default implementation does nothing.
- Specified by:
exitOperatorAddSubin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterOperatorMulDivMod
public void enterOperatorMulDivMod(LuaParser.OperatorMulDivModContext ctx)
Enter a parse tree produced byLuaParser.operatorMulDivMod().The default implementation does nothing.
- Specified by:
enterOperatorMulDivModin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitOperatorMulDivMod
public void exitOperatorMulDivMod(LuaParser.OperatorMulDivModContext ctx)
Exit a parse tree produced byLuaParser.operatorMulDivMod().The default implementation does nothing.
- Specified by:
exitOperatorMulDivModin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterOperatorBitwise
public void enterOperatorBitwise(LuaParser.OperatorBitwiseContext ctx)
Enter a parse tree produced byLuaParser.operatorBitwise().The default implementation does nothing.
- Specified by:
enterOperatorBitwisein interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitOperatorBitwise
public void exitOperatorBitwise(LuaParser.OperatorBitwiseContext ctx)
Exit a parse tree produced byLuaParser.operatorBitwise().The default implementation does nothing.
- Specified by:
exitOperatorBitwisein interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterOperatorUnary
public void enterOperatorUnary(LuaParser.OperatorUnaryContext ctx)
Enter a parse tree produced byLuaParser.operatorUnary().The default implementation does nothing.
- Specified by:
enterOperatorUnaryin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitOperatorUnary
public void exitOperatorUnary(LuaParser.OperatorUnaryContext ctx)
Exit a parse tree produced byLuaParser.operatorUnary().The default implementation does nothing.
- Specified by:
exitOperatorUnaryin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterOperatorPower
public void enterOperatorPower(LuaParser.OperatorPowerContext ctx)
Enter a parse tree produced byLuaParser.operatorPower().The default implementation does nothing.
- Specified by:
enterOperatorPowerin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitOperatorPower
public void exitOperatorPower(LuaParser.OperatorPowerContext ctx)
Exit a parse tree produced byLuaParser.operatorPower().The default implementation does nothing.
- Specified by:
exitOperatorPowerin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterNumber
public void enterNumber(LuaParser.NumberContext ctx)
Enter a parse tree produced byLuaParser.number().The default implementation does nothing.
- Specified by:
enterNumberin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitNumber
public void exitNumber(LuaParser.NumberContext ctx)
Exit a parse tree produced byLuaParser.number().The default implementation does nothing.
- Specified by:
exitNumberin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterString
public void enterString(LuaParser.StringContext ctx)
Enter a parse tree produced byLuaParser.string().The default implementation does nothing.
- Specified by:
enterStringin interfaceLuaListener- Parameters:
ctx- the parse tree
-
exitString
public void exitString(LuaParser.StringContext ctx)
Exit a parse tree produced byLuaParser.string().The default implementation does nothing.
- Specified by:
exitStringin interfaceLuaListener- Parameters:
ctx- the parse tree
-
enterEveryRule
public void enterEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)
The default implementation does nothing.
- Specified by:
enterEveryRulein interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
exitEveryRule
public void exitEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)
The default implementation does nothing.
- Specified by:
exitEveryRulein interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
visitTerminal
public void visitTerminal(org.antlr.v4.runtime.tree.TerminalNode node)
The default implementation does nothing.
- Specified by:
visitTerminalin interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
visitErrorNode
public void visitErrorNode(org.antlr.v4.runtime.tree.ErrorNode node)
The default implementation does nothing.
- Specified by:
visitErrorNodein interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
-