Class AbstractEK9PhaseListener
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeListener, EK9Listener
- Direct Known Subclasses:
DefinitionListener, ScopeStackConsistencyListener
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidExit a parse tree produced byEK9Parser.applicationDeclaration().voidExit a parse tree produced byEK9Parser.block().voidExit a parse tree produced byEK9Parser.catchStatementExpression().voidExit a parse tree produced byEK9Parser.classDeclaration().voidExit a parse tree produced byEK9Parser.componentDeclaration().voidExit a parse tree produced byEK9Parser.dynamicClassDeclaration().voidExit a parse tree produced byEK9Parser.dynamicFunctionDeclaration().voidExit a parse tree produced byEK9Parser.dynamicVariableCapture().voidExit a parse tree produced byEK9Parser.finallyStatementExpression().voidExit a parse tree produced byEK9Parser.forStatementExpression().voidExit a parse tree produced byEK9Parser.functionDeclaration().voidExit a parse tree produced byEK9Parser.ifStatement().voidExit a parse tree produced byEK9Parser.instructionBlock().voidExit a parse tree produced byEK9Parser.methodDeclaration().voidExit a parse tree produced byEK9Parser.moduleDeclaration().voidExit a parse tree produced byEK9Parser.operatorDeclaration().voidExit a parse tree produced byEK9Parser.packageBlock().voidExit a parse tree produced byEK9Parser.recordDeclaration().voidExit a parse tree produced byEK9Parser.returningParam().voidExit a parse tree produced byEK9Parser.serviceDeclaration().voidExit a parse tree produced byEK9Parser.serviceOperationDeclaration().voidExit a parse tree produced byEK9Parser.singleStatementBlock().voidExit a parse tree produced byEK9Parser.switchStatementExpression().voidExit a parse tree produced byEK9Parser.ternaryPart().voidExit a parse tree produced byEK9Parser.textBodyDeclaration().voidExit a parse tree produced byEK9Parser.textDeclaration().voidExit a parse tree produced byEK9Parser.traitDeclaration().voidExit a parse tree produced byEK9Parser.tryStatementExpression().voidExit a parse tree produced byEK9Parser.typeDeclaration().voidExit a parse tree produced byEK9Parser.whileStatementExpression().Provide access to errorListener to extending Listeners.protected ParsedModuleProvide access to the parsedModule.booleanprotected voidpullBlockTerminationUp(org.antlr.v4.runtime.tree.ParseTree node) protected voidprotected voidprotected voidMethods inherited from class EK9BaseListener
enterAccessModifier, enterAggregateParts, enterAggregateProperty, enterAllowingOnly, enterApplicationBlock, enterApplicationDeclaration, enterArgumentParam, enterAspectDeclaration, enterAssertStatement, enterAssignmentExpression, enterAssignmentStatement, enterBinaryLit, enterBinaryLiteral, enterBlock, enterBlockStatement, enterBooleanLit, enterBooleanLiteral, enterCall, enterCaseExpression, enterCaseStatement, enterCatchStatementExpression, enterCharacterLit, enterCharacterLiteral, enterClassBlock, enterClassDeclaration, enterColourLit, enterColourLiteral, enterCompilationUnit, enterComponentBlock, enterComponentDeclaration, enterConstantBlock, enterConstantDeclaration, enterConstantInitialiser, enterConstrainDeclaration, enterConstrainType, enterDateLit, enterDateLiteral, enterDateTimeLit, enterDateTimeLiteral, enterDeclareArgumentParam, enterDecorationDimensionLiteral, enterDecorationResolutionLiteral, enterDefaultOperator, enterDict, enterDimensionLit, enterDirective, enterDirectivePart, enterDottedName, enterDurationLit, enterDurationLiteral, enterDynamicClassDeclaration, enterDynamicFunctionBody, enterDynamicFunctionDeclaration, enterDynamicVariableCapture, enterElseOnlyBlock, enterEnumerationDeclaration, enterEveryRule, enterExpression, enterExpressionParam, enterExtendDeclaration, enterExtendPreamble, enterFinallyStatementExpression, enterFloatingPointLit, enterFloatingPointLiteral, enterForLoop, enterForRange, enterForStatementExpression, enterFunctionBlock, enterFunctionDeclaration, enterGuardExpression, enterHttpAccess, enterHttpVerb, enterIdentifier, enterIdentifierReference, enterIfControlBlock, enterIfStatement, enterInitValuePair, enterInstructionBlock, enterIntegerLit, enterIntegerLiteral, enterList, enterMethodDeclaration, enterMillisecondLit, enterMillisecondLiteral, enterModuleBlock, enterModuleDeclaration, enterMoneyLit, enterMoneyLiteral, enterObjectAccess, enterObjectAccessExpression, enterObjectAccessStart, enterObjectAccessType, enterOperationCall, enterOperationDetails, enterOperator, enterOperatorDeclaration, enterPackageBlock, enterParameterisedArgs, enterParameterisedDetail, enterParameterisedParams, enterParameterisedType, enterParamExpression, enterPathLit, enterPathLiteral, enterPipelinePart, enterPreFlowAndControl, enterPreFlowStatement, enterPrimary, enterPrimaryReference, enterProgramBlock, enterRange, enterRecordBlock, enterRecordDeclaration, enterReferencesBlock, enterRegExLit, enterRegisterStatement, enterRegularExpressionLiteral, enterResolutionLit, enterReturningParam, enterServiceBlock, enterServiceDeclaration, enterServiceOperationDeclaration, enterSheBang, enterSingleStatementBlock, enterStatement, enterStreamCat, enterStreamExpression, enterStreamExpressionTermination, enterStreamFor, enterStreamPart, enterStreamSource, enterStreamStatement, enterStreamStatementTermination, enterStringLit, enterStringLiteral, enterStringPart, enterSwitchStatementExpression, enterTernaryPart, enterTextBlock, enterTextBodyDeclaration, enterTextDeclaration, enterThrowStatement, enterTimeLit, enterTimeLiteral, enterTraitBlock, enterTraitDeclaration, enterTraitPreamble, enterTraitReference, enterTraitsList, enterTryStatementExpression, enterTypeBlock, enterTypeDeclaration, enterTypeDef, enterVariableDeclaration, enterVariableOnlyDeclaration, enterVersionNumberLit, enterVersionNumberLiteral, enterWebVariableCorrelation, enterWhileStatementExpression, exitAccessModifier, exitAggregateParts, exitAggregateProperty, exitAllowingOnly, exitApplicationBlock, exitArgumentParam, exitAspectDeclaration, exitAssertStatement, exitAssignmentExpression, exitAssignmentStatement, exitBinaryLit, exitBinaryLiteral, exitBlockStatement, exitBooleanLit, exitBooleanLiteral, exitCall, exitCaseExpression, exitCaseStatement, exitCharacterLit, exitCharacterLiteral, exitClassBlock, exitColourLit, exitColourLiteral, exitCompilationUnit, exitComponentBlock, exitConstantBlock, exitConstantDeclaration, exitConstantInitialiser, exitConstrainDeclaration, exitConstrainType, exitDateLit, exitDateLiteral, exitDateTimeLit, exitDateTimeLiteral, exitDeclareArgumentParam, exitDecorationDimensionLiteral, exitDecorationResolutionLiteral, exitDefaultOperator, exitDict, exitDimensionLit, exitDirective, exitDirectivePart, exitDottedName, exitDurationLit, exitDurationLiteral, exitDynamicFunctionBody, exitElseOnlyBlock, exitEnumerationDeclaration, exitEveryRule, exitExpression, exitExpressionParam, exitExtendDeclaration, exitExtendPreamble, exitFloatingPointLit, exitFloatingPointLiteral, exitForLoop, exitForRange, exitFunctionBlock, exitGuardExpression, exitHttpAccess, exitHttpVerb, exitIdentifier, exitIdentifierReference, exitIfControlBlock, exitInitValuePair, exitIntegerLit, exitIntegerLiteral, exitList, exitMillisecondLit, exitMillisecondLiteral, exitModuleBlock, exitMoneyLit, exitMoneyLiteral, exitObjectAccess, exitObjectAccessExpression, exitObjectAccessStart, exitObjectAccessType, exitOperationCall, exitOperationDetails, exitOperator, exitParameterisedArgs, exitParameterisedDetail, exitParameterisedParams, exitParameterisedType, exitParamExpression, exitPathLit, exitPathLiteral, exitPipelinePart, exitPreFlowAndControl, exitPreFlowStatement, exitPrimary, exitPrimaryReference, exitProgramBlock, exitRange, exitRecordBlock, exitReferencesBlock, exitRegExLit, exitRegisterStatement, exitRegularExpressionLiteral, exitResolutionLit, exitServiceBlock, exitSheBang, exitStatement, exitStreamCat, exitStreamExpression, exitStreamExpressionTermination, exitStreamFor, exitStreamPart, exitStreamSource, exitStreamStatement, exitStreamStatementTermination, exitStringLit, exitStringLiteral, exitStringPart, exitTextBlock, exitThrowStatement, exitTimeLit, exitTimeLiteral, exitTraitBlock, exitTraitPreamble, exitTraitReference, exitTraitsList, exitTypeBlock, exitTypeDef, exitVariableDeclaration, exitVariableOnlyDeclaration, exitVersionNumberLit, exitVersionNumberLiteral, exitWebVariableCorrelation, visitErrorNode, visitTerminal
-
Field Details
-
symbolsAndScopes
-
-
Constructor Details
-
AbstractEK9PhaseListener
-
-
Method Details
-
pullSwitchCaseDefaultUp
-
pullTryCatchFinallyUp
-
pullIfElseTerminationUp
-
pullBlockTerminationUp
protected void pullBlockTerminationUp(org.antlr.v4.runtime.tree.ParseTree node) -
getParsedModule
Provide access to the parsedModule. -
getErrorListener
Provide access to errorListener to extending Listeners. This enables reporting of errors and warnings. -
isScopeStackEmpty
public boolean isScopeStackEmpty() -
exitModuleDeclaration
Description copied from class:EK9BaseListenerExit a parse tree produced byEK9Parser.moduleDeclaration().The default implementation does nothing.
- Specified by:
exitModuleDeclarationin interfaceEK9Listener- Overrides:
exitModuleDeclarationin classEK9BaseListener- Parameters:
ctx- the parse tree
-
exitPackageBlock
Description copied from class:EK9BaseListenerExit a parse tree produced byEK9Parser.packageBlock().The default implementation does nothing.
- Specified by:
exitPackageBlockin interfaceEK9Listener- Overrides:
exitPackageBlockin classEK9BaseListener- Parameters:
ctx- the parse tree
-
exitMethodDeclaration
Description copied from class:EK9BaseListenerExit a parse tree produced byEK9Parser.methodDeclaration().The default implementation does nothing.
- Specified by:
exitMethodDeclarationin interfaceEK9Listener- Overrides:
exitMethodDeclarationin classEK9BaseListener- Parameters:
ctx- the parse tree
-
exitOperatorDeclaration
Description copied from class:EK9BaseListenerExit a parse tree produced byEK9Parser.operatorDeclaration().The default implementation does nothing.
- Specified by:
exitOperatorDeclarationin interfaceEK9Listener- Overrides:
exitOperatorDeclarationin classEK9BaseListener- Parameters:
ctx- the parse tree
-
exitFunctionDeclaration
Description copied from class:EK9BaseListenerExit a parse tree produced byEK9Parser.functionDeclaration().The default implementation does nothing.
- Specified by:
exitFunctionDeclarationin interfaceEK9Listener- Overrides:
exitFunctionDeclarationin classEK9BaseListener- Parameters:
ctx- the parse tree
-
exitRecordDeclaration
Description copied from class:EK9BaseListenerExit a parse tree produced byEK9Parser.recordDeclaration().The default implementation does nothing.
- Specified by:
exitRecordDeclarationin interfaceEK9Listener- Overrides:
exitRecordDeclarationin classEK9BaseListener- Parameters:
ctx- the parse tree
-
exitTraitDeclaration
Description copied from class:EK9BaseListenerExit a parse tree produced byEK9Parser.traitDeclaration().The default implementation does nothing.
- Specified by:
exitTraitDeclarationin interfaceEK9Listener- Overrides:
exitTraitDeclarationin classEK9BaseListener- Parameters:
ctx- the parse tree
-
exitClassDeclaration
Description copied from class:EK9BaseListenerExit a parse tree produced byEK9Parser.classDeclaration().The default implementation does nothing.
- Specified by:
exitClassDeclarationin interfaceEK9Listener- Overrides:
exitClassDeclarationin classEK9BaseListener- Parameters:
ctx- the parse tree
-
exitComponentDeclaration
Description copied from class:EK9BaseListenerExit a parse tree produced byEK9Parser.componentDeclaration().The default implementation does nothing.
- Specified by:
exitComponentDeclarationin interfaceEK9Listener- Overrides:
exitComponentDeclarationin classEK9BaseListener- Parameters:
ctx- the parse tree
-
exitTextDeclaration
Description copied from class:EK9BaseListenerExit a parse tree produced byEK9Parser.textDeclaration().The default implementation does nothing.
- Specified by:
exitTextDeclarationin interfaceEK9Listener- Overrides:
exitTextDeclarationin classEK9BaseListener- Parameters:
ctx- the parse tree
-
exitTextBodyDeclaration
Description copied from class:EK9BaseListenerExit a parse tree produced byEK9Parser.textBodyDeclaration().The default implementation does nothing.
- Specified by:
exitTextBodyDeclarationin interfaceEK9Listener- Overrides:
exitTextBodyDeclarationin classEK9BaseListener- Parameters:
ctx- the parse tree
-
exitServiceDeclaration
Description copied from class:EK9BaseListenerExit a parse tree produced byEK9Parser.serviceDeclaration().The default implementation does nothing.
- Specified by:
exitServiceDeclarationin interfaceEK9Listener- Overrides:
exitServiceDeclarationin classEK9BaseListener- Parameters:
ctx- the parse tree
-
exitServiceOperationDeclaration
Description copied from class:EK9BaseListenerExit a parse tree produced byEK9Parser.serviceOperationDeclaration().The default implementation does nothing.
- Specified by:
exitServiceOperationDeclarationin interfaceEK9Listener- Overrides:
exitServiceOperationDeclarationin classEK9BaseListener- Parameters:
ctx- the parse tree
-
exitApplicationDeclaration
Description copied from class:EK9BaseListenerExit a parse tree produced byEK9Parser.applicationDeclaration().The default implementation does nothing.
- Specified by:
exitApplicationDeclarationin interfaceEK9Listener- Overrides:
exitApplicationDeclarationin classEK9BaseListener- Parameters:
ctx- the parse tree
-
exitDynamicClassDeclaration
Description copied from class:EK9BaseListenerExit a parse tree produced byEK9Parser.dynamicClassDeclaration().The default implementation does nothing.
- Specified by:
exitDynamicClassDeclarationin interfaceEK9Listener- Overrides:
exitDynamicClassDeclarationin classEK9BaseListener- Parameters:
ctx- the parse tree
-
exitDynamicFunctionDeclaration
Description copied from class:EK9BaseListenerExit a parse tree produced byEK9Parser.dynamicFunctionDeclaration().The default implementation does nothing.
- Specified by:
exitDynamicFunctionDeclarationin interfaceEK9Listener- Overrides:
exitDynamicFunctionDeclarationin classEK9BaseListener- Parameters:
ctx- the parse tree
-
exitDynamicVariableCapture
Description copied from class:EK9BaseListenerExit a parse tree produced byEK9Parser.dynamicVariableCapture().The default implementation does nothing.
- Specified by:
exitDynamicVariableCapturein interfaceEK9Listener- Overrides:
exitDynamicVariableCapturein classEK9BaseListener- Parameters:
ctx- the parse tree
-
exitTypeDeclaration
Description copied from class:EK9BaseListenerExit a parse tree produced byEK9Parser.typeDeclaration().The default implementation does nothing.
- Specified by:
exitTypeDeclarationin interfaceEK9Listener- Overrides:
exitTypeDeclarationin classEK9BaseListener- Parameters:
ctx- the parse tree
-
exitIfStatement
Description copied from class:EK9BaseListenerExit a parse tree produced byEK9Parser.ifStatement().The default implementation does nothing.
- Specified by:
exitIfStatementin interfaceEK9Listener- Overrides:
exitIfStatementin classEK9BaseListener- Parameters:
ctx- the parse tree
-
exitSwitchStatementExpression
Description copied from class:EK9BaseListenerExit a parse tree produced byEK9Parser.switchStatementExpression().The default implementation does nothing.
- Specified by:
exitSwitchStatementExpressionin interfaceEK9Listener- Overrides:
exitSwitchStatementExpressionin classEK9BaseListener- Parameters:
ctx- the parse tree
-
exitForStatementExpression
Description copied from class:EK9BaseListenerExit a parse tree produced byEK9Parser.forStatementExpression().The default implementation does nothing.
- Specified by:
exitForStatementExpressionin interfaceEK9Listener- Overrides:
exitForStatementExpressionin classEK9BaseListener- Parameters:
ctx- the parse tree
-
exitWhileStatementExpression
Description copied from class:EK9BaseListenerExit a parse tree produced byEK9Parser.whileStatementExpression().The default implementation does nothing.
- Specified by:
exitWhileStatementExpressionin interfaceEK9Listener- Overrides:
exitWhileStatementExpressionin classEK9BaseListener- Parameters:
ctx- the parse tree
-
exitReturningParam
Description copied from class:EK9BaseListenerExit a parse tree produced byEK9Parser.returningParam().The default implementation does nothing.
- Specified by:
exitReturningParamin interfaceEK9Listener- Overrides:
exitReturningParamin classEK9BaseListener- Parameters:
ctx- the parse tree
-
exitTryStatementExpression
Description copied from class:EK9BaseListenerExit a parse tree produced byEK9Parser.tryStatementExpression().The default implementation does nothing.
- Specified by:
exitTryStatementExpressionin interfaceEK9Listener- Overrides:
exitTryStatementExpressionin classEK9BaseListener- Parameters:
ctx- the parse tree
-
exitCatchStatementExpression
Description copied from class:EK9BaseListenerExit a parse tree produced byEK9Parser.catchStatementExpression().The default implementation does nothing.
- Specified by:
exitCatchStatementExpressionin interfaceEK9Listener- Overrides:
exitCatchStatementExpressionin classEK9BaseListener- Parameters:
ctx- the parse tree
-
exitFinallyStatementExpression
Description copied from class:EK9BaseListenerExit a parse tree produced byEK9Parser.finallyStatementExpression().The default implementation does nothing.
- Specified by:
exitFinallyStatementExpressionin interfaceEK9Listener- Overrides:
exitFinallyStatementExpressionin classEK9BaseListener- Parameters:
ctx- the parse tree
-
exitTernaryPart
Description copied from class:EK9BaseListenerExit a parse tree produced byEK9Parser.ternaryPart().The default implementation does nothing.
- Specified by:
exitTernaryPartin interfaceEK9Listener- Overrides:
exitTernaryPartin classEK9BaseListener- Parameters:
ctx- the parse tree
-
exitBlock
Description copied from class:EK9BaseListenerExit a parse tree produced byEK9Parser.block().The default implementation does nothing.
- Specified by:
exitBlockin interfaceEK9Listener- Overrides:
exitBlockin classEK9BaseListener- Parameters:
ctx- the parse tree
-
exitSingleStatementBlock
Description copied from class:EK9BaseListenerExit a parse tree produced byEK9Parser.singleStatementBlock().The default implementation does nothing.
- Specified by:
exitSingleStatementBlockin interfaceEK9Listener- Overrides:
exitSingleStatementBlockin classEK9BaseListener- Parameters:
ctx- the parse tree
-
exitInstructionBlock
Description copied from class:EK9BaseListenerExit a parse tree produced byEK9Parser.instructionBlock().The default implementation does nothing.
- Specified by:
exitInstructionBlockin interfaceEK9Listener- Overrides:
exitInstructionBlockin classEK9BaseListener- Parameters:
ctx- the parse tree
-