JComponentPack 1.5.0

com.zfqjava.formula
Interface Formula

All Known Implementing Classes:
AbstractFormula, CellFormula

public interface Formula


Method Summary
 Object evaluate(FormulaContext context)
          Evaluates the formula.
 Object getValue()
          Returns the value after the last evaluate.
 Formula normalize(FormulaContext context)
          Normalize this formula with the specified FormulaContext.
 void setException(Exception e)
          Sets the exception when evaluate the formula
 String toString()
          Returns the string the this formula.
 String toString(FormulaContext context)
          Returns the string the this formula with the specified FormulaContext.
 

Method Detail

evaluate

Object evaluate(FormulaContext context)
Evaluates the formula.

Parameters:
context - the formula context
Returns:
the value

getValue

Object getValue()
Returns the value after the last evaluate.

Returns:
the value

toString

String toString()
Returns the string the this formula.

Overrides:
toString in class Object

toString

String toString(FormulaContext context)
Returns the string the this formula with the specified FormulaContext.

Since:
JDataGrid 2.0

normalize

Formula normalize(FormulaContext context)
Normalize this formula with the specified FormulaContext.

Since:
JDataGrid 2.0

setException

void setException(Exception e)
Sets the exception when evaluate the formula

Since:
JDataGrid 2.0

JComponentPack 1.5.0

Send your Feedback
JComponentPack 1.5.0
Copyright © 2001-2007 Extreme Component, Inc. All rights reserved.