Class AstBuilder
- java.lang.Object
-
- org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<Result>
-
- org.pkl.core.parser.antlr.PklParserBaseVisitor<T>
-
- org.pkl.core.ast.builder.AbstractAstBuilder<java.lang.Object>
-
- org.pkl.core.ast.builder.AstBuilder
-
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<java.lang.Object>,PklParserVisitor<java.lang.Object>
public final class AstBuilder extends AbstractAstBuilder<java.lang.Object>
-
-
Field Summary
-
Fields inherited from class org.pkl.core.ast.builder.AbstractAstBuilder
source
-
-
Constructor Summary
Constructors Constructor Description AstBuilder(com.oracle.truffle.api.source.Source source, VmLanguage language, ModuleInfo moduleInfo, ModuleResolver moduleResolver)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AstBuildercreate(com.oracle.truffle.api.source.Source source, VmLanguage language, PklParser.ModuleContext ctx, ModuleKey moduleKey, ResolvedModuleKey resolvedModuleKey, ModuleResolver moduleResolver)protected VmExceptionBuilderexceptionBuilder()ExpressionNodevisitAdditiveExpr(PklParser.AdditiveExprContext ctx)Visit a parse tree produced by theadditiveExprlabeled alternative inPklParser.expr().java.lang.ObjectvisitAmendExpr(PklParser.AmendExprContext ctx)Visit a parse tree produced by theamendExprlabeled alternative inPklParser.expr().ExpressionNodevisitAnnotation(PklParser.AnnotationContext ctx)Visit a parse tree produced byPklParser.annotation().ExpressionNode[]visitArgumentList(PklParser.ArgumentListContext ctx)Visit a parse tree produced byPklParser.argumentList().UnresolvedMethodNodevisitClassMethod(PklParser.ClassMethodContext ctx)Visit a parse tree produced byPklParser.classMethod().UnresolvedPropertyNodevisitClassProperty(PklParser.ClassPropertyContext ctx)Visit a parse tree produced byPklParser.classProperty().ObjectMembervisitClazz(PklParser.ClazzContext ctx)Visit a parse tree produced byPklParser.clazz().java.lang.ObjectvisitComparisonExpr(PklParser.ComparisonExprContext ctx)Visit a parse tree produced by thecomparisonExprlabeled alternative inPklParser.expr().UnresolvedTypeNodevisitConstrainedType(PklParser.ConstrainedTypeContext ctx)Visit a parse tree produced by theconstrainedTypelabeled alternative inPklParser.type().UnresolvedTypeNodevisitDeclaredType(PklParser.DeclaredTypeContext ctx)Visit a parse tree produced by thedeclaredTypelabeled alternative inPklParser.type().java.lang.ObjectvisitDefaultUnionType(PklParser.DefaultUnionTypeContext ctx)Visit a parse tree produced by thedefaultUnionTypelabeled alternative inPklParser.type().java.lang.ObjectvisitEqualityExpr(PklParser.EqualityExprContext ctx)Visit a parse tree produced by theequalityExprlabeled alternative inPklParser.expr().java.lang.ObjectvisitExponentiationExpr(PklParser.ExponentiationExprContext ctx)Visit a parse tree produced by theexponentiationExprlabeled alternative inPklParser.expr().ExpressionNodevisitExpr(PklParser.ExprContext ctx)Visit a parse tree produced byPklParser.expr().java.lang.ObjectvisitFalseLiteral(PklParser.FalseLiteralContext ctx)Visit a parse tree produced by thefalseLiterallabeled alternative inPklParser.expr().FloatLiteralNodevisitFloatLiteral(PklParser.FloatLiteralContext ctx)Visit a parse tree produced by thefloatLiterallabeled alternative inPklParser.expr().GeneratorForNodevisitForGenerator(PklParser.ForGeneratorContext ctx)Visit a parse tree produced by theforGeneratorlabeled alternative inPklParser.objectMember().ExpressionNodevisitFunctionLiteral(PklParser.FunctionLiteralContext ctx)Visit a parse tree produced by thefunctionLiterallabeled alternative inPklParser.expr().UnresolvedTypeNodevisitFunctionType(PklParser.FunctionTypeContext ctx)Visit a parse tree produced by thefunctionTypelabeled alternative inPklParser.type().java.lang.ObjectvisitIfExpr(PklParser.IfExprContext ctx)Visit a parse tree produced by theifExprlabeled alternative inPklParser.expr().ObjectMembervisitImportClause(PklParser.ImportClauseContext ctx)Visit a parse tree produced byPklParser.importClause().java.lang.ObjectvisitImportExpr(PklParser.ImportExprContext ctx)Visit a parse tree produced by theimportExprlabeled alternative inPklParser.expr().IntLiteralNodevisitIntLiteral(PklParser.IntLiteralContext ctx)Visit a parse tree produced by theintLiterallabeled alternative inPklParser.expr().java.lang.ObjectvisitLetExpr(PklParser.LetExprContext ctx)Visit a parse tree produced by theletExprlabeled alternative inPklParser.expr().ExpressionNodevisitLogicalAndExpr(PklParser.LogicalAndExprContext ctx)Visit a parse tree produced by thelogicalAndExprlabeled alternative inPklParser.expr().ExpressionNodevisitLogicalNotExpr(PklParser.LogicalNotExprContext ctx)Visit a parse tree produced by thelogicalNotExprlabeled alternative inPklParser.expr().ExpressionNodevisitLogicalOrExpr(PklParser.LogicalOrExprContext ctx)Visit a parse tree produced by thelogicalOrExprlabeled alternative inPklParser.expr().GeneratorMemberNodevisitMemberPredicate(PklParser.MemberPredicateContext ctx)Visit a parse tree produced by thememberPredicatelabeled alternative inPklParser.objectMember().java.lang.IntegervisitModifier(PklParser.ModifierContext ctx)Visit a parse tree produced byPklParser.modifier().PklRootNodevisitModule(PklParser.ModuleContext ctx)Visit a parse tree produced byPklParser.module().java.lang.ObjectvisitModuleExpr(PklParser.ModuleExprContext ctx)Visit a parse tree produced by themoduleExprlabeled alternative inPklParser.expr().java.lang.ObjectvisitModuleType(PklParser.ModuleTypeContext ctx)Visit a parse tree produced by themoduleTypelabeled alternative inPklParser.type().java.lang.ObjectvisitMultiLineStringLiteral(PklParser.MultiLineStringLiteralContext ctx)Visit a parse tree produced by themultiLineStringLiterallabeled alternative inPklParser.expr().ExpressionNodevisitMultiLineStringPart(PklParser.MultiLineStringPartContext ctx)Visit a parse tree produced byPklParser.multiLineStringPart().ExpressionNodevisitMultiplicativeExpr(PklParser.MultiplicativeExprContext ctx)Visit a parse tree produced by themultiplicativeExprlabeled alternative inPklParser.expr().java.lang.ObjectvisitNewExpr(PklParser.NewExprContext ctx)Visit a parse tree produced by thenewExprlabeled alternative inPklParser.expr().java.lang.ObjectvisitNonNullExpr(PklParser.NonNullExprContext ctx)Visit a parse tree produced by thenonNullExprlabeled alternative inPklParser.expr().java.lang.ObjectvisitNothingType(PklParser.NothingTypeContext ctx)Visit a parse tree produced by thenothingTypelabeled alternative inPklParser.type().UnresolvedTypeNodevisitNullableType(PklParser.NullableTypeContext ctx)Visit a parse tree produced by thenullableTypelabeled alternative inPklParser.type().ExpressionNodevisitNullCoalesceExpr(PklParser.NullCoalesceExprContext ctx)Visit a parse tree produced by thenullCoalesceExprlabeled alternative inPklParser.expr().ConstantValueNodevisitNullLiteral(PklParser.NullLiteralContext ctx)Visit a parse tree produced by thenullLiterallabeled alternative inPklParser.expr().GeneratorElementNodevisitObjectElement(PklParser.ObjectElementContext ctx)Visit a parse tree produced by theobjectElementlabeled alternative inPklParser.objectMember().GeneratorMemberNodevisitObjectEntry(PklParser.ObjectEntryContext ctx)Visit a parse tree produced by theobjectEntrylabeled alternative inPklParser.objectMember().GeneratorMemberNodevisitObjectMethod(PklParser.ObjectMethodContext ctx)Visit a parse tree produced by theobjectMethodlabeled alternative inPklParser.objectMember().GeneratorPropertyNodevisitObjectProperty(PklParser.ObjectPropertyContext ctx)Visit a parse tree produced by theobjectPropertylabeled alternative inPklParser.objectMember().GeneratorMemberNodevisitObjectSpread(PklParser.ObjectSpreadContext ctx)Visit a parse tree produced by theobjectSpreadlabeled alternative inPklParser.objectMember().OuterNodevisitOuterExpr(PklParser.OuterExprContext ctx)Visit a parse tree produced by theouterExprlabeled alternative inPklParser.expr().ExpressionNodevisitParenthesizedExpr(PklParser.ParenthesizedExprContext ctx)Visit a parse tree produced by theparenthesizedExprlabeled alternative inPklParser.expr().UnresolvedTypeNodevisitParenthesizedType(PklParser.ParenthesizedTypeContext ctx)Visit a parse tree produced by theparenthesizedTypelabeled alternative inPklParser.type().java.lang.ObjectvisitPipeExpr(PklParser.PipeExprContext ctx)Visit a parse tree produced by thepipeExprlabeled alternative inPklParser.expr().ExpressionNodevisitQualifiedAccessExpr(PklParser.QualifiedAccessExprContext ctx)Visit a parse tree produced by thequalifiedAccessExprlabeled alternative inPklParser.expr().ExpressionNodevisitQualifiedIdentifier(PklParser.QualifiedIdentifierContext ctx)Visit a parse tree produced byPklParser.qualifiedIdentifier().java.lang.ObjectvisitReadExpr(PklParser.ReadExprContext ctx)Visit a parse tree produced by thereadExprlabeled alternative inPklParser.expr().java.lang.ObjectvisitSingleLineStringLiteral(PklParser.SingleLineStringLiteralContext ctx)Visit a parse tree produced by thesingleLineStringLiterallabeled alternative inPklParser.expr().ExpressionNodevisitSingleLineStringPart(PklParser.SingleLineStringPartContext ctx)Visit a parse tree produced byPklParser.singleLineStringPart().java.lang.StringvisitStringConstant(PklParser.StringConstantContext ctx)Visit a parse tree produced byPklParser.stringConstant().java.lang.ObjectvisitStringLiteralType(PklParser.StringLiteralTypeContext ctx)Visit a parse tree produced by thestringLiteralTypelabeled alternative inPklParser.type().java.lang.ObjectvisitSubscriptExpr(PklParser.SubscriptExprContext ctx)Visit a parse tree produced by thesubscriptExprlabeled alternative inPklParser.expr().ExpressionNodevisitSuperAccessExpr(PklParser.SuperAccessExprContext ctx)Visit a parse tree produced by thesuperAccessExprlabeled alternative inPklParser.expr().ExpressionNodevisitSuperSubscriptExpr(PklParser.SuperSubscriptExprContext ctx)Visit a parse tree produced by thesuperSubscriptExprlabeled alternative inPklParser.expr().ExpressionNodevisitThisExpr(PklParser.ThisExprContext ctx)Visit a parse tree produced by thethisExprlabeled alternative inPklParser.expr().java.lang.ObjectvisitThrowExpr(PklParser.ThrowExprContext ctx)Visit a parse tree produced by thethrowExprlabeled alternative inPklParser.expr().java.lang.ObjectvisitTraceExpr(PklParser.TraceExprContext ctx)Visit a parse tree produced by thetraceExprlabeled alternative inPklParser.expr().ExpressionNodevisitTrueLiteral(PklParser.TrueLiteralContext ctx)Visit a parse tree produced by thetrueLiterallabeled alternative inPklParser.expr().UnresolvedTypeNodevisitType(PklParser.TypeContext ctx)Visit a parse tree produced byPklParser.type().ObjectMembervisitTypeAlias(PklParser.TypeAliasContext ctx)Visit a parse tree produced byPklParser.typeAlias().@Nullable UnresolvedTypeNodevisitTypeAnnotation(@Nullable PklParser.TypeAnnotationContext ctx)Visit a parse tree produced byPklParser.typeAnnotation().UnresolvedTypeNode[]visitTypeArgumentList(@Nullable PklParser.TypeArgumentListContext ctx)Visit a parse tree produced byPklParser.typeArgumentList().java.lang.ObjectvisitTypedIdentifier(PklParser.TypedIdentifierContext ctx)Visit a parse tree produced byPklParser.typedIdentifier().java.util.List<TypeParameter>visitTypeParameterList(@Nullable PklParser.TypeParameterListContext ctx)Visit a parse tree produced byPklParser.typeParameterList().java.lang.ObjectvisitTypeTestExpr(PklParser.TypeTestExprContext ctx)Visit a parse tree produced by thetypeTestExprlabeled alternative inPklParser.expr().ExpressionNodevisitUnaryMinusExpr(PklParser.UnaryMinusExprContext ctx)Visit a parse tree produced by theunaryMinusExprlabeled alternative inPklParser.expr().UnresolvedTypeNodevisitUnionType(PklParser.UnionTypeContext ctx)Visit a parse tree produced by theunionTypelabeled alternative inPklParser.type().java.lang.ObjectvisitUnknownType(PklParser.UnknownTypeContext ctx)Visit a parse tree produced by theunknownTypelabeled alternative inPklParser.type().ExpressionNodevisitUnqualifiedAccessExpr(PklParser.UnqualifiedAccessExprContext ctx)Visit a parse tree produced by theunqualifiedAccessExprlabeled alternative inPklParser.expr().GeneratorWhenNodevisitWhenGenerator(PklParser.WhenGeneratorContext ctx)Visit a parse tree produced by thewhenGeneratorlabeled alternative inPklParser.objectMember().-
Methods inherited from class org.pkl.core.ast.builder.AbstractAstBuilder
createSourceSection, createSourceSection, createSourceSection, createSourceSection, createSourceSection, createSourceSection, createSourceSection, doVisitSingleLineConstantStringPart, parseCharacterEscapeSequence, parseUnicodeEscapeSequence
-
Methods inherited from class org.pkl.core.parser.antlr.PklParserBaseVisitor
visitClassBody, visitClassHeader, visitExprInput, visitMethodHeader, visitModuleDecl, visitModuleExtendsOrAmendsClause, visitModuleHeader, visitObjectBody, visitObjectMember, visitParameter, visitParameterList, visitReplInput, visitReservedKeyword, visitTypeAliasHeader, visitTypeParameter
-
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
-
-
-
-
Constructor Detail
-
AstBuilder
public AstBuilder(com.oracle.truffle.api.source.Source source, VmLanguage language, ModuleInfo moduleInfo, ModuleResolver moduleResolver)
-
-
Method Detail
-
create
public static AstBuilder create(com.oracle.truffle.api.source.Source source, VmLanguage language, PklParser.ModuleContext ctx, ModuleKey moduleKey, ResolvedModuleKey resolvedModuleKey, ModuleResolver moduleResolver)
-
visitModule
public PklRootNode visitModule(PklParser.ModuleContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced byPklParser.module().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitModulein interfacePklParserVisitor<java.lang.Object>- Overrides:
visitModulein classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClazz
public ObjectMember visitClazz(PklParser.ClazzContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced byPklParser.clazz().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClazzin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitClazzin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeAlias
public ObjectMember visitTypeAlias(PklParser.TypeAliasContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced byPklParser.typeAlias().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeAliasin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitTypeAliasin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeArgumentList
public UnresolvedTypeNode[] visitTypeArgumentList(@Nullable PklParser.TypeArgumentListContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced byPklParser.typeArgumentList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeArgumentListin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitTypeArgumentListin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeParameterList
public java.util.List<TypeParameter> visitTypeParameterList(@Nullable PklParser.TypeParameterListContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced byPklParser.typeParameterList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeParameterListin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitTypeParameterListin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeAnnotation
public @Nullable UnresolvedTypeNode visitTypeAnnotation(@Nullable PklParser.TypeAnnotationContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced byPklParser.typeAnnotation().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeAnnotationin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitTypeAnnotationin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNewExpr
public java.lang.Object visitNewExpr(PklParser.NewExprContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by thenewExprlabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNewExprin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitNewExprin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAmendExpr
public java.lang.Object visitAmendExpr(PklParser.AmendExprContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by theamendExprlabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAmendExprin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitAmendExprin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassProperty
public UnresolvedPropertyNode visitClassProperty(PklParser.ClassPropertyContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced byPklParser.classProperty().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassPropertyin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitClassPropertyin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObjectProperty
public GeneratorPropertyNode visitObjectProperty(PklParser.ObjectPropertyContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by theobjectPropertylabeled alternative inPklParser.objectMember().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitObjectPropertyin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitObjectPropertyin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObjectMethod
public GeneratorMemberNode visitObjectMethod(PklParser.ObjectMethodContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by theobjectMethodlabeled alternative inPklParser.objectMember().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitObjectMethodin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitObjectMethodin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMemberPredicate
public GeneratorMemberNode visitMemberPredicate(PklParser.MemberPredicateContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by thememberPredicatelabeled alternative inPklParser.objectMember().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMemberPredicatein interfacePklParserVisitor<java.lang.Object>- Overrides:
visitMemberPredicatein classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObjectEntry
public GeneratorMemberNode visitObjectEntry(PklParser.ObjectEntryContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by theobjectEntrylabeled alternative inPklParser.objectMember().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitObjectEntryin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitObjectEntryin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObjectSpread
public GeneratorMemberNode visitObjectSpread(PklParser.ObjectSpreadContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by theobjectSpreadlabeled alternative inPklParser.objectMember().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitObjectSpreadin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitObjectSpreadin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObjectElement
public GeneratorElementNode visitObjectElement(PklParser.ObjectElementContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by theobjectElementlabeled alternative inPklParser.objectMember().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitObjectElementin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitObjectElementin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitWhenGenerator
public GeneratorWhenNode visitWhenGenerator(PklParser.WhenGeneratorContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by thewhenGeneratorlabeled alternative inPklParser.objectMember().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitWhenGeneratorin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitWhenGeneratorin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitForGenerator
public GeneratorForNode visitForGenerator(PklParser.ForGeneratorContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by theforGeneratorlabeled alternative inPklParser.objectMember().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitForGeneratorin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitForGeneratorin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotation
public ExpressionNode visitAnnotation(PklParser.AnnotationContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced byPklParser.annotation().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAnnotationin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitAnnotationin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitModifier
public java.lang.Integer visitModifier(PklParser.ModifierContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced byPklParser.modifier().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitModifierin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitModifierin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassMethod
public UnresolvedMethodNode visitClassMethod(PklParser.ClassMethodContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced byPklParser.classMethod().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitClassMethodin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitClassMethodin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFunctionLiteral
public ExpressionNode visitFunctionLiteral(PklParser.FunctionLiteralContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by thefunctionLiterallabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFunctionLiteralin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitFunctionLiteralin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNullLiteral
public ConstantValueNode visitNullLiteral(PklParser.NullLiteralContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by thenullLiterallabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNullLiteralin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitNullLiteralin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTrueLiteral
public ExpressionNode visitTrueLiteral(PklParser.TrueLiteralContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by thetrueLiterallabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTrueLiteralin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitTrueLiteralin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFalseLiteral
public java.lang.Object visitFalseLiteral(PklParser.FalseLiteralContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by thefalseLiterallabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFalseLiteralin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitFalseLiteralin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIntLiteral
public IntLiteralNode visitIntLiteral(PklParser.IntLiteralContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by theintLiterallabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIntLiteralin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitIntLiteralin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFloatLiteral
public FloatLiteralNode visitFloatLiteral(PklParser.FloatLiteralContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by thefloatLiterallabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFloatLiteralin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitFloatLiteralin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSingleLineStringLiteral
public java.lang.Object visitSingleLineStringLiteral(PklParser.SingleLineStringLiteralContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by thesingleLineStringLiterallabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSingleLineStringLiteralin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitSingleLineStringLiteralin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMultiLineStringLiteral
public java.lang.Object visitMultiLineStringLiteral(PklParser.MultiLineStringLiteralContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by themultiLineStringLiterallabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMultiLineStringLiteralin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitMultiLineStringLiteralin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStringConstant
public java.lang.String visitStringConstant(PklParser.StringConstantContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced byPklParser.stringConstant().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStringConstantin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitStringConstantin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSingleLineStringPart
public ExpressionNode visitSingleLineStringPart(PklParser.SingleLineStringPartContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced byPklParser.singleLineStringPart().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSingleLineStringPartin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitSingleLineStringPartin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMultiLineStringPart
public ExpressionNode visitMultiLineStringPart(PklParser.MultiLineStringPartContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced byPklParser.multiLineStringPart().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMultiLineStringPartin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitMultiLineStringPartin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExpr
public ExpressionNode visitExpr(PklParser.ExprContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced byPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExprin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitExprin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitComparisonExpr
public java.lang.Object visitComparisonExpr(PklParser.ComparisonExprContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by thecomparisonExprlabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitComparisonExprin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitComparisonExprin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEqualityExpr
public java.lang.Object visitEqualityExpr(PklParser.EqualityExprContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by theequalityExprlabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEqualityExprin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitEqualityExprin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitImportClause
public ObjectMember visitImportClause(PklParser.ImportClauseContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced byPklParser.importClause().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitImportClausein interfacePklParserVisitor<java.lang.Object>- Overrides:
visitImportClausein classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQualifiedIdentifier
public ExpressionNode visitQualifiedIdentifier(PklParser.QualifiedIdentifierContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced byPklParser.qualifiedIdentifier().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitQualifiedIdentifierin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitQualifiedIdentifierin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNonNullExpr
public java.lang.Object visitNonNullExpr(PklParser.NonNullExprContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by thenonNullExprlabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNonNullExprin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitNonNullExprin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUnaryMinusExpr
public ExpressionNode visitUnaryMinusExpr(PklParser.UnaryMinusExprContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by theunaryMinusExprlabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitUnaryMinusExprin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitUnaryMinusExprin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAdditiveExpr
public ExpressionNode visitAdditiveExpr(PklParser.AdditiveExprContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by theadditiveExprlabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAdditiveExprin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitAdditiveExprin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMultiplicativeExpr
public ExpressionNode visitMultiplicativeExpr(PklParser.MultiplicativeExprContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by themultiplicativeExprlabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMultiplicativeExprin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitMultiplicativeExprin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExponentiationExpr
public java.lang.Object visitExponentiationExpr(PklParser.ExponentiationExprContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by theexponentiationExprlabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExponentiationExprin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitExponentiationExprin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLogicalAndExpr
public ExpressionNode visitLogicalAndExpr(PklParser.LogicalAndExprContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by thelogicalAndExprlabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLogicalAndExprin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitLogicalAndExprin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLogicalOrExpr
public ExpressionNode visitLogicalOrExpr(PklParser.LogicalOrExprContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by thelogicalOrExprlabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLogicalOrExprin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitLogicalOrExprin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLogicalNotExpr
public ExpressionNode visitLogicalNotExpr(PklParser.LogicalNotExprContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by thelogicalNotExprlabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLogicalNotExprin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitLogicalNotExprin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQualifiedAccessExpr
public ExpressionNode visitQualifiedAccessExpr(PklParser.QualifiedAccessExprContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by thequalifiedAccessExprlabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitQualifiedAccessExprin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitQualifiedAccessExprin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSuperAccessExpr
public ExpressionNode visitSuperAccessExpr(PklParser.SuperAccessExprContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by thesuperAccessExprlabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSuperAccessExprin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitSuperAccessExprin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSuperSubscriptExpr
public ExpressionNode visitSuperSubscriptExpr(PklParser.SuperSubscriptExprContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by thesuperSubscriptExprlabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSuperSubscriptExprin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitSuperSubscriptExprin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPipeExpr
public java.lang.Object visitPipeExpr(PklParser.PipeExprContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by thepipeExprlabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPipeExprin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitPipeExprin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNullCoalesceExpr
public ExpressionNode visitNullCoalesceExpr(PklParser.NullCoalesceExprContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by thenullCoalesceExprlabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNullCoalesceExprin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitNullCoalesceExprin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUnqualifiedAccessExpr
public ExpressionNode visitUnqualifiedAccessExpr(PklParser.UnqualifiedAccessExprContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by theunqualifiedAccessExprlabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitUnqualifiedAccessExprin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitUnqualifiedAccessExprin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArgumentList
public ExpressionNode[] visitArgumentList(PklParser.ArgumentListContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced byPklParser.argumentList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArgumentListin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitArgumentListin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypedIdentifier
public java.lang.Object visitTypedIdentifier(PklParser.TypedIdentifierContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced byPklParser.typedIdentifier().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypedIdentifierin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitTypedIdentifierin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitThrowExpr
public java.lang.Object visitThrowExpr(PklParser.ThrowExprContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by thethrowExprlabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitThrowExprin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitThrowExprin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTraceExpr
public java.lang.Object visitTraceExpr(PklParser.TraceExprContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by thetraceExprlabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTraceExprin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitTraceExprin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitImportExpr
public java.lang.Object visitImportExpr(PklParser.ImportExprContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by theimportExprlabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitImportExprin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitImportExprin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIfExpr
public java.lang.Object visitIfExpr(PklParser.IfExprContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by theifExprlabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIfExprin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitIfExprin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitReadExpr
public java.lang.Object visitReadExpr(PklParser.ReadExprContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by thereadExprlabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitReadExprin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitReadExprin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLetExpr
public java.lang.Object visitLetExpr(PklParser.LetExprContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by theletExprlabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLetExprin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitLetExprin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitThisExpr
public ExpressionNode visitThisExpr(PklParser.ThisExprContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by thethisExprlabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitThisExprin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitThisExprin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOuterExpr
public OuterNode visitOuterExpr(PklParser.OuterExprContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by theouterExprlabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitOuterExprin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitOuterExprin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitModuleExpr
public java.lang.Object visitModuleExpr(PklParser.ModuleExprContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by themoduleExprlabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitModuleExprin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitModuleExprin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParenthesizedExpr
public ExpressionNode visitParenthesizedExpr(PklParser.ParenthesizedExprContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by theparenthesizedExprlabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitParenthesizedExprin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitParenthesizedExprin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSubscriptExpr
public java.lang.Object visitSubscriptExpr(PklParser.SubscriptExprContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by thesubscriptExprlabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSubscriptExprin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitSubscriptExprin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeTestExpr
public java.lang.Object visitTypeTestExpr(PklParser.TypeTestExprContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by thetypeTestExprlabeled alternative inPklParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypeTestExprin interfacePklParserVisitor<java.lang.Object>- Overrides:
visitTypeTestExprin classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUnknownType
public java.lang.Object visitUnknownType(PklParser.UnknownTypeContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by theunknownTypelabeled alternative inPklParser.type().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitUnknownTypein interfacePklParserVisitor<java.lang.Object>- Overrides:
visitUnknownTypein classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNothingType
public java.lang.Object visitNothingType(PklParser.NothingTypeContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by thenothingTypelabeled alternative inPklParser.type().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNothingTypein interfacePklParserVisitor<java.lang.Object>- Overrides:
visitNothingTypein classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitModuleType
public java.lang.Object visitModuleType(PklParser.ModuleTypeContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by themoduleTypelabeled alternative inPklParser.type().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitModuleTypein interfacePklParserVisitor<java.lang.Object>- Overrides:
visitModuleTypein classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStringLiteralType
public java.lang.Object visitStringLiteralType(PklParser.StringLiteralTypeContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by thestringLiteralTypelabeled alternative inPklParser.type().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStringLiteralTypein interfacePklParserVisitor<java.lang.Object>- Overrides:
visitStringLiteralTypein classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitType
public UnresolvedTypeNode visitType(PklParser.TypeContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced byPklParser.type().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitTypein interfacePklParserVisitor<java.lang.Object>- Overrides:
visitTypein classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDeclaredType
public UnresolvedTypeNode visitDeclaredType(PklParser.DeclaredTypeContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by thedeclaredTypelabeled alternative inPklParser.type().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDeclaredTypein interfacePklParserVisitor<java.lang.Object>- Overrides:
visitDeclaredTypein classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParenthesizedType
public UnresolvedTypeNode visitParenthesizedType(PklParser.ParenthesizedTypeContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by theparenthesizedTypelabeled alternative inPklParser.type().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitParenthesizedTypein interfacePklParserVisitor<java.lang.Object>- Overrides:
visitParenthesizedTypein classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDefaultUnionType
public java.lang.Object visitDefaultUnionType(PklParser.DefaultUnionTypeContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by thedefaultUnionTypelabeled alternative inPklParser.type().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDefaultUnionTypein interfacePklParserVisitor<java.lang.Object>- Overrides:
visitDefaultUnionTypein classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUnionType
public UnresolvedTypeNode visitUnionType(PklParser.UnionTypeContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by theunionTypelabeled alternative inPklParser.type().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitUnionTypein interfacePklParserVisitor<java.lang.Object>- Overrides:
visitUnionTypein classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNullableType
public UnresolvedTypeNode visitNullableType(PklParser.NullableTypeContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by thenullableTypelabeled alternative inPklParser.type().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNullableTypein interfacePklParserVisitor<java.lang.Object>- Overrides:
visitNullableTypein classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConstrainedType
public UnresolvedTypeNode visitConstrainedType(PklParser.ConstrainedTypeContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by theconstrainedTypelabeled alternative inPklParser.type().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitConstrainedTypein interfacePklParserVisitor<java.lang.Object>- Overrides:
visitConstrainedTypein classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFunctionType
public UnresolvedTypeNode visitFunctionType(PklParser.FunctionTypeContext ctx)
Description copied from class:PklParserBaseVisitorVisit a parse tree produced by thefunctionTypelabeled alternative inPklParser.type().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFunctionTypein interfacePklParserVisitor<java.lang.Object>- Overrides:
visitFunctionTypein classPklParserBaseVisitor<java.lang.Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
exceptionBuilder
protected VmExceptionBuilder exceptionBuilder()
- Specified by:
exceptionBuilderin classAbstractAstBuilder<java.lang.Object>
-
-