Enum Chunk.Type

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Chunk.Type>
    Enclosing class:
    Chunk

    public static enum Chunk.Type
    extends java.lang.Enum<Chunk.Type>
    Types of chunks that can exist.
    • Enum Constant Detail

      • STRING_POOL

        public static final Chunk.Type STRING_POOL
      • XML_START_NAMESPACE

        public static final Chunk.Type XML_START_NAMESPACE
      • XML_END_NAMESPACE

        public static final Chunk.Type XML_END_NAMESPACE
      • XML_START_ELEMENT

        public static final Chunk.Type XML_START_ELEMENT
      • XML_END_ELEMENT

        public static final Chunk.Type XML_END_ELEMENT
      • XML_CDATA

        public static final Chunk.Type XML_CDATA
      • XML_RESOURCE_MAP

        public static final Chunk.Type XML_RESOURCE_MAP
      • TABLE_PACKAGE

        public static final Chunk.Type TABLE_PACKAGE
      • TABLE_TYPE

        public static final Chunk.Type TABLE_TYPE
      • TABLE_TYPE_SPEC

        public static final Chunk.Type TABLE_TYPE_SPEC
      • TABLE_LIBRARY

        public static final Chunk.Type TABLE_LIBRARY
    • Method Detail

      • values

        public static Chunk.Type[] 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 (Chunk.Type c : Chunk.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Chunk.Type valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • code

        public short code()
      • fromCode

        public static Chunk.Type fromCode​(short code)