Enum Script.Position
- All Implemented Interfaces:
Serializable
,Comparable<Script.Position>
- Enclosing class:
Script
The set of allowed script locations.
-
Enum Constant Summary
Enum ConstantDescriptionScripts added just before the body closing tag.Scripts added just after the body opening tag.Scripts added just before the head closing tag.Scripts added just after the head opening tag. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Script.Position
Returns the enum constant of this type with the specified name.static Script.Position[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
HEAD_START
Scripts added just after the head opening tag. -
HEAD_END
Scripts added just before the head closing tag. -
BODY_START
Scripts added just after the body opening tag. -
BODY_END
Scripts added just before the body closing tag.
-
-
Field Details
-
DEFAULT
The default position.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-