Package org.sonar.iac.docker.tree.impl
Class AbstractTransferInstructionImpl
- java.lang.Object
-
- org.sonar.iac.docker.tree.impl.AbstractDockerTreeImpl
-
- org.sonar.iac.docker.tree.impl.InstructionImpl
-
- org.sonar.iac.docker.tree.impl.AbstractTransferInstructionImpl
-
- All Implemented Interfaces:
HasTextRange,Tree,DockerTree,Instruction,TransferInstruction
- Direct Known Subclasses:
AddInstructionImpl,CopyInstructionImpl
public abstract class AbstractTransferInstructionImpl extends InstructionImpl implements TransferInstruction
To be used when we want to implement a command that expect one+ src with one dest (supporting both SHELL and EXEC format) with Params. Examples :MY_CMD --param=value src1 src2 destMY_CMD --param=value ["src1", "src2", "dest"]
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.sonar.iac.docker.tree.api.DockerTree
DockerTree.Kind
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Flag>optionsprotected ArgumentListsrcsAndDest-
Fields inherited from class org.sonar.iac.docker.tree.impl.InstructionImpl
keyword
-
Fields inherited from class org.sonar.iac.docker.tree.impl.AbstractDockerTreeImpl
parent, textRange
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractTransferInstructionImpl(SyntaxToken add, List<Flag> options, ArgumentList srcsAndDest)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Tree>children()Argumentdest()List<Flag>options()List<Argument>srcs()-
Methods inherited from class org.sonar.iac.docker.tree.impl.InstructionImpl
keyword
-
Methods inherited from class org.sonar.iac.docker.tree.impl.AbstractDockerTreeImpl
is, parent, setParent, textRange
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.sonar.iac.docker.tree.api.DockerTree
getKind, is, parent, setParent
-
Methods inherited from interface org.sonar.iac.common.api.tree.HasTextRange
textRange
-
Methods inherited from interface org.sonar.iac.docker.tree.api.Instruction
keyword
-
-
-
-
Field Detail
-
srcsAndDest
protected final ArgumentList srcsAndDest
-
-
Constructor Detail
-
AbstractTransferInstructionImpl
protected AbstractTransferInstructionImpl(SyntaxToken add, List<Flag> options, ArgumentList srcsAndDest)
-
-
Method Detail
-
options
public List<Flag> options()
- Specified by:
optionsin interfaceTransferInstruction
-
srcs
public List<Argument> srcs()
- Specified by:
srcsin interfaceTransferInstruction
-
dest
public Argument dest()
- Specified by:
destin interfaceTransferInstruction
-
-