|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.scanner.type.Catcode
public abstract class Catcode
This class provides a type-save enumeration of the category codes for characters. This is accomplished by the use of several static classes which are derived from the common abstract super class Catcode.
This class contains some inner classes representing the various incarnations of a catcode. Externally only some static constants for category codes are accessible.
| Field Summary | |
|---|---|
static Catcode |
ACTIVE
The constant ACTIVE contains the unique object representing the active catcode. |
static Catcode |
COMMENT
The constant COMMENT contains the unique object representing the comment catcode. |
static Catcode |
CR
The constant CR contains the unique object representing the cr catcode. |
static Catcode |
ESCAPE
The constant ESCAPE contains the unique object representing the escape catcode used to initiate control sequences. |
static Catcode |
IGNORE
The constant IGNORE contains the unique object representing the ignore catcode. |
static Catcode |
INVALID
The constant INVALID contains the unique object representing the invalid catcode. |
static Catcode |
LEFTBRACE
The constant LEFTBRACE contains the unique object representing the left brace catcode. |
static Catcode |
LETTER
The constant LETTER contains the unique object representing the letter catcode. |
static Catcode |
MACROPARAM
The constant MACROPARAM contains the unique object representing the macro parameter catcode. |
static Catcode |
MATHSHIFT
The constant MATHSHIFT contains the unique object representing the math shift catcode. |
static Catcode |
OTHER
The constant OTHER contains the unique object representing the other catcode. |
static Catcode |
RIGHTBRACE
The constant RIGHTBRACE contains the unique object representing the right brace catcode. |
protected static long |
serialVersionUID
The constant serialVersionUID contains the id for serialization. |
static Catcode |
SPACE
The constant SPACE contains the unique object representing the space catcode. |
static Catcode |
SUBMARK
The constant SUBMARK contains the unique object representing the sub mark catcode. |
static Catcode |
SUPMARK
The constant SUPMARK contains the unique object representing the super mark catcode. |
static Catcode |
TABMARK
The constant TABMARK contains the unique object representing the tab mark catcode. |
| Method Summary | |
|---|---|
static int |
getCatcodeMax()
Getter for the maximal numerical catcode. |
int |
getCode()
Get the numerical representation for the Catcode. |
static int |
getCode(Catcode cc)
Get the numerical representation for the Catcode. |
abstract java.lang.String |
getName()
Getter for the name of the catcode. |
static Catcode |
toCatcode(int theCode)
Return a catcode for a given numerical value. |
java.lang.String |
toString()
Get the string representation of the catcode. |
abstract java.lang.Object |
visit(CatcodeVisitor visitor,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
Catcode support the visitor pattern. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final long serialVersionUID
public static final Catcode ACTIVE
public static final Catcode COMMENT
public static final Catcode CR
public static final Catcode ESCAPE
public static final Catcode IGNORE
public static final Catcode INVALID
public static final Catcode LEFTBRACE
public static final Catcode LETTER
public static final Catcode MACROPARAM
public static final Catcode MATHSHIFT
public static final Catcode OTHER
public static final Catcode RIGHTBRACE
public static final Catcode SPACE
public static final Catcode SUBMARK
public static final Catcode SUPMARK
public static final Catcode TABMARK
| Method Detail |
|---|
public static int getCatcodeMax()
public static int getCode(Catcode cc)
cc - the catcode to map
public int getCode()
public static Catcode toCatcode(int theCode)
throws CatcodeException
theCode - the numerical code.
CatcodeException - in case that the catcode is not in the
allowed rangepublic abstract java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.Object
public abstract java.lang.Object visit(CatcodeVisitor visitor,
java.lang.Object arg1,
java.lang.Object arg2,
java.lang.Object arg3)
throws java.lang.Exception
visitor - the visitorarg1 - the first argument to passarg2 - the second argument to passarg3 - the third argument to pass
java.lang.Exception - in case of an error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||