Class AbstractEK9PhaseListener
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeListener
,EK9Listener
- Direct Known Subclasses:
DefinitionListener
,ScopeStackConsistencyListener
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Exit a parse tree produced byEK9Parser.applicationDeclaration()
.void
Exit a parse tree produced byEK9Parser.block()
.void
Exit a parse tree produced byEK9Parser.catchStatementExpression()
.void
Exit a parse tree produced byEK9Parser.classDeclaration()
.void
Exit a parse tree produced byEK9Parser.componentDeclaration()
.void
Exit a parse tree produced byEK9Parser.dynamicClassDeclaration()
.void
Exit a parse tree produced byEK9Parser.dynamicFunctionDeclaration()
.void
Exit a parse tree produced byEK9Parser.dynamicVariableCapture()
.void
Exit a parse tree produced byEK9Parser.finallyStatementExpression()
.void
Exit a parse tree produced byEK9Parser.forStatementExpression()
.void
Exit a parse tree produced byEK9Parser.functionDeclaration()
.void
Exit a parse tree produced byEK9Parser.ifStatement()
.void
Exit a parse tree produced byEK9Parser.instructionBlock()
.void
Exit a parse tree produced byEK9Parser.methodDeclaration()
.void
Exit a parse tree produced byEK9Parser.moduleDeclaration()
.void
Exit a parse tree produced byEK9Parser.operatorDeclaration()
.void
Exit a parse tree produced byEK9Parser.packageBlock()
.void
Exit a parse tree produced byEK9Parser.recordDeclaration()
.void
Exit a parse tree produced byEK9Parser.returningParam()
.void
Exit a parse tree produced byEK9Parser.serviceDeclaration()
.void
Exit a parse tree produced byEK9Parser.serviceOperationDeclaration()
.void
Exit a parse tree produced byEK9Parser.singleStatementBlock()
.void
Exit a parse tree produced byEK9Parser.switchStatementExpression()
.void
Exit a parse tree produced byEK9Parser.textBodyDeclaration()
.void
Exit a parse tree produced byEK9Parser.textDeclaration()
.void
Exit a parse tree produced byEK9Parser.traitDeclaration()
.void
Exit a parse tree produced byEK9Parser.tryStatementExpression()
.void
Exit a parse tree produced byEK9Parser.typeDeclaration()
.void
Exit a parse tree produced byEK9Parser.whileStatementExpression()
.Provide access to errorListener to extending Listeners.protected ParsedModule
Provide access to the parsedModule.boolean
protected void
pullBlockTerminationUp
(org.antlr.v4.runtime.tree.ParseTree node) protected void
protected void
protected void
Methods inherited from class org.ek9lang.antlr.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, 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:EK9BaseListener
Exit a parse tree produced byEK9Parser.moduleDeclaration()
.The default implementation does nothing.
- Specified by:
exitModuleDeclaration
in interfaceEK9Listener
- Overrides:
exitModuleDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitPackageBlock
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.packageBlock()
.The default implementation does nothing.
- Specified by:
exitPackageBlock
in interfaceEK9Listener
- Overrides:
exitPackageBlock
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitMethodDeclaration
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.methodDeclaration()
.The default implementation does nothing.
- Specified by:
exitMethodDeclaration
in interfaceEK9Listener
- Overrides:
exitMethodDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitOperatorDeclaration
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.operatorDeclaration()
.The default implementation does nothing.
- Specified by:
exitOperatorDeclaration
in interfaceEK9Listener
- Overrides:
exitOperatorDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitFunctionDeclaration
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.functionDeclaration()
.The default implementation does nothing.
- Specified by:
exitFunctionDeclaration
in interfaceEK9Listener
- Overrides:
exitFunctionDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitRecordDeclaration
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.recordDeclaration()
.The default implementation does nothing.
- Specified by:
exitRecordDeclaration
in interfaceEK9Listener
- Overrides:
exitRecordDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitTraitDeclaration
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.traitDeclaration()
.The default implementation does nothing.
- Specified by:
exitTraitDeclaration
in interfaceEK9Listener
- Overrides:
exitTraitDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitClassDeclaration
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.classDeclaration()
.The default implementation does nothing.
- Specified by:
exitClassDeclaration
in interfaceEK9Listener
- Overrides:
exitClassDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitComponentDeclaration
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.componentDeclaration()
.The default implementation does nothing.
- Specified by:
exitComponentDeclaration
in interfaceEK9Listener
- Overrides:
exitComponentDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitTextDeclaration
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.textDeclaration()
.The default implementation does nothing.
- Specified by:
exitTextDeclaration
in interfaceEK9Listener
- Overrides:
exitTextDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitTextBodyDeclaration
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.textBodyDeclaration()
.The default implementation does nothing.
- Specified by:
exitTextBodyDeclaration
in interfaceEK9Listener
- Overrides:
exitTextBodyDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitServiceDeclaration
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.serviceDeclaration()
.The default implementation does nothing.
- Specified by:
exitServiceDeclaration
in interfaceEK9Listener
- Overrides:
exitServiceDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitServiceOperationDeclaration
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.serviceOperationDeclaration()
.The default implementation does nothing.
- Specified by:
exitServiceOperationDeclaration
in interfaceEK9Listener
- Overrides:
exitServiceOperationDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitApplicationDeclaration
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.applicationDeclaration()
.The default implementation does nothing.
- Specified by:
exitApplicationDeclaration
in interfaceEK9Listener
- Overrides:
exitApplicationDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitDynamicClassDeclaration
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.dynamicClassDeclaration()
.The default implementation does nothing.
- Specified by:
exitDynamicClassDeclaration
in interfaceEK9Listener
- Overrides:
exitDynamicClassDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitDynamicFunctionDeclaration
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.dynamicFunctionDeclaration()
.The default implementation does nothing.
- Specified by:
exitDynamicFunctionDeclaration
in interfaceEK9Listener
- Overrides:
exitDynamicFunctionDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitDynamicVariableCapture
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.dynamicVariableCapture()
.The default implementation does nothing.
- Specified by:
exitDynamicVariableCapture
in interfaceEK9Listener
- Overrides:
exitDynamicVariableCapture
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitTypeDeclaration
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.typeDeclaration()
.The default implementation does nothing.
- Specified by:
exitTypeDeclaration
in interfaceEK9Listener
- Overrides:
exitTypeDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitIfStatement
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.ifStatement()
.The default implementation does nothing.
- Specified by:
exitIfStatement
in interfaceEK9Listener
- Overrides:
exitIfStatement
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitSwitchStatementExpression
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.switchStatementExpression()
.The default implementation does nothing.
- Specified by:
exitSwitchStatementExpression
in interfaceEK9Listener
- Overrides:
exitSwitchStatementExpression
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitForStatementExpression
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.forStatementExpression()
.The default implementation does nothing.
- Specified by:
exitForStatementExpression
in interfaceEK9Listener
- Overrides:
exitForStatementExpression
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitWhileStatementExpression
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.whileStatementExpression()
.The default implementation does nothing.
- Specified by:
exitWhileStatementExpression
in interfaceEK9Listener
- Overrides:
exitWhileStatementExpression
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitReturningParam
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.returningParam()
.The default implementation does nothing.
- Specified by:
exitReturningParam
in interfaceEK9Listener
- Overrides:
exitReturningParam
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitTryStatementExpression
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.tryStatementExpression()
.The default implementation does nothing.
- Specified by:
exitTryStatementExpression
in interfaceEK9Listener
- Overrides:
exitTryStatementExpression
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitCatchStatementExpression
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.catchStatementExpression()
.The default implementation does nothing.
- Specified by:
exitCatchStatementExpression
in interfaceEK9Listener
- Overrides:
exitCatchStatementExpression
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitFinallyStatementExpression
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.finallyStatementExpression()
.The default implementation does nothing.
- Specified by:
exitFinallyStatementExpression
in interfaceEK9Listener
- Overrides:
exitFinallyStatementExpression
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitBlock
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.block()
.The default implementation does nothing.
- Specified by:
exitBlock
in interfaceEK9Listener
- Overrides:
exitBlock
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitSingleStatementBlock
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.singleStatementBlock()
.The default implementation does nothing.
- Specified by:
exitSingleStatementBlock
in interfaceEK9Listener
- Overrides:
exitSingleStatementBlock
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitInstructionBlock
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.instructionBlock()
.The default implementation does nothing.
- Specified by:
exitInstructionBlock
in interfaceEK9Listener
- Overrides:
exitInstructionBlock
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-