|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcsheets.core.formula.lang.Negator
public class Negator
A negator (negative sign).
| Constructor Summary | |
|---|---|
Negator()
Creates a new negator. |
|
| Method Summary | |
|---|---|
Value |
applyTo(Expression operand)
Returns the negation of the operand's value. |
String |
getIdentifier()
Returns the operator's string identirifer. |
Value.Type |
getOperandValueType()
Returns the type of value that the operator's operands can have. |
boolean |
isPrefix()
Returns whether the operator is a prefix operator, i.e. it appears before its operand. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Negator()
| Method Detail |
|---|
public Value applyTo(Expression operand)
throws IllegalValueTypeException
applyTo in interface UnaryOperatorIllegalValueTypeException - if the value of the operand is not numericpublic String getIdentifier()
Operator
getIdentifier in interface Operatorpublic boolean isPrefix()
UnaryOperator
isPrefix in interface UnaryOperatorpublic Value.Type getOperandValueType()
Operator
getOperandValueType in interface Operatorpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||