Package org.sonar.iac.docker.tree.impl
Class DockerImageTreeImpl
- java.lang.Object
-
- org.sonar.iac.docker.tree.impl.DockerTreeImpl
-
- org.sonar.iac.docker.tree.impl.DockerImageTreeImpl
-
- All Implemented Interfaces:
HasTextRange,Tree,DockerImageTree,DockerTree
public class DockerImageTreeImpl extends DockerTreeImpl implements DockerImageTree
Represent a Docker image and it's related instructions. A docker image is constitued first of a FROM instruction. Every following instructions until the next FROM instruction are associated to this image. A Dockerfile can contain zero (empty file) to any amount of images. Example of a Dockerfile with two DockerImage defined in it (one instruction for each) : FROM ubuntu:latest MAINTAINER bob FROM ubuntu:14.04 EXPOSE 80/tcp
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.sonar.iac.docker.tree.api.DockerTree
DockerTree.Kind
-
-
Field Summary
-
Fields inherited from class org.sonar.iac.docker.tree.impl.DockerTreeImpl
parent, textRange
-
-
Constructor Summary
Constructors Constructor Description DockerImageTreeImpl(FromTree from, List<InstructionTree> instructions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Tree>children()FromTreefrom()DockerTree.KindgetKind()List<InstructionTree>instructions()-
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
is, parent, setParent
-
Methods inherited from interface org.sonar.iac.common.api.tree.HasTextRange
textRange
-
-
-
-
Constructor Detail
-
DockerImageTreeImpl
public DockerImageTreeImpl(FromTree from, List<InstructionTree> instructions)
-
-
Method Detail
-
from
public FromTree from()
- Specified by:
fromin interfaceDockerImageTree
-
instructions
public List<InstructionTree> instructions()
- Specified by:
instructionsin interfaceDockerImageTree
-
getKind
public DockerTree.Kind getKind()
- Specified by:
getKindin interfaceDockerTree
-
-