Package | Description |
---|---|
csheets.core |
Provides the core classes for the application's data model, i.e. workbooks,
spreadsheets, cells, addresses and values.
|
csheets.core.formula |
Provides classes for representing formulas.
|
csheets.core.formula.lang |
Provides the operators, functions and references supported by the formula
language.
|
Modifier and Type | Method and Description |
---|---|
Boolean |
Value.toBoolean()
Returns a boolean representation of the value.
|
Date |
Value.toDate()
Returns a date representation of the value.
|
double |
Value.toDouble()
Returns a primitive numeric representation of the value.
|
Throwable |
Value.toError()
Returns an error representation of the value.
|
Value[][] |
Value.toMatrix()
Returns a matrix representation of the value.
|
Number |
Value.toNumber()
Returns a numeric representation of the value.
|
String |
Value.toText()
Returns a text representation of the value.
|
Modifier and Type | Method and Description |
---|---|
Value |
UnaryOperator.applyTo(Expression operand)
Applies the operator to the given operand and returns the result.
|
Value |
Function.applyTo(Expression[] args)
Invokes the function using the given arguments and returns the result.
|
Value |
BinaryOperator.applyTo(Expression leftOperand,
Expression rightOperand)
Applies the operator to the given operands and returns the result.
|
Value |
UnaryOperation.evaluate() |
Value |
FunctionCall.evaluate() |
Value |
Formula.evaluate() |
Value |
Expression.evaluate()
Evaluates the expression and returns the result.
|
Value |
BinaryOperation.evaluate() |
Modifier and Type | Method and Description |
---|---|
Value |
Percent.applyTo(Expression operand)
Returns the operand's value divided by 100.
|
Value |
Negator.applyTo(Expression operand)
Returns the negation of the operand's value.
|
Value |
Whiledo.applyTo(Expression[] args) |
Value |
True.applyTo(Expression[] arguments) |
Value |
Sum.applyTo(Expression[] arguments) |
Value |
Or.applyTo(Expression[] arguments) |
Value |
NumericFunction.applyTo(Expression[] arguments) |
Value |
Not.applyTo(Expression[] arguments) |
Value |
If.applyTo(Expression[] arguments) |
Value |
False.applyTo(Expression[] arguments) |
Value |
Factorial.applyTo(Expression[] arguments) |
Value |
Eval.applyTo(Expression[] args) |
Value |
Dowhile.applyTo(Expression[] args) |
Value |
Do.applyTo(Expression[] arguments) |
Value |
Count.applyTo(Expression[] arguments) |
Value |
Average.applyTo(Expression[] arguments) |
Value |
And.applyTo(Expression[] arguments) |
Value |
Subtracter.applyTo(Expression leftOperand,
Expression rightOperand) |
Value |
RelationalOperator.applyTo(Expression leftOperand,
Expression rightOperand) |
Value |
Multiplier.applyTo(Expression leftOperand,
Expression rightOperand) |
Value |
Exponentiator.applyTo(Expression leftOperand,
Expression rightOperand) |
Value |
Divider.applyTo(Expression leftOperand,
Expression rightOperand) |
Value |
Concatenator.applyTo(Expression leftOperand,
Expression rightOperand) |
Value |
Attribution.applyTo(Expression leftOperand,
Expression rightOperand)
applies attribution given a right and left operand
|
Value |
Adder.applyTo(Expression leftOperand,
Expression rightOperand) |