Class AliasVisitor
java.lang.Object
org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
io.github.danielnaczo.python3parser.Python3BaseVisitor<T>
io.github.danielnaczo.python3parser.visitors.ast.GenericUnsupportedCSTVisitor<List<Alias>>
io.github.danielnaczo.python3parser.visitors.ast.AliasVisitor
- All Implemented Interfaces:
Python3Visitor<List<Alias>>,org.antlr.v4.runtime.tree.ParseTreeVisitor<List<Alias>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionVisit a parse tree produced byPython3Parser.dotted_as_names().Visit a parse tree produced byPython3Parser.import_as_names().Methods inherited from class io.github.danielnaczo.python3parser.visitors.ast.GenericUnsupportedCSTVisitor
visitAfterPositionalArgs, visitAnd_expr, visitAnd_test, visitAnnassign, visitArglist, visitArgument, visitArgumentDoubleStar, visitArgumentKeyword, visitArgumentNormal, visitArgumentStar, visitArith_expr, visitArith_op, visitAssert_stmt, visitAsync_stmt, visitAtom, visitAtom_expr, visitAugassign, visitAwait, visitBreak_stmt, visitClassdef, visitComp_for, visitComp_if, visitComp_op, visitComparison, visitCompleteArgs, visitCompound_stmt, visitContinue_stmt, visitDecorator, visitDefaultTfpdef, visitDel_stmt, visitDictFirst, visitDictionaryOrSet, visitDictorsetmaker, visitDicts, visitDotted_as_name, visitDotted_name, visitEval_input, visitExcept_clause, visitExpr, visitExpr_NormalAssignList, visitExpr_stmt, visitExpr_stmtIndividualAssign, visitExpr_stmtNormalAssign, visitExprlist, visitExprOrStarExpr, visitFactor, visitFactor_op, visitFile_input, visitFlow_stmt, visitFor_stmt, visitFuncdef, visitGlobal_stmt, visitIf_stmt, visitImport_as_name, visitImport_from, visitImport_name, visitImport_stmt, visitJustKeywordsArgs, visitKwlistArgs1, visitKwlistArgs2, visitKwOnlyListArgs, visitLambdef, visitLambdef_nocond, visitList, visitNonlocal_stmt, visitNormalOrDefaultTfpDef, visitNot_test, visitOr_test, visitParameters, visitPass_stmt, visitPositionalList, visitPower, visitRaise_stmt, visitReturn_stmt, visitSetFirst, visitSets, visitShift_expr, visitShift_op, visitSimple_stmt, visitSingle_input, visitSlicelLower, visitSliceStep, visitSliceUpper, visitSmall_stmt, visitStar_expr, visitStmt, visitSubscript, visitSubscriptIndex, visitSubscriptlist, visitSubscriptSlice, visitSuite, visitTerm, visitTerm_op, visitTest, visitTest_nocond, visitTestlist, visitTestlist_compList, visitTestlist_compTuple, visitTestlist_star_expr, visitTestOrStar_expr, visitTestOrStarList_expr, visitTfpdef, visitTrailer, visitTrailerCall, visitTrailerName, visitTrailerSubscript, visitTry_stmt, visitTuple, visitTypedargslist, visitVarAfterPositionalArgs, visitVarargslist, visitVarCompleteArgs, visitVarDefaultVfpdef, visitVarJustKeywordsArgs, visitVarKwlistArgs1, visitVarKwlistArgs2, visitVarKwOnlyListArgs, visitVarNormalOrDefaultTfpDef, visitVarPositionalList, visitVfpdef, visitWhile_stmt, visitWith_item, visitWith_stmt, visitXor_expr, visitYield_arg, visitYield_expr, visitYield_stmtMethods 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
-
AliasVisitor
public AliasVisitor()
-
-
Method Details
-
visitDotted_as_names
Description copied from class:Python3BaseVisitorVisit a parse tree produced byPython3Parser.dotted_as_names().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDotted_as_namesin interfacePython3Visitor<List<Alias>>- Overrides:
visitDotted_as_namesin classGenericUnsupportedCSTVisitor<List<Alias>>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitImport_as_names
Description copied from class:Python3BaseVisitorVisit a parse tree produced byPython3Parser.import_as_names().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitImport_as_namesin interfacePython3Visitor<List<Alias>>- Overrides:
visitImport_as_namesin classGenericUnsupportedCSTVisitor<List<Alias>>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-