Interface Dockerfile.Instruction
-
- All Known Implementing Classes:
Dockerfile.AddFileInstruction
,Dockerfile.ArgInstruction
,Dockerfile.CommentInstruction
,Dockerfile.CopyFileInstruction
,Dockerfile.DefaultCommandInstruction
,Dockerfile.EntryPointInstruction
,Dockerfile.EnvironmentVariableInstruction
,Dockerfile.ExposePortInstruction
,Dockerfile.FileInstruction
,Dockerfile.FromInstruction
,Dockerfile.GenericInstruction
,Dockerfile.LabelInstruction
,Dockerfile.MapInstruction
,Dockerfile.OnBuildInstruction
,Dockerfile.RunCommandInstruction
,Dockerfile.StringArrayInstruction
,Dockerfile.StringCommandInstruction
,Dockerfile.UserInstruction
,Dockerfile.VolumeInstruction
,Dockerfile.WorkDirInstruction
- Enclosing class:
- Dockerfile
public static interface Dockerfile.Instruction
A representation of an instruction in a Dockerfile.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getKeyword()
Gets the keyword of the instruction as used in the Dockerfile.String
getText()
Gets the full text of the instruction as used in the Dockerfile.
-
-
-
Method Detail
-
getKeyword
@Internal @Nullable String getKeyword()
Gets the keyword of the instruction as used in the Dockerfile.For example the keyword of the
Dockerfile.FromInstruction
isFROM
.- Returns:
- The instruction keyword
-
-