|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dante.extex.interpreter.expression.term.TBoolean
This class encapsulates a boolean value for the use in the expression evaluator.
Constructor Summary | |
TBoolean()
Creates a new object. |
|
TBoolean(boolean value)
Creates a new object. |
Method Summary | |
EType |
add(EType t)
Apply the operation + on the current instance and an additional argument. |
EType |
and(EType t)
Apply the operation && on the current instance and an additional argument. |
protected static boolean |
castTerminal(EType t)
Cast a terminal to a double. |
EType |
divide(EType t)
Apply the operation + on the current instance and an additional argument. |
TBoolean |
eq(EType t)
Compare the current instance with an another value for equality. |
TBoolean |
ge(EType t)
Compare the current instance with an another value for greater or equal. |
TBoolean |
gt(EType t)
Compare the current instance with an another value for greater than. |
boolean |
isValue()
Getter for value. |
TBoolean |
le(EType t)
Compare the current instance with an another value for less or equal. |
TBoolean |
lt(EType t)
Compare the current instance with an another value for less. |
EType |
multiply(EType t)
Apply the operation * on the current instance and an additional argument. |
TBoolean |
ne(EType t)
Compare the current instance with an another value for not equal. |
EType |
negate()
Apply the unary minus - on the current instance. |
EType |
not()
Apply the unary negation ! on the current instance. |
EType |
or(EType t)
Apply the operation || on the current instance and an additional argument. |
EType |
parse(java.lang.CharSequence sequence)
|
EType |
set(EType t)
Assign a new value from an additional argument. |
void |
setValue(boolean value)
Setter for value. |
EType |
subtract(EType t)
Apply the operation - on the current instance and an additional argument. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TBoolean()
public TBoolean(boolean value)
value
- the initial valueMethod Detail |
protected static boolean castTerminal(EType t) throws CastException
t
- the terminal to cast
CastException
- in case of an errorpublic EType add(EType t) throws UnsupportedException
EType
add
in interface EType
t
- the terminal to add
UnsupportedException
- in case of an unsupported operationEType.add(
de.dante.extex.interpreter.expression.EType)
public EType and(EType t) throws CastException
EType
and
in interface EType
t
- the terminal to build the conjunction with
CastException
- in case of an error in casing the argumentEType.and(
de.dante.extex.interpreter.expression.EType)
public EType divide(EType t) throws CastException, UnsupportedException
EType
divide
in interface EType
t
- the terminal to divide by
CastException
- in case of an error in casing the argument
UnsupportedException
- in case of an unsupported operationEType.divide(
de.dante.extex.interpreter.expression.EType)
public TBoolean eq(EType t) throws UnsupportedException
EType
eq
in interface EType
t
- the terminal to compare to
UnsupportedException
- in case of an unsupported operationEType.eq(
de.dante.extex.interpreter.expression.EType)
public TBoolean ge(EType t) throws UnsupportedException
EType
ge
in interface EType
t
- the terminal to compare to
UnsupportedException
- in case of an unsupported operationEType.ge(
de.dante.extex.interpreter.expression.EType)
public TBoolean gt(EType t) throws UnsupportedException
EType
gt
in interface EType
t
- the terminal to compare to
UnsupportedException
- in case of an unsupported operationEType.gt(
de.dante.extex.interpreter.expression.EType)
public boolean isValue()
public TBoolean le(EType t) throws UnsupportedException
EType
le
in interface EType
t
- the terminal to compare to
UnsupportedException
- in case of an unsupported operationEType.le(
de.dante.extex.interpreter.expression.EType)
public TBoolean lt(EType t) throws UnsupportedException
EType
lt
in interface EType
t
- the terminal to compare to
UnsupportedException
- in case of an unsupported operationEType.lt(
de.dante.extex.interpreter.expression.EType)
public EType multiply(EType t) throws CastException, UnsupportedException
EType
multiply
in interface EType
t
- the terminal to multiply
CastException
- in case of an error in casing the argument
UnsupportedException
- in case of an unsupported operationEType.multiply(
de.dante.extex.interpreter.expression.EType)
public TBoolean ne(EType t) throws UnsupportedException
EType
ne
in interface EType
t
- the terminal to compare to
UnsupportedException
- in case of an unsupported operationEType.ne(
de.dante.extex.interpreter.expression.EType)
public EType negate() throws UnsupportedException
EType
negate
in interface EType
UnsupportedException
- in case of an unsupported operationEType.negate()
public EType not() throws UnsupportedException
EType
not
in interface EType
UnsupportedException
- in case of an unsupported operationEType.not()
public EType or(EType t) throws CastException
EType
or
in interface EType
t
- the terminal to build the disjunction with
CastException
- in case of an error in casing the argumentEType.or(
de.dante.extex.interpreter.expression.EType)
public EType parse(java.lang.CharSequence sequence)
de.dante.extex.interpreter.expression.EType#parse(
java.lang.CharSequence)
public EType set(EType t) throws CastException
EType
set
in interface EType
t
- the terminal to build the conjunction with
CastException
- in case of an error in casing the argumentEType.set(
de.dante.extex.interpreter.expression.EType)
public void setValue(boolean value)
value
- the value to setpublic EType subtract(EType t) throws UnsupportedException
EType
subtract
in interface EType
t
- the terminal to subtract
UnsupportedException
- in case of an unsupported operationEType.subtract(
de.dante.extex.interpreter.expression.EType)
public java.lang.String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |