|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcsheets.core.formula.lang.Percent
public class Percent
A percent operator (division by 100).
| Constructor Summary | |
|---|---|
Percent()
Creates a new percent operator. |
|
| Method Summary | |
|---|---|
Value |
applyTo(Expression operand)
Returns the operand's value divided by 100. |
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 Percent()
| 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 | |||||||||