de.dante.extex.interpreter.type.math
Class MathCode

java.lang.Object
  extended byde.dante.extex.interpreter.type.math.MathCode
All Implemented Interfaces:
java.io.Serializable

public class MathCode
extends java.lang.Object
implements java.io.Serializable

This class represents a mathematical character. It consists of a class, a family and a character code.

Version:
$Revision: 1.12 $
Author:
Gerd Neugebauer
See Also:
Serialized Form

Constructor Summary
MathCode(long code)
          Creates a new object.
MathCode(MathClass mathClass, MathGlyph mathGlyph)
          Creates a new object.
 
Method Summary
 MathClass getMathClass()
          Getter for mathClass.
 MathGlyph getMathGlyph()
          Getter for mathGlyph.
 java.lang.String toString()
           
 void toString(java.lang.StringBuffer sb)
          Print the instance to a StringBuffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MathCode

public MathCode(MathClass mathClass,
                MathGlyph mathGlyph)
Creates a new object.

Parameters:
mathClass - the class
mathGlyph - the glyph

MathCode

public MathCode(long code)
         throws InterpreterException
Creates a new object.

Parameters:
code - the integer to analyze for the desired field values
Method Detail

getMathGlyph

public MathGlyph getMathGlyph()
Getter for mathGlyph.

Returns:
the mathGlyph

getMathClass

public MathClass getMathClass()
Getter for mathClass.

Returns:
the mathClass.

toString

public java.lang.String toString()
See Also:
Object.toString()

toString

public void toString(java.lang.StringBuffer sb)
Print the instance to a StringBuffer.

Parameters:
sb - the target string buffer