Enum DockerKeyword
- java.lang.Object
-
- java.lang.Enum<DockerKeyword>
-
- org.sonar.iac.docker.parser.grammar.DockerKeyword
-
- All Implemented Interfaces:
com.sonar.sslr.api.AstNodeType,Serializable,Comparable<DockerKeyword>,org.sonar.sslr.grammar.GrammarRuleKey
public enum DockerKeyword extends Enum<DockerKeyword> implements org.sonar.sslr.grammar.GrammarRuleKey
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDARGCMDCOPYENTRYPOINTENVEXPOSEFROMHEALTHCHECKLABELMAINTAINERONBUILDRUNSHELLSTOPSIGNALUSERVOLUMEWORKDIR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetValue()static DockerKeywordvalueOf(String name)Returns the enum constant of this type with the specified name.static DockerKeyword[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ONBUILD
public static final DockerKeyword ONBUILD
-
FROM
public static final DockerKeyword FROM
-
MAINTAINER
public static final DockerKeyword MAINTAINER
-
STOPSIGNAL
public static final DockerKeyword STOPSIGNAL
-
WORKDIR
public static final DockerKeyword WORKDIR
-
EXPOSE
public static final DockerKeyword EXPOSE
-
LABEL
public static final DockerKeyword LABEL
-
ENV
public static final DockerKeyword ENV
-
ARG
public static final DockerKeyword ARG
-
CMD
public static final DockerKeyword CMD
-
ENTRYPOINT
public static final DockerKeyword ENTRYPOINT
-
RUN
public static final DockerKeyword RUN
-
ADD
public static final DockerKeyword ADD
-
COPY
public static final DockerKeyword COPY
-
USER
public static final DockerKeyword USER
-
VOLUME
public static final DockerKeyword VOLUME
-
SHELL
public static final DockerKeyword SHELL
-
HEALTHCHECK
public static final DockerKeyword HEALTHCHECK
-
-
Method Detail
-
values
public static DockerKeyword[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DockerKeyword c : DockerKeyword.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DockerKeyword valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public String getValue()
-
-