|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.typesetter.type.math.MathClass
public abstract class MathClass
This class provides the classification of mathematical characters. In fact it is a finite enumeration which exposes the values as constants.
| Field Summary | |
|---|---|
static MathClass |
BINARY
The field BINARY contains the instance representing the binary class. |
static MathClass |
CLOSING
The field CLOSING contains the instance representing the closing class. |
static MathClass |
LARGE
The field LARGE contains the instance representing the large class. |
static MathClass |
OPENING
The field OPENING contains the instance representing the opening class. |
static MathClass |
ORDINARY
The field ORDINARY contains the instance representing the ordinary class. |
static MathClass |
PUNCTATION
The field PUNCTUATION contains the instance representing the punctation class. |
static MathClass |
RELATION
The field RELATION contains the instance representing the relation class. |
protected static long |
serialVersionUID
The constant serialVersionUID contains the id for serialization. |
static MathClass |
VARIABLE
The field VARIABLE contains the instance representing the variable width class. |
| Constructor Summary | |
|---|---|
protected |
MathClass()
Creates a new object. |
| Method Summary | |
|---|---|
static MathClass |
getMathClass(int n)
Factory method for the math class which maps the |
java.lang.String |
toString()
|
abstract void |
toString(java.lang.StringBuffer sb)
Append the printable representation of the current instance to the string buffer. |
abstract java.lang.Object |
visit(MathClassVisitor visitor,
java.lang.Object arg,
java.lang.Object arg2)
Call a method in the visitor depending on the type. |
| 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 MathClass BINARY
public static final MathClass CLOSING
public static final MathClass LARGE
public static final MathClass OPENING
public static final MathClass ORDINARY
public static final MathClass PUNCTATION
public static final MathClass RELATION
public static final MathClass VARIABLE
| Constructor Detail |
|---|
protected MathClass()
| Method Detail |
|---|
public static final MathClass getMathClass(int n)
| 0 | ORDINARY |
| 1 | LARGE |
| 2 | BINARY |
| 3 | RELATION |
| 4 | OPENING |
| 5 | CLOSING |
| 6 | PUNCTATION |
| 7 | VARIABLE |
n - the public abstract void toString(java.lang.StringBuffer sb)
sb - the target string bufferpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
public abstract java.lang.Object visit(MathClassVisitor visitor,
java.lang.Object arg,
java.lang.Object arg2)
visitor - the visitor to callarg - an arbitrary argument passed to the visitorarg2 - an arbitrary second argument passed to the visitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||