de.dante.extex.interpreter.type.count
Interface FixedCount

All Known Implementing Classes:
Count

public interface FixedCount

This interface describes the features of a Count which do not modify the value.

Version:
$Revision: 1.6 $
Author:
Gerd Neugebauer

Method Summary
 boolean eq(FixedCount count)
          Compare the value for equality.
 boolean ge(FixedCount count)
          Compare the value for a greater or equal value.
 long getValue()
          Getter for the value
 boolean gt(FixedCount count)
          Compare the value for a greater value.
 boolean le(FixedCount count)
          Compare the value for a less or equal value.
 boolean lt(FixedCount count)
          Compare the value for a lesser value.
 boolean ne(FixedCount count)
          Compare the value for non-equality.
 java.lang.String toString()
          Determine the printable representation of the object.
 void toString(java.lang.StringBuffer sb)
          Determine the printable representation of the object.
 Tokens toToks(Context context)
          Determine the printable representation of the object.
 

Method Detail

eq

public boolean eq(FixedCount count)
Compare the value for equality.

Parameters:
count - the count to compare to
Returns:
true iff count has an equal value to the current one

ge

public boolean ge(FixedCount count)
Compare the value for a greater or equal value.

Parameters:
count - the count to compare to
Returns:
true iff count has an value greater or equal to the current one

getValue

public long getValue()
Getter for the value

Returns:
the value

gt

public boolean gt(FixedCount count)
Compare the value for a greater value.

Parameters:
count - the count to compare to
Returns:
true iff count has an value greater than the current one

le

public boolean le(FixedCount count)
Compare the value for a less or equal value.

Parameters:
count - the count to compare to
Returns:
true iff count has an value less or equal to the current one

lt

public boolean lt(FixedCount count)
Compare the value for a lesser value.

Parameters:
count - the count to compare to
Returns:
true iff count has an value less than the current one

ne

public boolean ne(FixedCount count)
Compare the value for non-equality.

Parameters:
count - the count to compare to
Returns:
true iff count has an value not equal to the current one

toString

public java.lang.String toString()
Determine the printable representation of the object. The value returned is exactly the string which would be produced by TeX to print the Count.

Returns:
the printable representation
See Also:
toString(StringBuffer)

toString

public void toString(java.lang.StringBuffer sb)
Determine the printable representation of the object. The value returned is exactly the string which would be produced by TeX to print the Count.

Parameters:
sb - the target string buffer
See Also:
toString()

toToks

public Tokens toToks(Context context)
              throws InterpreterException
Determine the printable representation of the object. The value returned is exactly the string which would be produced by TeX to print the Count.

Parameters:
context - the interpreter context
Returns:
the printable representation as tokens
Throws:
InterpreterException - in case of an error