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
by
PklParser.-
Method Summary
Modifier and TypeMethodDescriptionVisit a parse tree produced by theadditiveExprlabeled alternative inPklParser.expr().Visit a parse tree produced by theamendExprlabeled alternative inPklParser.expr().Visit a parse tree produced byPklParser.annotation().Visit a parse tree produced byPklParser.argumentList().Visit a parse tree produced byPklParser.classBody().Visit a parse tree produced byPklParser.classHeader().Visit a parse tree produced byPklParser.classMethod().Visit a parse tree produced byPklParser.classProperty().Visit a parse tree produced byPklParser.clazz().Visit a parse tree produced by thecomparisonExprlabeled alternative inPklParser.expr().Visit a parse tree produced by theconstrainedTypelabeled alternative inPklParser.type().Visit a parse tree produced by thedeclaredTypelabeled alternative inPklParser.type().Visit a parse tree produced by thedefaultUnionTypelabeled alternative inPklParser.type().Visit a parse tree produced by theequalityExprlabeled alternative inPklParser.expr().Visit a parse tree produced by theexponentiationExprlabeled alternative inPklParser.expr().Visit a parse tree produced byPklParser.expr().Visit a parse tree produced byPklParser.exprInput().Visit a parse tree produced by thefalseLiterallabeled alternative inPklParser.expr().Visit a parse tree produced by thefloatLiterallabeled alternative inPklParser.expr().Visit a parse tree produced by theforGeneratorlabeled alternative inPklParser.objectMember().Visit a parse tree produced by thefunctionLiterallabeled alternative inPklParser.expr().Visit a parse tree produced by thefunctionTypelabeled alternative inPklParser.type().Visit a parse tree produced by theifExprlabeled alternative inPklParser.expr().Visit a parse tree produced byPklParser.importClause().Visit a parse tree produced by theimportExprlabeled alternative inPklParser.expr().Visit a parse tree produced by theintLiterallabeled alternative inPklParser.expr().Visit a parse tree produced by theletExprlabeled alternative inPklParser.expr().Visit a parse tree produced by thelogicalAndExprlabeled alternative inPklParser.expr().Visit a parse tree produced by thelogicalNotExprlabeled alternative inPklParser.expr().Visit a parse tree produced by thelogicalOrExprlabeled alternative inPklParser.expr().Visit a parse tree produced by thememberPredicatelabeled alternative inPklParser.objectMember().Visit a parse tree produced byPklParser.methodHeader().Visit a parse tree produced byPklParser.modifier().Visit a parse tree produced byPklParser.module().Visit a parse tree produced byPklParser.moduleDecl().Visit a parse tree produced by themoduleExprlabeled alternative inPklParser.expr().Visit a parse tree produced byPklParser.moduleExtendsOrAmendsClause().Visit a parse tree produced byPklParser.moduleHeader().Visit a parse tree produced by themoduleTypelabeled alternative inPklParser.type().Visit a parse tree produced by themultiLineStringLiterallabeled alternative inPklParser.expr().Visit a parse tree produced byPklParser.multiLineStringPart().Visit a parse tree produced by themultiplicativeExprlabeled alternative inPklParser.expr().Visit a parse tree produced by thenewExprlabeled alternative inPklParser.expr().Visit a parse tree produced by thenonNullExprlabeled alternative inPklParser.expr().Visit a parse tree produced by thenothingTypelabeled alternative inPklParser.type().Visit a parse tree produced by thenullableTypelabeled alternative inPklParser.type().Visit a parse tree produced by thenullCoalesceExprlabeled alternative inPklParser.expr().Visit a parse tree produced by thenullLiterallabeled alternative inPklParser.expr().Visit a parse tree produced byPklParser.objectBody().Visit a parse tree produced by theobjectElementlabeled alternative inPklParser.objectMember().Visit a parse tree produced by theobjectEntrylabeled alternative inPklParser.objectMember().Visit a parse tree produced byPklParser.objectMember().Visit a parse tree produced by theobjectMethodlabeled alternative inPklParser.objectMember().Visit a parse tree produced by theobjectPropertylabeled alternative inPklParser.objectMember().Visit a parse tree produced by theobjectSpreadlabeled alternative inPklParser.objectMember().Visit a parse tree produced by theouterExprlabeled alternative inPklParser.expr().Visit a parse tree produced byPklParser.parameter().Visit a parse tree produced byPklParser.parameterList().Visit a parse tree produced by theparenthesizedExprlabeled alternative inPklParser.expr().Visit a parse tree produced by theparenthesizedTypelabeled alternative inPklParser.type().Visit a parse tree produced by thepipeExprlabeled alternative inPklParser.expr().Visit a parse tree produced by thequalifiedAccessExprlabeled alternative inPklParser.expr().Visit a parse tree produced byPklParser.qualifiedIdentifier().Visit a parse tree produced by thereadExprlabeled alternative inPklParser.expr().Visit a parse tree produced byPklParser.replInput().Visit a parse tree produced byPklParser.reservedKeyword().Visit a parse tree produced by thesingleLineStringLiterallabeled alternative inPklParser.expr().Visit a parse tree produced byPklParser.singleLineStringPart().Visit a parse tree produced byPklParser.stringConstant().Visit a parse tree produced by thestringLiteralTypelabeled alternative inPklParser.type().Visit a parse tree produced by thesubscriptExprlabeled alternative inPklParser.expr().Visit a parse tree produced by thesuperAccessExprlabeled alternative inPklParser.expr().Visit a parse tree produced by thesuperSubscriptExprlabeled alternative inPklParser.expr().Visit a parse tree produced by thethisExprlabeled alternative inPklParser.expr().Visit a parse tree produced by thethrowExprlabeled alternative inPklParser.expr().Visit a parse tree produced by thetraceExprlabeled alternative inPklParser.expr().Visit a parse tree produced by thetrueLiterallabeled alternative inPklParser.expr().Visit a parse tree produced byPklParser.type().Visit a parse tree produced byPklParser.typeAlias().Visit a parse tree produced byPklParser.typeAliasHeader().Visit a parse tree produced byPklParser.typeAnnotation().Visit a parse tree produced byPklParser.typeArgumentList().Visit a parse tree produced byPklParser.typedIdentifier().Visit a parse tree produced byPklParser.typeParameter().Visit a parse tree produced byPklParser.typeParameterList().Visit a parse tree produced by thetypeTestExprlabeled alternative inPklParser.expr().Visit a parse tree produced by theunaryMinusExprlabeled alternative inPklParser.expr().Visit a parse tree produced by theunionTypelabeled alternative inPklParser.type().Visit a parse tree produced by theunknownTypelabeled alternative inPklParser.type().Visit a parse tree produced by theunqualifiedAccessExprlabeled alternative inPklParser.expr().Visit a parse tree produced by thewhenGeneratorlabeled alternative inPklParser.objectMember().Methods inherited from interface org.antlr.v4.runtime.tree.ParseTreeVisitor
visit, visitChildren, visitErrorNode, visitTerminal
-
Method Details
-
visitUnknownType
Visit a parse tree produced by theunknownTypelabeled alternative inPklParser.type().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNothingType
Visit a parse tree produced by thenothingTypelabeled alternative inPklParser.type().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitModuleType
Visit a parse tree produced by themoduleTypelabeled alternative inPklParser.type().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStringLiteralType
Visit a parse tree produced by thestringLiteralTypelabeled alternative inPklParser.type().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDeclaredType
Visit a parse tree produced by thedeclaredTypelabeled alternative inPklParser.type().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParenthesizedType
Visit a parse tree produced by theparenthesizedTypelabeled alternative inPklParser.type().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNullableType
Visit a parse tree produced by thenullableTypelabeled alternative inPklParser.type().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConstrainedType
Visit a parse tree produced by theconstrainedTypelabeled alternative inPklParser.type().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDefaultUnionType
Visit a parse tree produced by thedefaultUnionTypelabeled alternative inPklParser.type().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUnionType
Visit a parse tree produced by theunionTypelabeled alternative inPklParser.type().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFunctionType
Visit a parse tree produced by thefunctionTypelabeled alternative inPklParser.type().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitThisExpr
Visit a parse tree produced by thethisExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOuterExpr
Visit a parse tree produced by theouterExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitModuleExpr
Visit a parse tree produced by themoduleExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNullLiteral
Visit a parse tree produced by thenullLiterallabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTrueLiteral
Visit a parse tree produced by thetrueLiterallabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFalseLiteral
Visit a parse tree produced by thefalseLiterallabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIntLiteral
Visit a parse tree produced by theintLiterallabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFloatLiteral
Visit a parse tree produced by thefloatLiterallabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitThrowExpr
Visit a parse tree produced by thethrowExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTraceExpr
Visit a parse tree produced by thetraceExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitImportExpr
Visit a parse tree produced by theimportExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitReadExpr
Visit a parse tree produced by thereadExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUnqualifiedAccessExpr
Visit a parse tree produced by theunqualifiedAccessExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSingleLineStringLiteral
Visit a parse tree produced by thesingleLineStringLiterallabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMultiLineStringLiteral
Visit a parse tree produced by themultiLineStringLiterallabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNewExpr
Visit a parse tree produced by thenewExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAmendExpr
Visit a parse tree produced by theamendExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSuperAccessExpr
Visit a parse tree produced by thesuperAccessExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSuperSubscriptExpr
Visit a parse tree produced by thesuperSubscriptExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQualifiedAccessExpr
Visit a parse tree produced by thequalifiedAccessExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSubscriptExpr
Visit a parse tree produced by thesubscriptExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNonNullExpr
Visit a parse tree produced by thenonNullExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUnaryMinusExpr
Visit a parse tree produced by theunaryMinusExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLogicalNotExpr
Visit a parse tree produced by thelogicalNotExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExponentiationExpr
Visit a parse tree produced by theexponentiationExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMultiplicativeExpr
Visit a parse tree produced by themultiplicativeExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAdditiveExpr
Visit a parse tree produced by theadditiveExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitComparisonExpr
Visit a parse tree produced by thecomparisonExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeTestExpr
Visit a parse tree produced by thetypeTestExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEqualityExpr
Visit a parse tree produced by theequalityExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLogicalAndExpr
Visit a parse tree produced by thelogicalAndExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLogicalOrExpr
Visit a parse tree produced by thelogicalOrExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPipeExpr
Visit a parse tree produced by thepipeExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNullCoalesceExpr
Visit a parse tree produced by thenullCoalesceExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIfExpr
Visit a parse tree produced by theifExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLetExpr
Visit a parse tree produced by theletExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFunctionLiteral
Visit a parse tree produced by thefunctionLiterallabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParenthesizedExpr
Visit a parse tree produced by theparenthesizedExprlabeled alternative inPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObjectProperty
Visit a parse tree produced by theobjectPropertylabeled alternative inPklParser.objectMember().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObjectMethod
Visit a parse tree produced by theobjectMethodlabeled alternative inPklParser.objectMember().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMemberPredicate
Visit a parse tree produced by thememberPredicatelabeled alternative inPklParser.objectMember().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObjectEntry
Visit a parse tree produced by theobjectEntrylabeled alternative inPklParser.objectMember().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObjectElement
Visit a parse tree produced by theobjectElementlabeled alternative inPklParser.objectMember().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObjectSpread
Visit a parse tree produced by theobjectSpreadlabeled alternative inPklParser.objectMember().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitWhenGenerator
Visit a parse tree produced by thewhenGeneratorlabeled alternative inPklParser.objectMember().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitForGenerator
Visit a parse tree produced by theforGeneratorlabeled alternative inPklParser.objectMember().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitReplInput
Visit a parse tree produced byPklParser.replInput().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprInput
Visit a parse tree produced byPklParser.exprInput().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitModule
Visit a parse tree produced byPklParser.module().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitModuleDecl
Visit a parse tree produced byPklParser.moduleDecl().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitModuleHeader
Visit a parse tree produced byPklParser.moduleHeader().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitModuleExtendsOrAmendsClause
Visit a parse tree produced byPklParser.moduleExtendsOrAmendsClause().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitImportClause
Visit a parse tree produced byPklParser.importClause().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClazz
Visit a parse tree produced byPklParser.clazz().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassHeader
Visit a parse tree produced byPklParser.classHeader().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitModifier
Visit a parse tree produced byPklParser.modifier().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassBody
Visit a parse tree produced byPklParser.classBody().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeAlias
Visit a parse tree produced byPklParser.typeAlias().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeAliasHeader
Visit a parse tree produced byPklParser.typeAliasHeader().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassProperty
Visit a parse tree produced byPklParser.classProperty().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassMethod
Visit a parse tree produced byPklParser.classMethod().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMethodHeader
Visit a parse tree produced byPklParser.methodHeader().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParameterList
Visit a parse tree produced byPklParser.parameterList().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArgumentList
Visit a parse tree produced byPklParser.argumentList().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotation
Visit a parse tree produced byPklParser.annotation().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQualifiedIdentifier
Visit a parse tree produced byPklParser.qualifiedIdentifier().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeAnnotation
Visit a parse tree produced byPklParser.typeAnnotation().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeParameterList
Visit a parse tree produced byPklParser.typeParameterList().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeParameter
Visit a parse tree produced byPklParser.typeParameter().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeArgumentList
Visit a parse tree produced byPklParser.typeArgumentList().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitType
Visit a parse tree produced byPklParser.type().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypedIdentifier
Visit a parse tree produced byPklParser.typedIdentifier().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParameter
Visit a parse tree produced byPklParser.parameter().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExpr
Visit a parse tree produced byPklParser.expr().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObjectBody
Visit a parse tree produced byPklParser.objectBody().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObjectMember
Visit a parse tree produced byPklParser.objectMember().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStringConstant
Visit a parse tree produced byPklParser.stringConstant().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSingleLineStringPart
Visit a parse tree produced byPklParser.singleLineStringPart().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMultiLineStringPart
Visit a parse tree produced byPklParser.multiLineStringPart().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitReservedKeyword
Visit a parse tree produced byPklParser.reservedKeyword().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-