java.lang.Object
java.lang.Enum<Script.Position>
com.aoapps.web.resources.registry.Script.Position
All Implemented Interfaces:
Serializable, Comparable<Script.Position>
Enclosing class:
Script

public static enum Script.Position extends Enum<Script.Position>
The set of allowed script locations.
  • Enum Constant Details

    • HEAD_START

      public static final Script.Position HEAD_START
      Scripts added just after the head opening tag.
    • HEAD_END

      public static final Script.Position HEAD_END
      Scripts added just before the head closing tag.
    • BODY_START

      public static final Script.Position BODY_START
      Scripts added just after the body opening tag.
    • BODY_END

      public static final Script.Position BODY_END
      Scripts added just before the body closing tag.
  • Field Details

    • DEFAULT

      public static final Script.Position DEFAULT
      The default position.
  • Method Details

    • values

      public static Script.Position[] 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

      public static Script.Position 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