Class AstBuilder
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<Object>,PklParserVisitor<Object>
-
Field Summary
Fields inherited from class org.pkl.core.ast.builder.AbstractAstBuilder
source -
Constructor Summary
ConstructorsConstructorDescriptionAstBuilder(com.oracle.truffle.api.source.Source source, VmLanguage language, ModuleInfo moduleInfo, ModuleResolver moduleResolver) -
Method Summary
Modifier and TypeMethodDescriptionstatic AstBuildercreate(com.oracle.truffle.api.source.Source source, VmLanguage language, PklParser.ModuleContext ctx, ModuleKey moduleKey, ResolvedModuleKey resolvedModuleKey, ModuleResolver moduleResolver) protected VmExceptionBuilderVisit 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.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 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.modifier().Visit a parse tree produced byPklParser.module().Visit a parse tree produced by themoduleExprlabeled alternative inPklParser.expr().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 by theobjectElementlabeled alternative inPklParser.objectMember().Visit a parse tree produced by theobjectEntrylabeled alternative inPklParser.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 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 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.typeAnnotation().Visit a parse tree produced byPklParser.typeArgumentList().Visit a parse tree produced byPklParser.typedIdentifier().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 class org.pkl.core.ast.builder.AbstractAstBuilder
createSourceSection, createSourceSection, createSourceSection, createSourceSection, createSourceSection, createSourceSection, createSourceSection, doVisitSingleLineConstantStringPart, parseCharacterEscapeSequence, parseUnicodeEscapeSequenceMethods inherited from class org.pkl.core.parser.antlr.PklParserBaseVisitor
visitClassBody, visitClassHeader, visitExprInput, visitMethodHeader, visitModuleDecl, visitModuleExtendsOrAmendsClause, visitModuleHeader, visitObjectBody, visitObjectMember, visitParameter, visitParameterList, visitReplInput, visitReservedKeyword, visitTypeAliasHeader, visitTypeParameterMethods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.antlr.v4.runtime.tree.ParseTreeVisitor
visit, visitChildren, visitErrorNode, visitTerminal
-
Constructor Details
-
AstBuilder
public AstBuilder(com.oracle.truffle.api.source.Source source, VmLanguage language, ModuleInfo moduleInfo, ModuleResolver moduleResolver)
-
-
Method Details
-
create
public static AstBuilder create(com.oracle.truffle.api.source.Source source, VmLanguage language, PklParser.ModuleContext ctx, ModuleKey moduleKey, ResolvedModuleKey resolvedModuleKey, ModuleResolver moduleResolver) -
visitModule
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<Object>- Overrides:
visitModulein classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClazz
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<Object>- Overrides:
visitClazzin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeAlias
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<Object>- Overrides:
visitTypeAliasin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeArgumentList
public UnresolvedTypeNode[] visitTypeArgumentList(@Nullable @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<Object>- Overrides:
visitTypeArgumentListin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeParameterList
public List<TypeParameter> visitTypeParameterList(@Nullable @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<Object>- Overrides:
visitTypeParameterListin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeAnnotation
@Nullable public @Nullable UnresolvedTypeNode visitTypeAnnotation(@Nullable @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<Object>- Overrides:
visitTypeAnnotationin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNewExpr
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<Object>- Overrides:
visitNewExprin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAmendExpr
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<Object>- Overrides:
visitAmendExprin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassProperty
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<Object>- Overrides:
visitClassPropertyin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObjectProperty
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<Object>- Overrides:
visitObjectPropertyin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObjectMethod
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<Object>- Overrides:
visitObjectMethodin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMemberPredicate
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<Object>- Overrides:
visitMemberPredicatein classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObjectEntry
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<Object>- Overrides:
visitObjectEntryin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObjectSpread
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<Object>- Overrides:
visitObjectSpreadin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitObjectElement
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<Object>- Overrides:
visitObjectElementin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitWhenGenerator
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<Object>- Overrides:
visitWhenGeneratorin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitForGenerator
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<Object>- Overrides:
visitForGeneratorin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAnnotation
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<Object>- Overrides:
visitAnnotationin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitModifier
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<Object>- Overrides:
visitModifierin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitClassMethod
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<Object>- Overrides:
visitClassMethodin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFunctionLiteral
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<Object>- Overrides:
visitFunctionLiteralin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNullLiteral
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<Object>- Overrides:
visitNullLiteralin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTrueLiteral
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<Object>- Overrides:
visitTrueLiteralin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFalseLiteral
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<Object>- Overrides:
visitFalseLiteralin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIntLiteral
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<Object>- Overrides:
visitIntLiteralin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFloatLiteral
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<Object>- Overrides:
visitFloatLiteralin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSingleLineStringLiteral
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<Object>- Overrides:
visitSingleLineStringLiteralin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMultiLineStringLiteral
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<Object>- Overrides:
visitMultiLineStringLiteralin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStringConstant
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<Object>- Overrides:
visitStringConstantin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSingleLineStringPart
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<Object>- Overrides:
visitSingleLineStringPartin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMultiLineStringPart
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<Object>- Overrides:
visitMultiLineStringPartin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExpr
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<Object>- Overrides:
visitExprin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitComparisonExpr
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<Object>- Overrides:
visitComparisonExprin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEqualityExpr
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<Object>- Overrides:
visitEqualityExprin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitImportClause
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<Object>- Overrides:
visitImportClausein classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQualifiedIdentifier
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<Object>- Overrides:
visitQualifiedIdentifierin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNonNullExpr
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<Object>- Overrides:
visitNonNullExprin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUnaryMinusExpr
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<Object>- Overrides:
visitUnaryMinusExprin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAdditiveExpr
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<Object>- Overrides:
visitAdditiveExprin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMultiplicativeExpr
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<Object>- Overrides:
visitMultiplicativeExprin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExponentiationExpr
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<Object>- Overrides:
visitExponentiationExprin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLogicalAndExpr
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<Object>- Overrides:
visitLogicalAndExprin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLogicalOrExpr
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<Object>- Overrides:
visitLogicalOrExprin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLogicalNotExpr
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<Object>- Overrides:
visitLogicalNotExprin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitQualifiedAccessExpr
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<Object>- Overrides:
visitQualifiedAccessExprin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSuperAccessExpr
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<Object>- Overrides:
visitSuperAccessExprin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSuperSubscriptExpr
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<Object>- Overrides:
visitSuperSubscriptExprin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPipeExpr
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<Object>- Overrides:
visitPipeExprin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNullCoalesceExpr
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<Object>- Overrides:
visitNullCoalesceExprin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUnqualifiedAccessExpr
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<Object>- Overrides:
visitUnqualifiedAccessExprin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArgumentList
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<Object>- Overrides:
visitArgumentListin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypedIdentifier
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<Object>- Overrides:
visitTypedIdentifierin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitThrowExpr
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<Object>- Overrides:
visitThrowExprin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTraceExpr
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<Object>- Overrides:
visitTraceExprin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitImportExpr
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<Object>- Overrides:
visitImportExprin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIfExpr
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<Object>- Overrides:
visitIfExprin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitReadExpr
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<Object>- Overrides:
visitReadExprin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLetExpr
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<Object>- Overrides:
visitLetExprin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitThisExpr
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<Object>- Overrides:
visitThisExprin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOuterExpr
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<Object>- Overrides:
visitOuterExprin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitModuleExpr
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<Object>- Overrides:
visitModuleExprin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParenthesizedExpr
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<Object>- Overrides:
visitParenthesizedExprin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSubscriptExpr
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<Object>- Overrides:
visitSubscriptExprin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeTestExpr
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<Object>- Overrides:
visitTypeTestExprin classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUnknownType
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<Object>- Overrides:
visitUnknownTypein classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNothingType
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<Object>- Overrides:
visitNothingTypein classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitModuleType
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<Object>- Overrides:
visitModuleTypein classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStringLiteralType
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<Object>- Overrides:
visitStringLiteralTypein classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitType
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<Object>- Overrides:
visitTypein classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDeclaredType
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<Object>- Overrides:
visitDeclaredTypein classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParenthesizedType
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<Object>- Overrides:
visitParenthesizedTypein classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDefaultUnionType
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<Object>- Overrides:
visitDefaultUnionTypein classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUnionType
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<Object>- Overrides:
visitUnionTypein classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNullableType
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<Object>- Overrides:
visitNullableTypein classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConstrainedType
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<Object>- Overrides:
visitConstrainedTypein classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFunctionType
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<Object>- Overrides:
visitFunctionTypein classPklParserBaseVisitor<Object>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
exceptionBuilder
- Specified by:
exceptionBuilderin classAbstractAstBuilder<Object>
-