|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dante.extex.interpreter.expression.term.Accumulator
This data type contains an accumulator which can contain values of different kinds.
Constructor Summary | |
Accumulator()
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. |
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. |
EType |
getValue()
Getter for value. |
TBoolean |
gt(EType t)
Compare the current instance with an another value for greater than. |
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 |
set(EType t)
Assign a new value from an additional argument. |
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 Accumulator()
Method Detail |
public EType add(EType t) throws CastException, UnsupportedException
EType
add
in interface EType
t
- the terminal to add
CastException
- in case of an error in casing the argument
UnsupportedException
- in case of an unsupported operationEType.add(
de.dante.extex.interpreter.expression.EType)
public EType and(EType t) throws CastException, UnsupportedException
EType
and
in interface EType
t
- the terminal to build the conjunction with
UnsupportedException
- in case of an unsupported operation
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, ArithmeticOverflowException
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 operation
ArithmeticOverflowException
- in case of a division by zeroEType.divide(
de.dante.extex.interpreter.expression.EType)
public TBoolean eq(EType t) throws CastException, UnsupportedException
EType
eq
in interface EType
t
- the terminal to compare to
CastException
- in case of an error in casing the argument
UnsupportedException
- in case of an unsupported operationEType.eq(
de.dante.extex.interpreter.expression.EType)
public TBoolean ge(EType t) throws CastException, UnsupportedException
EType
ge
in interface EType
t
- the terminal to compare to
CastException
- in case of an error in casing the argument
UnsupportedException
- in case of an unsupported operationEType.ge(
de.dante.extex.interpreter.expression.EType)
public EType getValue()
public TBoolean gt(EType t) throws CastException, UnsupportedException
EType
gt
in interface EType
t
- the terminal to compare to
CastException
- in case of an error in casing the argument
UnsupportedException
- in case of an unsupported operationEType.gt(
de.dante.extex.interpreter.expression.EType)
public TBoolean le(EType t) throws CastException, UnsupportedException
EType
le
in interface EType
t
- the terminal to compare to
CastException
- in case of an error in casing the argument
UnsupportedException
- in case of an unsupported operationEType.le(
de.dante.extex.interpreter.expression.EType)
public TBoolean lt(EType t) throws CastException, UnsupportedException
EType
lt
in interface EType
t
- the terminal to compare to
UnsupportedException
- in case of an unsupported operation
CastException
- in case of an error in casing the argumentEType.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 CastException, UnsupportedException
EType
ne
in interface EType
t
- the terminal to compare to
UnsupportedException
- in case of an unsupported operation
CastException
- in case of an error in casing the argumentEType.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()
EType
not
in interface EType
EType.not()
public EType or(EType t) throws CastException, UnsupportedException
EType
or
in interface EType
t
- the terminal to build the disjunction with
UnsupportedException
- in case of an unsupported operation
CastException
- in case of an error in casing the argumentEType.or(
de.dante.extex.interpreter.expression.EType)
public EType set(EType t)
EType
set
in interface EType
t
- the terminal to build the conjunction with
EType.set(
de.dante.extex.interpreter.expression.EType)
public EType subtract(EType t) throws CastException, UnsupportedException
EType
subtract
in interface EType
t
- the terminal to subtract
UnsupportedException
- in case of an unsupported operation
CastException
- in case of an error in casing the argumentEType.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 |