|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.interpreter.Conditional
public class Conditional
This class represents a conditional for a normal \if \else \fi construct. It records which \if has initiated it and where this has happened.
| Field Summary | |
|---|---|
protected static long |
serialVersionUID
The constant serialVersionUID contains the id for serialization. |
| Constructor Summary | |
|---|---|
Conditional(Locator locator,
Code primitive,
long branch,
boolean neg)
Creates a new object. |
|
| Method Summary | |
|---|---|
long |
getBranch()
Getter for branch. |
Locator |
getLocator()
Getter for the locator of this conditional. |
Code |
getPrimitive()
Getter for primitive. |
CodeToken |
getPrimitiveToken()
Getter for the primitive which started this conditional. |
boolean |
getValue()
Getter for the value of the conditional. |
boolean |
isNeg()
Getter for neg. |
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 |
|---|
protected static final long serialVersionUID
| Constructor Detail |
|---|
public Conditional(Locator locator,
Code primitive,
long branch,
boolean neg)
locator - the locatorprimitive - the primitive which started this conditionalbranch - true iff the then branch is takenneg - indicator that the conditional has been negated| Method Detail |
|---|
public long getBranch()
public Locator getLocator()
public Code getPrimitive()
public CodeToken getPrimitiveToken()
public boolean getValue()
true then the conditional is one of the
if-then-else constructs. Otherwise it is a \ifcase construction.
public boolean isNeg()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||