|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.expression4j.basic.operatorimpl.complex.OperatorUnaryMinusComplex
public class OperatorUnaryMinusComplex
Constructor Summary | |
---|---|
OperatorUnaryMinusComplex()
|
Method Summary | |
---|---|
MathematicalElement |
compute(MathematicalElement leftElement,
MathematicalElement rightElement)
Set the operator to the given element. |
int |
getLeftOperandeType()
Get the left operande managed by this operator implementation. |
java.lang.String |
getOperatorName()
Get the operator name associated to this operator implementation. |
int |
getRightOperandeType()
Get the right operande managed by this operator implementation. |
boolean |
isUnaryOperator()
Tell if operator is an unary or bynary operator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OperatorUnaryMinusComplex()
Method Detail |
---|
public boolean isUnaryOperator()
OperatorImpl
isUnaryOperator
in interface OperatorImpl
true
if operator is unary.public int getLeftOperandeType()
OperatorImpl
getLeftOperandeType
in interface OperatorImpl
public int getRightOperandeType()
OperatorImpl
getRightOperandeType
in interface OperatorImpl
public java.lang.String getOperatorName()
OperatorImpl
getOperatorName
in interface OperatorImpl
public MathematicalElement compute(MathematicalElement leftElement, MathematicalElement rightElement) throws EvalException
OperatorImpl
compute
in interface OperatorImpl
leftElement
- left element for operator.rightElement
- right element for operator.
EvalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |