org.extex.interpreter
Class ConditionalSwitch
java.lang.Object
org.extex.interpreter.Conditional
org.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:5563 $
- Author:
- Gerd Neugebauer
- See Also:
- Serialized Form
|
Field Summary |
protected static long |
serialVersionUID
The constant serialVersionUID contains the id for serialization. |
|
Method Summary |
boolean |
getValue()
Getter for the value of the conditional. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
serialVersionUID
protected static final long serialVersionUID
- The constant serialVersionUID contains the id for serialization.
- See Also:
- Constant Field Values
ConditionalSwitch
public ConditionalSwitch(Locator locator,
Code primitive,
long branch,
boolean neg)
- Creates a new object.
- Parameters:
locator - the locatorprimitive - the primitive which started this conditionalbranch - true iff the then branch is takenneg - indicator that the conditional has been negated
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