csheets.core.formula
Class Operation<O extends Operator>

java.lang.Object
  extended by csheets.core.formula.Operation<O>
All Implemented Interfaces:
Expression, Serializable
Direct Known Subclasses:
BinaryOperation, UnaryOperation

public abstract class Operation<O extends Operator>
extends Object
implements Expression

An operation in a formula.

Author:
Einar Pehrson
See Also:
Serialized Form

Field Summary
protected  O operator
          The operator
 
Constructor Summary
Operation(O operator)
          Creates a new operation.
 
Method Summary
 O getOperator()
          Returns the operator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface csheets.core.formula.Expression
accept, evaluate
 

Field Detail

operator

protected O extends Operator operator
The operator

Constructor Detail

Operation

public Operation(O operator)
Creates a new operation.

Parameters:
operator - the (n-ary) operator
Method Detail

getOperator

public O getOperator()
Returns the operator.

Returns:
the operator.