org.extex.base.parser.dimen
Class Accumulator

java.lang.Object
  extended by org.extex.base.parser.dimen.Accumulator

public class Accumulator
extends java.lang.Object

This data type contains an accumulator which can contain values of different kinds.

Version:
$Revision$
Author:
Gerd Neugebauer

Field Summary
protected  int sp
          The field sp contains the number of sp units encountered.
protected  long value
          The field value contains the numerical value in multiples of 2-16.
 
Constructor Summary
Accumulator()
          Creates a new object.
Accumulator(long value)
          Creates a new object.
 
Method Summary
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sp

protected int sp
The field sp contains the number of sp units encountered.


value

protected long value
The field value contains the numerical value in multiples of 2-16.

Constructor Detail

Accumulator

public Accumulator()
Creates a new object.


Accumulator

public Accumulator(long value)
Creates a new object.

Parameters:
value - the value
Method Detail

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the object.
See Also:
Object.toString()