Enum Catcode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Catcode>

    public enum Catcode
    extends java.lang.Enum<Catcode>
    This enumerates TeX category codes (catcodes) for characters as defined in chapter 7 of "The TeXbook"
    • Enum Constant Detail

      • ESCAPE

        public static final Catcode ESCAPE
      • BEGIN_GROUP

        public static final Catcode BEGIN_GROUP
      • END_GROUP

        public static final Catcode END_GROUP
      • MATH_SHIFT

        public static final Catcode MATH_SHIFT
      • ALIGNMENT_TAB

        public static final Catcode ALIGNMENT_TAB
      • END_OF_LINE

        public static final Catcode END_OF_LINE
      • PARAMETER

        public static final Catcode PARAMETER
      • SUPERSCRIPT

        public static final Catcode SUPERSCRIPT
      • SUBSCRIPT

        public static final Catcode SUBSCRIPT
      • IGNORED

        public static final Catcode IGNORED
      • SPACE

        public static final Catcode SPACE
      • LETTER

        public static final Catcode LETTER
      • OTHER

        public static final Catcode OTHER
      • ACTIVE

        public static final Catcode ACTIVE
      • COMMENT

        public static final Catcode COMMENT
      • INVALID

        public static final Catcode INVALID
    • Method Detail

      • values

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

        public static Catcode 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