Package | Description |
---|---|
csheets.core.formula |
Provides classes for representing formulas.
|
csheets.core.formula.compiler |
Provides classes for compiling formulas from strings.
|
csheets.core.formula.lang |
Provides the operators, functions and references supported by the formula
language.
|
csheets.core.formula.util |
Provides utilities for performing operations on formulas.
|
csheets.ext.assertion |
Provides support for user-specified and system-generated assertions.
|
csheets.ext.test |
Provides support for test cases and test case parameters.
|
Modifier and Type | Interface and Description |
---|---|
interface |
Reference
A reference to one or more cells in a spreadsheet.
|
Modifier and Type | Class and Description |
---|---|
class |
BinaryOperation
A binary operation in a formula.
|
class |
Formula
A formula in a cell.
|
class |
FunctionCall
A call to a function in a formula.
|
class |
Literal
A literal value in a formula.
|
class |
Operation<O extends Operator>
An operation in a formula.
|
class |
UnaryOperation
A unary operation in a formula.
|
Modifier and Type | Method and Description |
---|---|
Expression[] |
FunctionCall.getArguments()
Returns the arguments passed to the function.
|
Expression |
Formula.getExpression()
Returns the expression in the formula.
|
Expression |
BinaryOperation.getLeftOperand()
Returns the left(first) operand.
|
Expression |
UnaryOperation.getOperand()
Returns the operand.
|
Expression |
BinaryOperation.getRightOperand()
Returns the right(second) operand.
|
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.
|
Constructor and Description |
---|
BinaryOperation(Expression leftOperand,
BinaryOperator operator,
Expression rightOperand)
Creates a new binary operation.
|
Formula(Cell cell,
Expression expression)
Creates a new formula.
|
FunctionCall(Function function,
Expression... args)
Creates a new function call.
|
UnaryOperation(UnaryOperator operator,
Expression operand)
Creates a new unary operation.
|
Modifier and Type | Method and Description |
---|---|
Expression |
NumberSignExpressionCompiler.compile(Cell cell,
String source) |
Expression |
ExpressionCompiler.compile(Cell cell,
String source)
Compiles an expression from the given string.
|
Expression |
ExcelExpressionCompiler.compile(Cell cell,
String source) |
protected Expression |
NumberSignExpressionCompiler.convert(Cell cell,
antlr.collections.AST node)
Converts the given ANTLR AST to an expression.
|
protected Expression |
ExcelExpressionCompiler.convert(Cell cell,
antlr.collections.AST node)
Converts the given ANTLR AST to an expression.
|
Expression |
IllegalFunctionCallException.getArgument()
Returns the argument that failed to match.
|
Constructor and Description |
---|
IllegalFunctionCallException(Function function,
FunctionParameter parameter,
Expression argument)
Creates a new function call exception.
|
Modifier and Type | Class and Description |
---|---|
class |
CellReference
A reference to a cell in a spreadsheet.
|
class |
ReferenceOperation
A binary reference operation in a formula.
|
class |
RelationalOperatorImpl
This class is a concrete RelationalOperatior to allow operations with :=
|
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 |
RangeReference.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) |
Constructor and Description |
---|
DivisionByZeroException(Expression expression)
Creates a new division-by-zero exception.
|
Modifier and Type | Method and Description |
---|---|
Expression |
ReferenceTransposer.getExpression(Expression expression)
Returns a transposed copy of the given expression.
|
Expression |
ExpressionBuilder.getExpression(Expression expression)
Returns a copy of the given expression.
|
Expression |
ExpressionBuilder.visitBinaryOperation(BinaryOperation operation) |
Expression |
ExpressionBuilder.visitFunctionCall(FunctionCall call) |
Expression |
ExpressionBuilder.visitLiteral(Literal literal) |
Expression |
ReferenceTransposer.visitReference(Reference reference)
Transposes the reference.
|
Expression |
ExpressionBuilder.visitReference(Reference reference) |
Expression |
ExpressionBuilder.visitUnaryOperation(UnaryOperation operation) |
Modifier and Type | Method and Description |
---|---|
Expression |
ReferenceTransposer.getExpression(Expression expression)
Returns a transposed copy of the given expression.
|
Expression |
ExpressionBuilder.getExpression(Expression expression)
Returns a copy of the given expression.
|
SortedSet<Reference> |
ReferenceFetcher.getReferences(Expression expression)
Traverses the given expression and returns the references that were found.
|
Modifier and Type | Method and Description |
---|---|
MultiInterval |
AssertionArithmeticVisitor.getResult(Expression expression)
Retrieve the result of the arithmetic calculations performed by this visitor.
|
Modifier and Type | Class and Description |
---|---|
class |
TestCase
Contains the information for a single test case, i.e. a single test case
parameter for each of the precedents.
|
class |
TestCaseParam
A class holding information about a Test Case Parameter.
|
Modifier and Type | Method and Description |
---|---|
Expression |
TestCaseBuilder.visitReference(Reference reference)
Replaces the reference with the appropriate test case parameter(s).
|