Class PHPTagTypes

java.lang.Object
PHPTagTypes

public final class PHPTagTypes extends Object
Contains tag types related to the PHP server platform.

There is no specific tag type defined for the ASP-style PHP tag as it is recognised using the common server tag type.

The tag types defined in this class are not registered by default. The register() method is provided as a convenient way to register them all at once.

  • Field Details

  • Method Details

    • register

      public static void register()
      Registers all of the tag types defined in this class at once.

      The tag types must be registered before the parser will recognise them.

    • deregister

      public static void deregister()
      Deregisters all of the tag types defined in this class at once.
    • defines

      public static boolean defines(TagType tagType)
      Indicates whether the specified tag type is defined in this class.
      Parameters:
      tagType - the TagType to test.
      Returns:
      true if the specified tag type is defined in this class, otherwise false.
    • isParsedByPHP

      public static boolean isParsedByPHP(TagType tagType)
      Indicates whether the specified tag type is recognised by a PHP parser.

      This is true if the specified tag type is defined in this class or if it is the common server tag type.

      Parameters:
      tagType - the TagType to test.
      Returns:
      true if the specified tag type is recognised by a PHP parser, otherwise false.