Class COOLBaseListener
This class provides an empty implementation of ICOOLListener, which can be extended to create a listener which only needs to handle a subset of the available methods.
Inheritance
Namespace: GCore.Antlr.Grammers.Cool
Assembly: Cool.dll
Syntax
public class COOLBaseListener : object, ICOOLListener, Antlr4.Runtime.Tree.IParseTreeListener
Methods
| Improve this Doc View SourceEnterAdd(COOLParser.AddContext)
Enter a parse tree produced by the add
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void EnterAdd(COOLParser.AddContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.AddContext | context | The parse tree. |
EnterAssignment(COOLParser.AssignmentContext)
Enter a parse tree produced by the assignment
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void EnterAssignment(COOLParser.AssignmentContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.AssignmentContext | context | The parse tree. |
EnterBlock(COOLParser.BlockContext)
Enter a parse tree produced by the block
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void EnterBlock(COOLParser.BlockContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.BlockContext | context | The parse tree. |
EnterBoolNot(COOLParser.BoolNotContext)
Enter a parse tree produced by the boolNot
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void EnterBoolNot(COOLParser.BoolNotContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.BoolNotContext | context | The parse tree. |
EnterCase(COOLParser.CaseContext)
Enter a parse tree produced by the case
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void EnterCase(COOLParser.CaseContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.CaseContext | context | The parse tree. |
EnterClassDefine(COOLParser.ClassDefineContext)
Enter a parse tree produced by classDefine().
The default implementation does nothing.
Declaration
public virtual void EnterClassDefine(COOLParser.ClassDefineContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.ClassDefineContext | context | The parse tree. |
EnterClasses(COOLParser.ClassesContext)
Enter a parse tree produced by the classes
labeled alternative in programBlocks().
The default implementation does nothing.
Declaration
public virtual void EnterClasses(COOLParser.ClassesContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.ClassesContext | context | The parse tree. |
EnterDivision(COOLParser.DivisionContext)
Enter a parse tree produced by the division
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void EnterDivision(COOLParser.DivisionContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.DivisionContext | context | The parse tree. |
EnterEof(COOLParser.EofContext)
Enter a parse tree produced by the eof
labeled alternative in programBlocks().
The default implementation does nothing.
Declaration
public virtual void EnterEof(COOLParser.EofContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.EofContext | context | The parse tree. |
EnterEqual(COOLParser.EqualContext)
Enter a parse tree produced by the equal
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void EnterEqual(COOLParser.EqualContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.EqualContext | context | The parse tree. |
EnterEveryRule(Antlr4.Runtime.ParserRuleContext)
Declaration
public virtual void EnterEveryRule(Antlr4.Runtime.ParserRuleContext context)
Parameters
Type | Name | Description |
---|---|---|
Antlr4.Runtime.ParserRuleContext | context |
Remarks
The default implementation does nothing.
EnterFalse(COOLParser.FalseContext)
Enter a parse tree produced by the false
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void EnterFalse(COOLParser.FalseContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.FalseContext | context | The parse tree. |
EnterFormal(COOLParser.FormalContext)
Enter a parse tree produced by formal().
The default implementation does nothing.
Declaration
public virtual void EnterFormal(COOLParser.FormalContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.FormalContext | context | The parse tree. |
EnterId(COOLParser.IdContext)
Enter a parse tree produced by the id
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void EnterId(COOLParser.IdContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.IdContext | context | The parse tree. |
EnterIf(COOLParser.IfContext)
Enter a parse tree produced by the if
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void EnterIf(COOLParser.IfContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.IfContext | context | The parse tree. |
EnterInt(COOLParser.IntContext)
Enter a parse tree produced by the int
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void EnterInt(COOLParser.IntContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.IntContext | context | The parse tree. |
EnterIsvoid(COOLParser.IsvoidContext)
Enter a parse tree produced by the isvoid
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void EnterIsvoid(COOLParser.IsvoidContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.IsvoidContext | context | The parse tree. |
EnterLessEqual(COOLParser.LessEqualContext)
Enter a parse tree produced by the lessEqual
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void EnterLessEqual(COOLParser.LessEqualContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.LessEqualContext | context | The parse tree. |
EnterLessThan(COOLParser.LessThanContext)
Enter a parse tree produced by the lessThan
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void EnterLessThan(COOLParser.LessThanContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.LessThanContext | context | The parse tree. |
EnterLetIn(COOLParser.LetInContext)
Enter a parse tree produced by the letIn
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void EnterLetIn(COOLParser.LetInContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.LetInContext | context | The parse tree. |
EnterMethod(COOLParser.MethodContext)
Enter a parse tree produced by the method
labeled alternative in feature().
The default implementation does nothing.
Declaration
public virtual void EnterMethod(COOLParser.MethodContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.MethodContext | context | The parse tree. |
EnterMethodCall(COOLParser.MethodCallContext)
Enter a parse tree produced by the methodCall
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void EnterMethodCall(COOLParser.MethodCallContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.MethodCallContext | context | The parse tree. |
EnterMinus(COOLParser.MinusContext)
Enter a parse tree produced by the minus
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void EnterMinus(COOLParser.MinusContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.MinusContext | context | The parse tree. |
EnterMultiply(COOLParser.MultiplyContext)
Enter a parse tree produced by the multiply
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void EnterMultiply(COOLParser.MultiplyContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.MultiplyContext | context | The parse tree. |
EnterNegative(COOLParser.NegativeContext)
Enter a parse tree produced by the negative
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void EnterNegative(COOLParser.NegativeContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.NegativeContext | context | The parse tree. |
EnterNew(COOLParser.NewContext)
Enter a parse tree produced by the new
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void EnterNew(COOLParser.NewContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.NewContext | context | The parse tree. |
EnterOwnMethodCall(COOLParser.OwnMethodCallContext)
Enter a parse tree produced by the ownMethodCall
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void EnterOwnMethodCall(COOLParser.OwnMethodCallContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.OwnMethodCallContext | context | The parse tree. |
EnterParentheses(COOLParser.ParenthesesContext)
Enter a parse tree produced by the parentheses
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void EnterParentheses(COOLParser.ParenthesesContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.ParenthesesContext | context | The parse tree. |
EnterProgram(COOLParser.ProgramContext)
Enter a parse tree produced by program().
The default implementation does nothing.
Declaration
public virtual void EnterProgram(COOLParser.ProgramContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.ProgramContext | context | The parse tree. |
EnterProperty(COOLParser.PropertyContext)
Enter a parse tree produced by the property
labeled alternative in feature().
The default implementation does nothing.
Declaration
public virtual void EnterProperty(COOLParser.PropertyContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.PropertyContext | context | The parse tree. |
EnterString(COOLParser.StringContext)
Enter a parse tree produced by the string
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void EnterString(COOLParser.StringContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.StringContext | context | The parse tree. |
EnterTrue(COOLParser.TrueContext)
Enter a parse tree produced by the true
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void EnterTrue(COOLParser.TrueContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.TrueContext | context | The parse tree. |
EnterWhile(COOLParser.WhileContext)
Enter a parse tree produced by the while
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void EnterWhile(COOLParser.WhileContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.WhileContext | context | The parse tree. |
ExitAdd(COOLParser.AddContext)
Exit a parse tree produced by the add
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void ExitAdd(COOLParser.AddContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.AddContext | context | The parse tree. |
ExitAssignment(COOLParser.AssignmentContext)
Exit a parse tree produced by the assignment
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void ExitAssignment(COOLParser.AssignmentContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.AssignmentContext | context | The parse tree. |
ExitBlock(COOLParser.BlockContext)
Exit a parse tree produced by the block
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void ExitBlock(COOLParser.BlockContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.BlockContext | context | The parse tree. |
ExitBoolNot(COOLParser.BoolNotContext)
Exit a parse tree produced by the boolNot
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void ExitBoolNot(COOLParser.BoolNotContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.BoolNotContext | context | The parse tree. |
ExitCase(COOLParser.CaseContext)
Exit a parse tree produced by the case
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void ExitCase(COOLParser.CaseContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.CaseContext | context | The parse tree. |
ExitClassDefine(COOLParser.ClassDefineContext)
Exit a parse tree produced by classDefine().
The default implementation does nothing.
Declaration
public virtual void ExitClassDefine(COOLParser.ClassDefineContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.ClassDefineContext | context | The parse tree. |
ExitClasses(COOLParser.ClassesContext)
Exit a parse tree produced by the classes
labeled alternative in programBlocks().
The default implementation does nothing.
Declaration
public virtual void ExitClasses(COOLParser.ClassesContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.ClassesContext | context | The parse tree. |
ExitDivision(COOLParser.DivisionContext)
Exit a parse tree produced by the division
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void ExitDivision(COOLParser.DivisionContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.DivisionContext | context | The parse tree. |
ExitEof(COOLParser.EofContext)
Exit a parse tree produced by the eof
labeled alternative in programBlocks().
The default implementation does nothing.
Declaration
public virtual void ExitEof(COOLParser.EofContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.EofContext | context | The parse tree. |
ExitEqual(COOLParser.EqualContext)
Exit a parse tree produced by the equal
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void ExitEqual(COOLParser.EqualContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.EqualContext | context | The parse tree. |
ExitEveryRule(Antlr4.Runtime.ParserRuleContext)
Declaration
public virtual void ExitEveryRule(Antlr4.Runtime.ParserRuleContext context)
Parameters
Type | Name | Description |
---|---|---|
Antlr4.Runtime.ParserRuleContext | context |
Remarks
The default implementation does nothing.
ExitFalse(COOLParser.FalseContext)
Exit a parse tree produced by the false
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void ExitFalse(COOLParser.FalseContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.FalseContext | context | The parse tree. |
ExitFormal(COOLParser.FormalContext)
Exit a parse tree produced by formal().
The default implementation does nothing.
Declaration
public virtual void ExitFormal(COOLParser.FormalContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.FormalContext | context | The parse tree. |
ExitId(COOLParser.IdContext)
Exit a parse tree produced by the id
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void ExitId(COOLParser.IdContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.IdContext | context | The parse tree. |
ExitIf(COOLParser.IfContext)
Exit a parse tree produced by the if
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void ExitIf(COOLParser.IfContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.IfContext | context | The parse tree. |
ExitInt(COOLParser.IntContext)
Exit a parse tree produced by the int
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void ExitInt(COOLParser.IntContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.IntContext | context | The parse tree. |
ExitIsvoid(COOLParser.IsvoidContext)
Exit a parse tree produced by the isvoid
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void ExitIsvoid(COOLParser.IsvoidContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.IsvoidContext | context | The parse tree. |
ExitLessEqual(COOLParser.LessEqualContext)
Exit a parse tree produced by the lessEqual
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void ExitLessEqual(COOLParser.LessEqualContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.LessEqualContext | context | The parse tree. |
ExitLessThan(COOLParser.LessThanContext)
Exit a parse tree produced by the lessThan
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void ExitLessThan(COOLParser.LessThanContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.LessThanContext | context | The parse tree. |
ExitLetIn(COOLParser.LetInContext)
Exit a parse tree produced by the letIn
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void ExitLetIn(COOLParser.LetInContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.LetInContext | context | The parse tree. |
ExitMethod(COOLParser.MethodContext)
Exit a parse tree produced by the method
labeled alternative in feature().
The default implementation does nothing.
Declaration
public virtual void ExitMethod(COOLParser.MethodContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.MethodContext | context | The parse tree. |
ExitMethodCall(COOLParser.MethodCallContext)
Exit a parse tree produced by the methodCall
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void ExitMethodCall(COOLParser.MethodCallContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.MethodCallContext | context | The parse tree. |
ExitMinus(COOLParser.MinusContext)
Exit a parse tree produced by the minus
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void ExitMinus(COOLParser.MinusContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.MinusContext | context | The parse tree. |
ExitMultiply(COOLParser.MultiplyContext)
Exit a parse tree produced by the multiply
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void ExitMultiply(COOLParser.MultiplyContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.MultiplyContext | context | The parse tree. |
ExitNegative(COOLParser.NegativeContext)
Exit a parse tree produced by the negative
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void ExitNegative(COOLParser.NegativeContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.NegativeContext | context | The parse tree. |
ExitNew(COOLParser.NewContext)
Exit a parse tree produced by the new
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void ExitNew(COOLParser.NewContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.NewContext | context | The parse tree. |
ExitOwnMethodCall(COOLParser.OwnMethodCallContext)
Exit a parse tree produced by the ownMethodCall
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void ExitOwnMethodCall(COOLParser.OwnMethodCallContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.OwnMethodCallContext | context | The parse tree. |
ExitParentheses(COOLParser.ParenthesesContext)
Exit a parse tree produced by the parentheses
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void ExitParentheses(COOLParser.ParenthesesContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.ParenthesesContext | context | The parse tree. |
ExitProgram(COOLParser.ProgramContext)
Exit a parse tree produced by program().
The default implementation does nothing.
Declaration
public virtual void ExitProgram(COOLParser.ProgramContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.ProgramContext | context | The parse tree. |
ExitProperty(COOLParser.PropertyContext)
Exit a parse tree produced by the property
labeled alternative in feature().
The default implementation does nothing.
Declaration
public virtual void ExitProperty(COOLParser.PropertyContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.PropertyContext | context | The parse tree. |
ExitString(COOLParser.StringContext)
Exit a parse tree produced by the string
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void ExitString(COOLParser.StringContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.StringContext | context | The parse tree. |
ExitTrue(COOLParser.TrueContext)
Exit a parse tree produced by the true
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void ExitTrue(COOLParser.TrueContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.TrueContext | context | The parse tree. |
ExitWhile(COOLParser.WhileContext)
Exit a parse tree produced by the while
labeled alternative in expression().
The default implementation does nothing.
Declaration
public virtual void ExitWhile(COOLParser.WhileContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.WhileContext | context | The parse tree. |
VisitErrorNode(Antlr4.Runtime.Tree.IErrorNode)
Declaration
public virtual void VisitErrorNode(Antlr4.Runtime.Tree.IErrorNode node)
Parameters
Type | Name | Description |
---|---|---|
Antlr4.Runtime.Tree.IErrorNode | node |
Remarks
The default implementation does nothing.
VisitTerminal(Antlr4.Runtime.Tree.ITerminalNode)
Declaration
public virtual void VisitTerminal(Antlr4.Runtime.Tree.ITerminalNode node)
Parameters
Type | Name | Description |
---|---|---|
Antlr4.Runtime.Tree.ITerminalNode | node |
Remarks
The default implementation does nothing.