de.dante.extex.interpreter.primitives.register.bool
Class NumberedBool

java.lang.Object
  extended byde.dante.extex.interpreter.type.AbstractCode
      extended byde.dante.extex.interpreter.type.AbstractAssignment
          extended byde.dante.extex.interpreter.primitives.register.bool.NamedBool
              extended byde.dante.extex.interpreter.primitives.register.bool.NumberedBool
All Implemented Interfaces:
BoolConvertible, Code, Localizable, java.io.Serializable, Theable

public class NumberedBool
extends NamedBool

This class provides an implementation for the primitive \bool. It sets the named bool register to the value given, and as a side effect all prefixes are zeroed.

All features are inherited from NamedBool. Just the key has to be provided under which this Bool has to be stored. This key is constructed from the name, a hash mark and the running number.

Example

 \bool12=true
 

Version:
$Revision: 1.5 $
Author:
Michael Niedermair
See Also:
Serialized Form

Field Summary
 
Fields inherited from class de.dante.extex.interpreter.type.AbstractCode
serialVersionUID
 
Constructor Summary
NumberedBool(java.lang.String name)
          Creates a new object.
 
Method Summary
protected  java.lang.String getKey(Context context, TokenSource source)
          Return the key (the name of the primitive) for the register.
 
Methods inherited from class de.dante.extex.interpreter.primitives.register.bool.NamedBool
assign, convertBool, set, set, the
 
Methods inherited from class de.dante.extex.interpreter.type.AbstractAssignment
execute
 
Methods inherited from class de.dante.extex.interpreter.type.AbstractCode
enableLocalization, getLocalizer, getName, isIf, isOuter, printable, printableControlSequence, readResolve, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NumberedBool

public NumberedBool(java.lang.String name)
Creates a new object.

Parameters:
name - the name for debugging
Method Detail

getKey

protected java.lang.String getKey(Context context,
                                  TokenSource source)
                           throws InterpreterException
Description copied from class: NamedBool
Return the key (the name of the primitive) for the register.

Overrides:
getKey in class NamedBool
Parameters:
context - the context
source - the tokensource
Returns:
the key
Throws:
InterpreterException - in case of an error
See Also:
NamedBool.getKey( de.dante.extex.interpreter.context.Context, de.dante.extex.interpreter.TokenSource)