de.dante.extex.interpreter
Class ConditionalSwitch

java.lang.Object
  extended byde.dante.extex.interpreter.Conditional
      extended byde.dante.extex.interpreter.ConditionalSwitch
All Implemented Interfaces:
java.io.Serializable

public class ConditionalSwitch
extends Conditional

This class represents a conditional for an \ifcase construct.

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

Field Summary
protected static long serialVersionUID
          The constant serialVersionUID contains the id for serialization.
 
Constructor Summary
ConditionalSwitch(Locator locator, Code primitive, long branch, boolean neg)
          Creates a new object.
 
Method Summary
 boolean getValue()
          Getter for the value of the conditional.
 
Methods inherited from class de.dante.extex.interpreter.Conditional
getBranch, getLocator, getPrimitive, getPrimitiveName, isNeg, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

protected static final long serialVersionUID
The constant serialVersionUID contains the id for serialization.

See Also:
Constant Field Values
Constructor Detail

ConditionalSwitch

public ConditionalSwitch(Locator locator,
                         Code primitive,
                         long branch,
                         boolean neg)
Creates a new object.

Parameters:
locator - the locator
primitive - the primitive which started this conditional
branch - true iff the then branch is taken
neg - indicator that the conditional has been negated
Method Detail

getValue

public boolean getValue()
Getter for the value of the conditional. If it has the value true then the conditional is one of the if-then-else constructs. Otherwise it is a \ifcase construction.

Overrides:
getValue in class Conditional
Returns:
the value