com.google.template.soy.parseinfo
Enum SoyTemplateInfo.ParamRequisiteness
java.lang.Object
java.lang.Enum<SoyTemplateInfo.ParamRequisiteness>
com.google.template.soy.parseinfo.SoyTemplateInfo.ParamRequisiteness
- All Implemented Interfaces:
- Serializable, Comparable<SoyTemplateInfo.ParamRequisiteness>
- Enclosing class:
- SoyTemplateInfo
public static enum SoyTemplateInfo.ParamRequisiteness
- extends Enum<SoyTemplateInfo.ParamRequisiteness>
Enum for whether a param is required or optional for a specific template.
REQUIRED
public static final SoyTemplateInfo.ParamRequisiteness REQUIRED
OPTIONAL
public static final SoyTemplateInfo.ParamRequisiteness OPTIONAL
values
public static SoyTemplateInfo.ParamRequisiteness[] 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 (SoyTemplateInfo.ParamRequisiteness c : SoyTemplateInfo.ParamRequisiteness.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static SoyTemplateInfo.ParamRequisiteness 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 name
NullPointerException - if the argument is null