Class ExpressionsListener
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeListener
,EK9Listener
- Direct Known Subclasses:
ResolveDefineInferredTypeListener
-
Field Summary
Fields inherited from class org.ek9lang.compiler.common.AbstractEK9PhaseListener
symbolsAndScopes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Enter a parse tree produced byEK9Parser.switchStatementExpression()
.void
Enter a parse tree produced byEK9Parser.tryStatementExpression()
.void
Enter a parse tree produced byEK9Parser.whileStatementExpression()
.void
Exit a parse tree produced byEK9Parser.assignmentExpression()
.void
Exit a parse tree produced byEK9Parser.assignmentStatement()
.void
Exit a parse tree produced byEK9Parser.call()
.void
Exit a parse tree produced byEK9Parser.caseExpression()
.void
Exit a parse tree produced byEK9Parser.dict()
.void
Exit a parse tree produced byEK9Parser.expression()
.void
Exit a parse tree produced byEK9Parser.forLoop()
.void
Exit a parse tree produced byEK9Parser.forRange()
.void
Exit a parse tree produced byEK9Parser.forStatementExpression()
.void
Exit a parse tree produced byEK9Parser.guardExpression()
.void
Exit a parse tree produced byEK9Parser.identifierReference()
.void
Exit a parse tree produced byEK9Parser.ifStatement()
.void
Exit a parse tree produced byEK9Parser.instructionBlock()
.void
Exit a parse tree produced byEK9Parser.list()
.void
Exit a parse tree produced byEK9Parser.objectAccessExpression()
.void
Exit a parse tree produced byEK9Parser.objectAccessStart()
.void
Exit a parse tree produced byEK9Parser.pipelinePart()
.void
Exit a parse tree produced byEK9Parser.preFlowStatement()
.void
Exit a parse tree produced byEK9Parser.primary()
.void
Exit a parse tree produced byEK9Parser.primaryReference()
.void
Exit a parse tree produced byEK9Parser.range()
.void
Exit a parse tree produced byEK9Parser.statement()
.void
Exit a parse tree produced byEK9Parser.streamCat()
.void
Exit a parse tree produced byEK9Parser.streamExpression()
.void
Exit a parse tree produced byEK9Parser.streamExpressionTermination()
.void
Exit a parse tree produced byEK9Parser.streamFor()
.void
Exit a parse tree produced byEK9Parser.streamStatement()
.void
Exit a parse tree produced byEK9Parser.streamStatementTermination()
.void
Exit a parse tree produced byEK9Parser.switchStatementExpression()
.void
Exit a parse tree produced byEK9Parser.throwStatement()
.void
Exit a parse tree produced byEK9Parser.traitReference()
.void
Exit a parse tree produced byEK9Parser.tryStatementExpression()
.void
Exit a parse tree produced byEK9Parser.variableDeclaration()
.void
Exit a parse tree produced byEK9Parser.variableOnlyDeclaration()
.void
Exit a parse tree produced byEK9Parser.whileStatementExpression()
.Methods inherited from class org.ek9lang.compiler.common.ScopeStackConsistencyListener
enterApplicationDeclaration, enterBlock, enterCatchStatementExpression, enterClassDeclaration, enterComponentDeclaration, enterDynamicClassDeclaration, enterDynamicFunctionDeclaration, enterDynamicVariableCapture, enterFinallyStatementExpression, enterForStatementExpression, enterFunctionDeclaration, enterIfStatement, enterInstructionBlock, enterMethodDeclaration, enterOperatorDeclaration, enterPackageBlock, enterRecordDeclaration, enterReturningParam, enterServiceDeclaration, enterServiceOperationDeclaration, enterSingleStatementBlock, enterTextBodyDeclaration, enterTextDeclaration, enterTraitDeclaration, enterTypeDeclaration
Methods inherited from class org.ek9lang.compiler.common.AbstractEK9PhaseListener
exitApplicationDeclaration, exitBlock, exitCatchStatementExpression, exitClassDeclaration, exitComponentDeclaration, exitDynamicClassDeclaration, exitDynamicFunctionDeclaration, exitDynamicVariableCapture, exitFinallyStatementExpression, exitFunctionDeclaration, exitMethodDeclaration, exitModuleDeclaration, exitOperatorDeclaration, exitPackageBlock, exitRecordDeclaration, exitReturningParam, exitServiceDeclaration, exitServiceOperationDeclaration, exitSingleStatementBlock, exitTextBodyDeclaration, exitTextDeclaration, exitTraitDeclaration, exitTypeDeclaration, getErrorListener, getParsedModule, isScopeStackEmpty, pullBlockTerminationUp, pullIfElseTerminationUp, pullSwitchCaseDefaultUp, pullTryCatchFinallyUp
Methods inherited from class org.ek9lang.antlr.EK9BaseListener
enterAccessModifier, enterAggregateParts, enterAggregateProperty, enterAllowingOnly, enterApplicationBlock, enterArgumentParam, enterAspectDeclaration, enterAssertStatement, enterAssignmentExpression, enterAssignmentStatement, enterBinaryLit, enterBinaryLiteral, enterBlockStatement, enterBooleanLit, enterBooleanLiteral, enterCall, enterCaseExpression, enterCaseStatement, enterCharacterLit, enterCharacterLiteral, enterClassBlock, enterColourLit, enterColourLiteral, enterCompilationUnit, enterComponentBlock, enterConstantBlock, enterConstantDeclaration, enterConstantInitialiser, enterConstrainDeclaration, enterConstrainType, enterDateLit, enterDateLiteral, enterDateTimeLit, enterDateTimeLiteral, enterDeclareArgumentParam, enterDecorationDimensionLiteral, enterDecorationResolutionLiteral, enterDefaultOperator, enterDict, enterDimensionLit, enterDirective, enterDirectivePart, enterDottedName, enterDurationLit, enterDurationLiteral, enterDynamicFunctionBody, enterElseOnlyBlock, enterEnumerationDeclaration, enterEveryRule, enterExpression, enterExpressionParam, enterExtendDeclaration, enterExtendPreamble, enterFloatingPointLit, enterFloatingPointLiteral, enterForLoop, enterForRange, enterFunctionBlock, enterGuardExpression, enterHttpAccess, enterHttpVerb, enterIdentifier, enterIdentifierReference, enterIfControlBlock, enterInitValuePair, enterIntegerLit, enterIntegerLiteral, enterList, enterMillisecondLit, enterMillisecondLiteral, enterModuleBlock, enterModuleDeclaration, enterMoneyLit, enterMoneyLiteral, enterObjectAccess, enterObjectAccessExpression, enterObjectAccessStart, enterObjectAccessType, enterOperationCall, enterOperationDetails, enterOperator, enterParameterisedArgs, enterParameterisedDetail, enterParameterisedParams, enterParameterisedType, enterParamExpression, enterPathLit, enterPathLiteral, enterPipelinePart, enterPreFlowAndControl, enterPreFlowStatement, enterPrimary, enterPrimaryReference, enterProgramBlock, enterRange, enterRecordBlock, enterReferencesBlock, enterRegExLit, enterRegisterStatement, enterRegularExpressionLiteral, enterResolutionLit, enterServiceBlock, enterSheBang, enterStatement, enterStreamCat, enterStreamExpression, enterStreamExpressionTermination, enterStreamFor, enterStreamPart, enterStreamSource, enterStreamStatement, enterStreamStatementTermination, enterStringLit, enterStringLiteral, enterStringPart, enterTextBlock, enterThrowStatement, enterTimeLit, enterTimeLiteral, enterTraitBlock, enterTraitPreamble, enterTraitReference, enterTraitsList, enterTypeBlock, enterTypeDef, enterVariableDeclaration, enterVariableOnlyDeclaration, enterVersionNumberLit, enterVersionNumberLiteral, enterWebVariableCorrelation, exitAccessModifier, exitAggregateParts, exitAggregateProperty, exitAllowingOnly, exitApplicationBlock, exitArgumentParam, exitAspectDeclaration, exitAssertStatement, exitBinaryLit, exitBinaryLiteral, exitBlockStatement, exitBooleanLit, exitBooleanLiteral, exitCaseStatement, exitCharacterLit, exitCharacterLiteral, exitClassBlock, exitColourLit, exitColourLiteral, exitCompilationUnit, exitComponentBlock, exitConstantBlock, exitConstantDeclaration, exitConstantInitialiser, exitConstrainDeclaration, exitConstrainType, exitDateLit, exitDateLiteral, exitDateTimeLit, exitDateTimeLiteral, exitDeclareArgumentParam, exitDecorationDimensionLiteral, exitDecorationResolutionLiteral, exitDefaultOperator, exitDimensionLit, exitDirective, exitDirectivePart, exitDottedName, exitDurationLit, exitDurationLiteral, exitDynamicFunctionBody, exitElseOnlyBlock, exitEnumerationDeclaration, exitEveryRule, exitExpressionParam, exitExtendDeclaration, exitExtendPreamble, exitFloatingPointLit, exitFloatingPointLiteral, exitFunctionBlock, exitHttpAccess, exitHttpVerb, exitIdentifier, exitIfControlBlock, exitInitValuePair, exitIntegerLit, exitIntegerLiteral, exitMillisecondLit, exitMillisecondLiteral, exitModuleBlock, exitMoneyLit, exitMoneyLiteral, exitObjectAccess, exitObjectAccessType, exitOperationCall, exitOperationDetails, exitOperator, exitParameterisedArgs, exitParameterisedDetail, exitParameterisedParams, exitParameterisedType, exitParamExpression, exitPathLit, exitPathLiteral, exitPreFlowAndControl, exitProgramBlock, exitRecordBlock, exitReferencesBlock, exitRegExLit, exitRegisterStatement, exitRegularExpressionLiteral, exitResolutionLit, exitServiceBlock, exitSheBang, exitStreamPart, exitStreamSource, exitStringLit, exitStringLiteral, exitStringPart, exitTextBlock, exitTimeLit, exitTimeLiteral, exitTraitBlock, exitTraitPreamble, exitTraitsList, exitTypeBlock, exitTypeDef, exitVersionNumberLit, exitVersionNumberLiteral, exitWebVariableCorrelation, visitErrorNode, visitTerminal
-
Field Details
-
symbolFactory
-
errorListener
-
-
Constructor Details
-
ExpressionsListener
-
-
Method Details
-
exitIdentifierReference
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.identifierReference()
.The default implementation does nothing.
- Specified by:
exitIdentifierReference
in interfaceEK9Listener
- Overrides:
exitIdentifierReference
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitTraitReference
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.traitReference()
.The default implementation does nothing.
- Specified by:
exitTraitReference
in interfaceEK9Listener
- Overrides:
exitTraitReference
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitPrimaryReference
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.primaryReference()
.The default implementation does nothing.
- Specified by:
exitPrimaryReference
in interfaceEK9Listener
- Overrides:
exitPrimaryReference
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitPrimary
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.primary()
.The default implementation does nothing.
- Specified by:
exitPrimary
in interfaceEK9Listener
- Overrides:
exitPrimary
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitCall
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.call()
.The default implementation does nothing.
- Specified by:
exitCall
in interfaceEK9Listener
- Overrides:
exitCall
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitList
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.list()
.The default implementation does nothing.
- Specified by:
exitList
in interfaceEK9Listener
- Overrides:
exitList
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitDict
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.dict()
.The default implementation does nothing.
- Specified by:
exitDict
in interfaceEK9Listener
- Overrides:
exitDict
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitRange
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.range()
.The default implementation does nothing.
- Specified by:
exitRange
in interfaceEK9Listener
- Overrides:
exitRange
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitForLoop
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.forLoop()
.The default implementation does nothing.
- Specified by:
exitForLoop
in interfaceEK9Listener
- Overrides:
exitForLoop
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitForRange
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.forRange()
.The default implementation does nothing.
- Specified by:
exitForRange
in interfaceEK9Listener
- Overrides:
exitForRange
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitStatement
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.statement()
.The default implementation does nothing.
- Specified by:
exitStatement
in interfaceEK9Listener
- Overrides:
exitStatement
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitExpression
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.expression()
.The default implementation does nothing.
- Specified by:
exitExpression
in interfaceEK9Listener
- Overrides:
exitExpression
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitAssignmentExpression
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.assignmentExpression()
.The default implementation does nothing.
- Specified by:
exitAssignmentExpression
in interfaceEK9Listener
- Overrides:
exitAssignmentExpression
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitAssignmentStatement
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.assignmentStatement()
.The default implementation does nothing.
- Specified by:
exitAssignmentStatement
in interfaceEK9Listener
- Overrides:
exitAssignmentStatement
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 classAbstractEK9PhaseListener
- Parameters:
ctx
- the parse tree
-
exitPreFlowStatement
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.preFlowStatement()
.The default implementation does nothing.
- Specified by:
exitPreFlowStatement
in interfaceEK9Listener
- Overrides:
exitPreFlowStatement
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitGuardExpression
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.guardExpression()
.The default implementation does nothing.
- Specified by:
exitGuardExpression
in interfaceEK9Listener
- Overrides:
exitGuardExpression
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 classAbstractEK9PhaseListener
- Parameters:
ctx
- the parse tree
-
enterWhileStatementExpression
Description copied from class:EK9BaseListener
Enter a parse tree produced byEK9Parser.whileStatementExpression()
.The default implementation does nothing.
- Specified by:
enterWhileStatementExpression
in interfaceEK9Listener
- Overrides:
enterWhileStatementExpression
in classScopeStackConsistencyListener
- 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 classAbstractEK9PhaseListener
- Parameters:
ctx
- the parse tree
-
enterSwitchStatementExpression
Description copied from class:EK9BaseListener
Enter a parse tree produced byEK9Parser.switchStatementExpression()
.The default implementation does nothing.
- Specified by:
enterSwitchStatementExpression
in interfaceEK9Listener
- Overrides:
enterSwitchStatementExpression
in classScopeStackConsistencyListener
- 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 classAbstractEK9PhaseListener
- Parameters:
ctx
- the parse tree
-
enterTryStatementExpression
Description copied from class:EK9BaseListener
Enter a parse tree produced byEK9Parser.tryStatementExpression()
.The default implementation does nothing.
- Specified by:
enterTryStatementExpression
in interfaceEK9Listener
- Overrides:
enterTryStatementExpression
in classScopeStackConsistencyListener
- Parameters:
ctx
- the parse tree
-
exitThrowStatement
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.throwStatement()
.The default implementation does nothing.
- Specified by:
exitThrowStatement
in interfaceEK9Listener
- Overrides:
exitThrowStatement
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitCaseExpression
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.caseExpression()
.The default implementation does nothing.
- Specified by:
exitCaseExpression
in interfaceEK9Listener
- Overrides:
exitCaseExpression
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 classAbstractEK9PhaseListener
- 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 classAbstractEK9PhaseListener
- Parameters:
ctx
- the parse tree
-
exitObjectAccessStart
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.objectAccessStart()
.The default implementation does nothing.
- Specified by:
exitObjectAccessStart
in interfaceEK9Listener
- Overrides:
exitObjectAccessStart
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitObjectAccessExpression
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.objectAccessExpression()
.The default implementation does nothing.
- Specified by:
exitObjectAccessExpression
in interfaceEK9Listener
- Overrides:
exitObjectAccessExpression
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitVariableDeclaration
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.variableDeclaration()
.The default implementation does nothing.
- Specified by:
exitVariableDeclaration
in interfaceEK9Listener
- Overrides:
exitVariableDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitVariableOnlyDeclaration
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.variableOnlyDeclaration()
.The default implementation does nothing.
- Specified by:
exitVariableOnlyDeclaration
in interfaceEK9Listener
- Overrides:
exitVariableOnlyDeclaration
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitStreamCat
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.streamCat()
.The default implementation does nothing.
- Specified by:
exitStreamCat
in interfaceEK9Listener
- Overrides:
exitStreamCat
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitStreamFor
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.streamFor()
.The default implementation does nothing.
- Specified by:
exitStreamFor
in interfaceEK9Listener
- Overrides:
exitStreamFor
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitPipelinePart
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.pipelinePart()
.The default implementation does nothing.
- Specified by:
exitPipelinePart
in interfaceEK9Listener
- Overrides:
exitPipelinePart
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitStreamStatementTermination
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.streamStatementTermination()
.The default implementation does nothing.
- Specified by:
exitStreamStatementTermination
in interfaceEK9Listener
- Overrides:
exitStreamStatementTermination
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitStreamStatement
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.streamStatement()
.The default implementation does nothing.
- Specified by:
exitStreamStatement
in interfaceEK9Listener
- Overrides:
exitStreamStatement
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitStreamExpressionTermination
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.streamExpressionTermination()
.The default implementation does nothing.
- Specified by:
exitStreamExpressionTermination
in interfaceEK9Listener
- Overrides:
exitStreamExpressionTermination
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-
exitStreamExpression
Description copied from class:EK9BaseListener
Exit a parse tree produced byEK9Parser.streamExpression()
.The default implementation does nothing.
- Specified by:
exitStreamExpression
in interfaceEK9Listener
- Overrides:
exitStreamExpression
in classEK9BaseListener
- Parameters:
ctx
- the parse tree
-