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.InstructionA representation of an instruction in a Dockerfile.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetKeyword()Gets the keyword of the instruction as used in the Dockerfile.StringgetText()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.FromInstructionisFROM.- Returns:
- The instruction keyword
-
-