org.openoffice.da.comp.w2lcommon.tex.tokenizer
Enum Catcode

java.lang.Object
  extended by java.lang.Enum<Catcode>
      extended by org.openoffice.da.comp.w2lcommon.tex.tokenizer.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 Summary
ACTIVE
           
ALIGNMENT_TAB
           
BEGIN_GROUP
           
COMMENT
           
END_GROUP
           
END_OF_LINE
           
ESCAPE
           
IGNORED
           
INVALID
           
LETTER
           
MATH_SHIFT
           
OTHER
           
PARAMETER
           
SPACE
           
SUBSCRIPT
           
SUPERSCRIPT
           
 
Method Summary
static Catcode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Catcode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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