net.sf.jett.formula
Class Formula

java.lang.Object
  extended by net.sf.jett.formula.Formula

public class Formula
extends java.lang.Object

A Formula represents an Excel-like formula inside "$[" and "]" delimiters.

Author:
Randy Gettman

Field Summary
static java.lang.String BEGIN_FORMULA
          The beginning delimiter for a Formula.
static java.lang.String END_FORMULA
          The ending delimiter for a Formula.
 
Constructor Summary
Formula(java.lang.String formulaText, java.util.List<CellRef> cellRefs)
          Creates a Formula with the given formula text and the given List of CellRefs.
 
Method Summary
 java.util.List<CellRef> getCellRefs()
          Returns the List of CellRefs.
 java.lang.String getFormulaText()
          Returns the formula text.
 java.lang.String toString()
          Returns the string representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BEGIN_FORMULA

public static final java.lang.String BEGIN_FORMULA
The beginning delimiter for a Formula.

See Also:
Constant Field Values

END_FORMULA

public static final java.lang.String END_FORMULA
The ending delimiter for a Formula.

See Also:
Constant Field Values
Constructor Detail

Formula

public Formula(java.lang.String formulaText,
               java.util.List<CellRef> cellRefs)
Creates a Formula with the given formula text and the given List of CellRefs.

Parameters:
formulaText - The formula text.
cellRefs - A List of CellRefs.
Method Detail

getFormulaText

public java.lang.String getFormulaText()
Returns the formula text.

Returns:
The formula text.

getCellRefs

public java.util.List<CellRef> getCellRefs()
Returns the List of CellRefs.

Returns:
The List of CellRefs.

toString

public java.lang.String toString()
Returns the string representation.

Overrides:
toString in class java.lang.Object
Returns:
The string representation.


Copyright © 2012-2013 Jett Team. All Rights Reserved.