Package org.openrewrite.docker.tree
Class Docker.HeredocForm
java.lang.Object
org.openrewrite.docker.tree.Docker.HeredocForm
- All Implemented Interfaces:
Docker,Docker.CommandForm,Docker.CopyAddForm,org.openrewrite.Tree
- Enclosing interface:
Docker
public static class Docker.HeredocForm
extends Object
implements Docker.CommandForm, Docker.CopyAddForm
Unified heredoc form supporting both single and multiple heredocs.
Single heredoc example: RUN <<EOF\ncommands\nEOF Multi-heredoc example: RUN <<EOF1 cat >file1.sh &&\ <<EOF2 cat >file2.sh
Consists of a shell preamble (containing heredoc markers and optional shell commands) followed by ordered heredoc bodies. Also used for COPY/ADD heredoc form.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.openrewrite.docker.tree.Docker
Docker.Add, Docker.Arg, Docker.Argument, Docker.ArgumentContent, Docker.Cmd, Docker.CommandForm, Docker.Copy, Docker.CopyAddForm, Docker.CopyShellForm, Docker.Entrypoint, Docker.Env, Docker.EnvironmentVariable, Docker.ExecForm, Docker.Expose, Docker.File, Docker.Flag, Docker.From, Docker.Healthcheck, Docker.HeredocBody, Docker.HeredocForm, Docker.Instruction, Docker.Label, Docker.Literal, Docker.Maintainer, Docker.Onbuild, Docker.Port, Docker.Run, Docker.Shell, Docker.ShellForm, Docker.Stage, Docker.Stopsignal, Docker.User, Docker.Volume, Docker.Workdir -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openrewrite.docker.tree.Docker
accept, getPrefix, isAcceptable, withPrefixMethods inherited from interface org.openrewrite.Tree
cast, getId, getMarkers, isScope, print, print, print, printer, printTrimmed, printTrimmed, printTrimmed, withId, withMarkers
-
Constructor Details
-
HeredocForm
public HeredocForm()
-
-
Method Details
-
acceptDocker
- Specified by:
acceptDockerin interfaceDocker
-