Package org.pkl.core.parser.antlr
Interface PklParserVisitor<Result>
-
- Type Parameters:
Result- The return type of the visit operation. UseVoidfor operations with no return type.
- All Superinterfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<Result>
- All Known Implementing Classes:
AbstractAstBuilder,AstBuilder,ImportsAndReadsParser,PklParserBaseVisitor
public interface PklParserVisitor<Result> extends org.antlr.v4.runtime.tree.ParseTreeVisitor<Result>This interface defines a complete generic visitor for a parse tree produced byPklParser.
-
-
Method Summary
-
-
-
Method Detail
-
visitUnknownType
Result visitUnknownType(@NotNull PklParser.UnknownTypeContext ctx)
Visit a parse tree produced by theunknownTypelabeled alternative inPklParser.type().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNothingType
Result visitNothingType(@NotNull PklParser.NothingTypeContext ctx)
Visit a parse tree produced by thenothingTypelabeled alternative inPklParser.type().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitModuleType
Result visitModuleType(@NotNull PklParser.ModuleTypeContext ctx)
Visit a parse tree produced by themoduleTypelabeled alternative inPklParser.type().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStringLiteralType
Result visitStringLiteralType(@NotNull PklParser.StringLiteralTypeContext ctx)
Visit a parse tree produced by thestringLiteralTypelabeled alternative inPklParser.type().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDeclaredType
Result visitDeclaredType(@NotNull PklParser.DeclaredTypeContext ctx)
Visit a parse tree produced by thedeclaredTypelabeled alternative inPklParser.type().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParenthesizedType
Result visitParenthesizedType(@NotNull PklParser.ParenthesizedTypeContext ctx)
Visit a parse tree produced by theparenthesizedTypelabeled alternative inPklParser.type().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNullableType
Result visitNullableType(@NotNull PklParser.NullableTypeContext ctx)
Visit a parse tree produced by thenullableTypelabeled alternative inPklParser.type().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConstrainedType
Result visitConstrainedType(@NotNull PklParser.ConstrainedTypeContext ctx)
Visit a parse tree produced by theconstrainedTypelabeled alternative inPklParser.type().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDefaultUnionType
Result visitDefaultUnionType(@NotNull PklParser.DefaultUnionTypeContext ctx)
Visit a parse tree produced by thedefaultUnionTypelabeled alternative inPklParser.type().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUnionType
Result visitUnionType(@NotNull PklParser.UnionTypeContext ctx)
Visit a parse tree produced by theunionTypelabeled alternative inPklParser.type().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFunctionType
Result visitFunctionType(@NotNull PklParser.FunctionTypeContext ctx)
Visit a parse tree produced by thefunctionTypelabeled alternative inPklParser.type().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitThisExpr
Result visitThisExpr(@NotNull PklParser.ThisExprContext ctx)
Visit a parse tree produced by thethisExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOuterExpr
Result visitOuterExpr(@NotNull PklParser.OuterExprContext ctx)
Visit a parse tree produced by theouterExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitModuleExpr
Result visitModuleExpr(@NotNull PklParser.ModuleExprContext ctx)
Visit a parse tree produced by themoduleExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNullLiteral
Result visitNullLiteral(@NotNull PklParser.NullLiteralContext ctx)
Visit a parse tree produced by thenullLiterallabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTrueLiteral
Result visitTrueLiteral(@NotNull PklParser.TrueLiteralContext ctx)
Visit a parse tree produced by thetrueLiterallabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFalseLiteral
Result visitFalseLiteral(@NotNull PklParser.FalseLiteralContext ctx)
Visit a parse tree produced by thefalseLiterallabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIntLiteral
Result visitIntLiteral(@NotNull PklParser.IntLiteralContext ctx)
Visit a parse tree produced by theintLiterallabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFloatLiteral
Result visitFloatLiteral(@NotNull PklParser.FloatLiteralContext ctx)
Visit a parse tree produced by thefloatLiterallabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitThrowExpr
Result visitThrowExpr(@NotNull PklParser.ThrowExprContext ctx)
Visit a parse tree produced by thethrowExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTraceExpr
Result visitTraceExpr(@NotNull PklParser.TraceExprContext ctx)
Visit a parse tree produced by thetraceExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitImportExpr
Result visitImportExpr(@NotNull PklParser.ImportExprContext ctx)
Visit a parse tree produced by theimportExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitReadExpr
Result visitReadExpr(@NotNull PklParser.ReadExprContext ctx)
Visit a parse tree produced by thereadExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUnqualifiedAccessExpr
Result visitUnqualifiedAccessExpr(@NotNull PklParser.UnqualifiedAccessExprContext ctx)
Visit a parse tree produced by theunqualifiedAccessExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSingleLineStringLiteral
Result visitSingleLineStringLiteral(@NotNull PklParser.SingleLineStringLiteralContext ctx)
Visit a parse tree produced by thesingleLineStringLiterallabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMultiLineStringLiteral
Result visitMultiLineStringLiteral(@NotNull PklParser.MultiLineStringLiteralContext ctx)
Visit a parse tree produced by themultiLineStringLiterallabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNewExpr
Result visitNewExpr(@NotNull PklParser.NewExprContext ctx)
Visit a parse tree produced by thenewExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAmendExpr
Result visitAmendExpr(@NotNull PklParser.AmendExprContext ctx)
Visit a parse tree produced by theamendExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSuperAccessExpr
Result visitSuperAccessExpr(@NotNull PklParser.SuperAccessExprContext ctx)
Visit a parse tree produced by thesuperAccessExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSuperSubscriptExpr
Result visitSuperSubscriptExpr(@NotNull PklParser.SuperSubscriptExprContext ctx)
Visit a parse tree produced by thesuperSubscriptExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQualifiedAccessExpr
Result visitQualifiedAccessExpr(@NotNull PklParser.QualifiedAccessExprContext ctx)
Visit a parse tree produced by thequalifiedAccessExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSubscriptExpr
Result visitSubscriptExpr(@NotNull PklParser.SubscriptExprContext ctx)
Visit a parse tree produced by thesubscriptExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNonNullExpr
Result visitNonNullExpr(@NotNull PklParser.NonNullExprContext ctx)
Visit a parse tree produced by thenonNullExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUnaryMinusExpr
Result visitUnaryMinusExpr(@NotNull PklParser.UnaryMinusExprContext ctx)
Visit a parse tree produced by theunaryMinusExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLogicalNotExpr
Result visitLogicalNotExpr(@NotNull PklParser.LogicalNotExprContext ctx)
Visit a parse tree produced by thelogicalNotExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExponentiationExpr
Result visitExponentiationExpr(@NotNull PklParser.ExponentiationExprContext ctx)
Visit a parse tree produced by theexponentiationExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMultiplicativeExpr
Result visitMultiplicativeExpr(@NotNull PklParser.MultiplicativeExprContext ctx)
Visit a parse tree produced by themultiplicativeExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAdditiveExpr
Result visitAdditiveExpr(@NotNull PklParser.AdditiveExprContext ctx)
Visit a parse tree produced by theadditiveExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitComparisonExpr
Result visitComparisonExpr(@NotNull PklParser.ComparisonExprContext ctx)
Visit a parse tree produced by thecomparisonExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeTestExpr
Result visitTypeTestExpr(@NotNull PklParser.TypeTestExprContext ctx)
Visit a parse tree produced by thetypeTestExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEqualityExpr
Result visitEqualityExpr(@NotNull PklParser.EqualityExprContext ctx)
Visit a parse tree produced by theequalityExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLogicalAndExpr
Result visitLogicalAndExpr(@NotNull PklParser.LogicalAndExprContext ctx)
Visit a parse tree produced by thelogicalAndExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLogicalOrExpr
Result visitLogicalOrExpr(@NotNull PklParser.LogicalOrExprContext ctx)
Visit a parse tree produced by thelogicalOrExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPipeExpr
Result visitPipeExpr(@NotNull PklParser.PipeExprContext ctx)
Visit a parse tree produced by thepipeExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNullCoalesceExpr
Result visitNullCoalesceExpr(@NotNull PklParser.NullCoalesceExprContext ctx)
Visit a parse tree produced by thenullCoalesceExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIfExpr
Result visitIfExpr(@NotNull PklParser.IfExprContext ctx)
Visit a parse tree produced by theifExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLetExpr
Result visitLetExpr(@NotNull PklParser.LetExprContext ctx)
Visit a parse tree produced by theletExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFunctionLiteral
Result visitFunctionLiteral(@NotNull PklParser.FunctionLiteralContext ctx)
Visit a parse tree produced by thefunctionLiterallabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParenthesizedExpr
Result visitParenthesizedExpr(@NotNull PklParser.ParenthesizedExprContext ctx)
Visit a parse tree produced by theparenthesizedExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObjectProperty
Result visitObjectProperty(@NotNull PklParser.ObjectPropertyContext ctx)
Visit a parse tree produced by theobjectPropertylabeled alternative inPklParser.objectMember().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObjectMethod
Result visitObjectMethod(@NotNull PklParser.ObjectMethodContext ctx)
Visit a parse tree produced by theobjectMethodlabeled alternative inPklParser.objectMember().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMemberPredicate
Result visitMemberPredicate(@NotNull PklParser.MemberPredicateContext ctx)
Visit a parse tree produced by thememberPredicatelabeled alternative inPklParser.objectMember().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObjectEntry
Result visitObjectEntry(@NotNull PklParser.ObjectEntryContext ctx)
Visit a parse tree produced by theobjectEntrylabeled alternative inPklParser.objectMember().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObjectElement
Result visitObjectElement(@NotNull PklParser.ObjectElementContext ctx)
Visit a parse tree produced by theobjectElementlabeled alternative inPklParser.objectMember().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObjectSpread
Result visitObjectSpread(@NotNull PklParser.ObjectSpreadContext ctx)
Visit a parse tree produced by theobjectSpreadlabeled alternative inPklParser.objectMember().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitWhenGenerator
Result visitWhenGenerator(@NotNull PklParser.WhenGeneratorContext ctx)
Visit a parse tree produced by thewhenGeneratorlabeled alternative inPklParser.objectMember().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitForGenerator
Result visitForGenerator(@NotNull PklParser.ForGeneratorContext ctx)
Visit a parse tree produced by theforGeneratorlabeled alternative inPklParser.objectMember().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitReplInput
Result visitReplInput(@NotNull PklParser.ReplInputContext ctx)
Visit a parse tree produced byPklParser.replInput().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprInput
Result visitExprInput(@NotNull PklParser.ExprInputContext ctx)
Visit a parse tree produced byPklParser.exprInput().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitModule
Result visitModule(@NotNull PklParser.ModuleContext ctx)
Visit a parse tree produced byPklParser.module().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitModuleDecl
Result visitModuleDecl(@NotNull PklParser.ModuleDeclContext ctx)
Visit a parse tree produced byPklParser.moduleDecl().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitModuleHeader
Result visitModuleHeader(@NotNull PklParser.ModuleHeaderContext ctx)
Visit a parse tree produced byPklParser.moduleHeader().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitModuleExtendsOrAmendsClause
Result visitModuleExtendsOrAmendsClause(@NotNull PklParser.ModuleExtendsOrAmendsClauseContext ctx)
Visit a parse tree produced byPklParser.moduleExtendsOrAmendsClause().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitImportClause
Result visitImportClause(@NotNull PklParser.ImportClauseContext ctx)
Visit a parse tree produced byPklParser.importClause().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClazz
Result visitClazz(@NotNull PklParser.ClazzContext ctx)
Visit a parse tree produced byPklParser.clazz().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassHeader
Result visitClassHeader(@NotNull PklParser.ClassHeaderContext ctx)
Visit a parse tree produced byPklParser.classHeader().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitModifier
Result visitModifier(@NotNull PklParser.ModifierContext ctx)
Visit a parse tree produced byPklParser.modifier().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassBody
Result visitClassBody(@NotNull PklParser.ClassBodyContext ctx)
Visit a parse tree produced byPklParser.classBody().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeAlias
Result visitTypeAlias(@NotNull PklParser.TypeAliasContext ctx)
Visit a parse tree produced byPklParser.typeAlias().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeAliasHeader
Result visitTypeAliasHeader(@NotNull PklParser.TypeAliasHeaderContext ctx)
Visit a parse tree produced byPklParser.typeAliasHeader().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassProperty
Result visitClassProperty(@NotNull PklParser.ClassPropertyContext ctx)
Visit a parse tree produced byPklParser.classProperty().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassMethod
Result visitClassMethod(@NotNull PklParser.ClassMethodContext ctx)
Visit a parse tree produced byPklParser.classMethod().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMethodHeader
Result visitMethodHeader(@NotNull PklParser.MethodHeaderContext ctx)
Visit a parse tree produced byPklParser.methodHeader().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParameterList
Result visitParameterList(@NotNull PklParser.ParameterListContext ctx)
Visit a parse tree produced byPklParser.parameterList().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArgumentList
Result visitArgumentList(@NotNull PklParser.ArgumentListContext ctx)
Visit a parse tree produced byPklParser.argumentList().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotation
Result visitAnnotation(@NotNull PklParser.AnnotationContext ctx)
Visit a parse tree produced byPklParser.annotation().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQualifiedIdentifier
Result visitQualifiedIdentifier(@NotNull PklParser.QualifiedIdentifierContext ctx)
Visit a parse tree produced byPklParser.qualifiedIdentifier().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeAnnotation
Result visitTypeAnnotation(@NotNull PklParser.TypeAnnotationContext ctx)
Visit a parse tree produced byPklParser.typeAnnotation().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeParameterList
Result visitTypeParameterList(@NotNull PklParser.TypeParameterListContext ctx)
Visit a parse tree produced byPklParser.typeParameterList().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeParameter
Result visitTypeParameter(@NotNull PklParser.TypeParameterContext ctx)
Visit a parse tree produced byPklParser.typeParameter().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeArgumentList
Result visitTypeArgumentList(@NotNull PklParser.TypeArgumentListContext ctx)
Visit a parse tree produced byPklParser.typeArgumentList().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitType
Result visitType(@NotNull PklParser.TypeContext ctx)
Visit a parse tree produced byPklParser.type().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypedIdentifier
Result visitTypedIdentifier(@NotNull PklParser.TypedIdentifierContext ctx)
Visit a parse tree produced byPklParser.typedIdentifier().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParameter
Result visitParameter(@NotNull PklParser.ParameterContext ctx)
Visit a parse tree produced byPklParser.parameter().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExpr
Result visitExpr(@NotNull PklParser.ExprContext ctx)
Visit a parse tree produced byPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObjectBody
Result visitObjectBody(@NotNull PklParser.ObjectBodyContext ctx)
Visit a parse tree produced byPklParser.objectBody().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObjectMember
Result visitObjectMember(@NotNull PklParser.ObjectMemberContext ctx)
Visit a parse tree produced byPklParser.objectMember().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStringConstant
Result visitStringConstant(@NotNull PklParser.StringConstantContext ctx)
Visit a parse tree produced byPklParser.stringConstant().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSingleLineStringPart
Result visitSingleLineStringPart(@NotNull PklParser.SingleLineStringPartContext ctx)
Visit a parse tree produced byPklParser.singleLineStringPart().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMultiLineStringPart
Result visitMultiLineStringPart(@NotNull PklParser.MultiLineStringPartContext ctx)
Visit a parse tree produced byPklParser.multiLineStringPart().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitReservedKeyword
Result visitReservedKeyword(@NotNull PklParser.ReservedKeywordContext ctx)
Visit a parse tree produced byPklParser.reservedKeyword().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
-