Class DockerParserVisitor
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<Docker>,DockerParserVisitor<Docker>
-
Constructor Summary
ConstructorsConstructorDescriptionDockerParserVisitor(Path path, @Nullable org.openrewrite.FileAttributes fileAttributes, org.openrewrite.internal.EncodingDetectingInputStream source) -
Method Summary
Modifier and TypeMethodDescriptionVisit a parse tree produced byDockerParser.addInstruction().Visit a parse tree produced byDockerParser.argInstruction().Visit a parse tree produced byDockerParser.cmdInstruction().Visit a parse tree produced byDockerParser.copyInstruction().Visit a parse tree produced byDockerParser.dockerfile().Visit a parse tree produced byDockerParser.entrypointInstruction().Visit a parse tree produced byDockerParser.envInstruction().Visit a parse tree produced byDockerParser.exposeInstruction().Visit a parse tree produced byDockerParser.fromInstruction().Visit a parse tree produced byDockerParser.healthcheckInstruction().Visit a parse tree produced byDockerParser.labelInstruction().Visit a parse tree produced byDockerParser.maintainerInstruction().Visit a parse tree produced byDockerParser.onbuildInstruction().Visit a parse tree produced byDockerParser.runInstruction().Visit a parse tree produced byDockerParser.shellInstruction().Visit a parse tree produced byDockerParser.stage().Visit a parse tree produced byDockerParser.stopsignalInstruction().Visit a parse tree produced byDockerParser.userInstruction().Visit a parse tree produced byDockerParser.volumeInstruction().Visit a parse tree produced byDockerParser.workdirInstruction().Methods inherited from class org.openrewrite.docker.internal.grammar.DockerParserBaseVisitor
visitArgName, visitArgValue, visitDestination, visitDestinationPath, visitEnvKey, visitEnvPair, visitEnvPairs, visitEnvTextElementEquals, visitEnvTextEquals, visitEnvValueEquals, visitEnvValueSpace, visitExecForm, visitFlag, visitFlags, visitGlobalArgs, visitHealthcheckOption, visitHealthcheckOptions, visitHeredoc, visitHeredocBody, visitHeredocContent, visitHeredocEnd, visitHeredocPreamble, visitImageName, visitInstruction, visitJsonArray, visitJsonArrayElements, visitJsonString, visitLabelKey, visitLabelOldValue, visitLabelOldValueElement, visitLabelPair, visitLabelPairs, visitLabelValue, visitParserDirective, visitPath, visitPathList, visitPort, visitPortList, visitPreambleElement, visitShellForm, visitShellFormText, visitShellFormTextElement, visitSignal, visitSourceList, visitSourcePath, visitStageInstruction, visitStageName, visitText, visitTextElement, visitUserSpec, visitVolumePathMethods 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
-
DockerParserVisitor
public DockerParserVisitor(Path path, @Nullable org.openrewrite.FileAttributes fileAttributes, org.openrewrite.internal.EncodingDetectingInputStream source)
-
-
Method Details
-
visitDockerfile
Description copied from class:DockerParserBaseVisitorVisit a parse tree produced byDockerParser.dockerfile().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDockerfilein interfaceDockerParserVisitor<Docker>- Overrides:
visitDockerfilein classDockerParserBaseVisitor<Docker>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStage
Description copied from class:DockerParserBaseVisitorVisit a parse tree produced byDockerParser.stage().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStagein interfaceDockerParserVisitor<Docker>- Overrides:
visitStagein classDockerParserBaseVisitor<Docker>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFromInstruction
Description copied from class:DockerParserBaseVisitorVisit a parse tree produced byDockerParser.fromInstruction().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFromInstructionin interfaceDockerParserVisitor<Docker>- Overrides:
visitFromInstructionin classDockerParserBaseVisitor<Docker>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRunInstruction
Description copied from class:DockerParserBaseVisitorVisit a parse tree produced byDockerParser.runInstruction().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRunInstructionin interfaceDockerParserVisitor<Docker>- Overrides:
visitRunInstructionin classDockerParserBaseVisitor<Docker>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAddInstruction
Description copied from class:DockerParserBaseVisitorVisit a parse tree produced byDockerParser.addInstruction().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAddInstructionin interfaceDockerParserVisitor<Docker>- Overrides:
visitAddInstructionin classDockerParserBaseVisitor<Docker>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCopyInstruction
Description copied from class:DockerParserBaseVisitorVisit a parse tree produced byDockerParser.copyInstruction().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCopyInstructionin interfaceDockerParserVisitor<Docker>- Overrides:
visitCopyInstructionin classDockerParserBaseVisitor<Docker>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArgInstruction
Description copied from class:DockerParserBaseVisitorVisit a parse tree produced byDockerParser.argInstruction().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitArgInstructionin interfaceDockerParserVisitor<Docker>- Overrides:
visitArgInstructionin classDockerParserBaseVisitor<Docker>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnvInstruction
Description copied from class:DockerParserBaseVisitorVisit a parse tree produced byDockerParser.envInstruction().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEnvInstructionin interfaceDockerParserVisitor<Docker>- Overrides:
visitEnvInstructionin classDockerParserBaseVisitor<Docker>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLabelInstruction
Description copied from class:DockerParserBaseVisitorVisit a parse tree produced byDockerParser.labelInstruction().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLabelInstructionin interfaceDockerParserVisitor<Docker>- Overrides:
visitLabelInstructionin classDockerParserBaseVisitor<Docker>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCmdInstruction
Description copied from class:DockerParserBaseVisitorVisit a parse tree produced byDockerParser.cmdInstruction().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCmdInstructionin interfaceDockerParserVisitor<Docker>- Overrides:
visitCmdInstructionin classDockerParserBaseVisitor<Docker>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEntrypointInstruction
Description copied from class:DockerParserBaseVisitorVisit a parse tree produced byDockerParser.entrypointInstruction().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEntrypointInstructionin interfaceDockerParserVisitor<Docker>- Overrides:
visitEntrypointInstructionin classDockerParserBaseVisitor<Docker>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExposeInstruction
Description copied from class:DockerParserBaseVisitorVisit a parse tree produced byDockerParser.exposeInstruction().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExposeInstructionin interfaceDockerParserVisitor<Docker>- Overrides:
visitExposeInstructionin classDockerParserBaseVisitor<Docker>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVolumeInstruction
Description copied from class:DockerParserBaseVisitorVisit a parse tree produced byDockerParser.volumeInstruction().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitVolumeInstructionin interfaceDockerParserVisitor<Docker>- Overrides:
visitVolumeInstructionin classDockerParserBaseVisitor<Docker>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitShellInstruction
Description copied from class:DockerParserBaseVisitorVisit a parse tree produced byDockerParser.shellInstruction().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitShellInstructionin interfaceDockerParserVisitor<Docker>- Overrides:
visitShellInstructionin classDockerParserBaseVisitor<Docker>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitWorkdirInstruction
Description copied from class:DockerParserBaseVisitorVisit a parse tree produced byDockerParser.workdirInstruction().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitWorkdirInstructionin interfaceDockerParserVisitor<Docker>- Overrides:
visitWorkdirInstructionin classDockerParserBaseVisitor<Docker>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUserInstruction
Description copied from class:DockerParserBaseVisitorVisit a parse tree produced byDockerParser.userInstruction().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitUserInstructionin interfaceDockerParserVisitor<Docker>- Overrides:
visitUserInstructionin classDockerParserBaseVisitor<Docker>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStopsignalInstruction
Description copied from class:DockerParserBaseVisitorVisit a parse tree produced byDockerParser.stopsignalInstruction().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStopsignalInstructionin interfaceDockerParserVisitor<Docker>- Overrides:
visitStopsignalInstructionin classDockerParserBaseVisitor<Docker>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOnbuildInstruction
Description copied from class:DockerParserBaseVisitorVisit a parse tree produced byDockerParser.onbuildInstruction().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitOnbuildInstructionin interfaceDockerParserVisitor<Docker>- Overrides:
visitOnbuildInstructionin classDockerParserBaseVisitor<Docker>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitHealthcheckInstruction
Description copied from class:DockerParserBaseVisitorVisit a parse tree produced byDockerParser.healthcheckInstruction().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitHealthcheckInstructionin interfaceDockerParserVisitor<Docker>- Overrides:
visitHealthcheckInstructionin classDockerParserBaseVisitor<Docker>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMaintainerInstruction
Description copied from class:DockerParserBaseVisitorVisit a parse tree produced byDockerParser.maintainerInstruction().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMaintainerInstructionin interfaceDockerParserVisitor<Docker>- Overrides:
visitMaintainerInstructionin classDockerParserBaseVisitor<Docker>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-