Package org.sonar.iac.docker.tree.impl
Class TransferInstructionTreeImpl
- java.lang.Object
-
- org.sonar.iac.docker.tree.impl.DockerTreeImpl
-
- org.sonar.iac.docker.tree.impl.InstructionTreeImpl
-
- org.sonar.iac.docker.tree.impl.TransferInstructionTreeImpl
-
- All Implemented Interfaces:
HasTextRange,Tree,DockerTree,InstructionTree,TransferInstructionTree
- Direct Known Subclasses:
AddTreeImpl,CopyTreeImpl
public abstract class TransferInstructionTreeImpl extends InstructionTreeImpl implements TransferInstructionTree
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<ParamTree>optionsprotected LiteralListTreesrcsAndDest-
Fields inherited from class org.sonar.iac.docker.tree.impl.InstructionTreeImpl
keyword
-
Fields inherited from class org.sonar.iac.docker.tree.impl.DockerTreeImpl
parent, textRange
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTransferInstructionTreeImpl(SyntaxToken add, List<ParamTree> options, LiteralListTree srcsAndDest)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Tree>children()SyntaxTokendest()List<ParamTree>options()List<SyntaxToken>srcs()-
Methods inherited from class org.sonar.iac.docker.tree.impl.InstructionTreeImpl
keyword
-
Methods inherited from class org.sonar.iac.docker.tree.impl.DockerTreeImpl
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.InstructionTree
keyword
-
-
-
-
Field Detail
-
srcsAndDest
protected final LiteralListTree srcsAndDest
-
-
Constructor Detail
-
TransferInstructionTreeImpl
protected TransferInstructionTreeImpl(SyntaxToken add, List<ParamTree> options, LiteralListTree srcsAndDest)
-
-
Method Detail
-
options
public List<ParamTree> options()
- Specified by:
optionsin interfaceTransferInstructionTree
-
srcs
public List<SyntaxToken> srcs()
- Specified by:
srcsin interfaceTransferInstructionTree
-
dest
public SyntaxToken dest()
- Specified by:
destin interfaceTransferInstructionTree
-
-