|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.zfqjava.formula.FormulaFactory
com.zfqjava.formula.CellFormulaFactory
public class CellFormulaFactory
| Constructor Summary | |
|---|---|
CellFormulaFactory()
|
|
| Method Summary | |
|---|---|
void |
addFunction(Function function)
Adds a function. |
Formula |
createFormula(String s)
Creates a formula object for the specified string. |
Formula |
createFormula(String s,
FormulaContext context)
Creates a formula object for the specified string with the specified FormulaContext. |
Formula |
createFormula(String s,
FormulaContext context,
boolean allowErrorFormula)
Creates a formula object for the specified string with the specified FormulaContext. |
FormulaContext |
createFormulaContext()
Creates the default FormulaContext, default return null |
String[] |
getAllFunctionNames()
Returns all supported function names. |
String[] |
getCellFunctionNamesByType(CellFunctionType type)
Returns all supported cell function names by the specified type. |
Function |
getFunction(String name)
Returns the function for the specified name. |
CellFunctionType[] |
getSupportedCellFunctionTypes()
Returns all supported cell function types. |
void |
removeFunction(String name)
Removes a function. |
void |
setArgumentSeparatorChar(char argumentSeparatorChar)
|
| Methods inherited from class com.zfqjava.formula.FormulaFactory |
|---|
getArgumentSeparatorChar, getDefault, getDefaultArgumentSeparatorChar, getDefaultStringEscapeChar, getStringEscapeChar, setDefault, setDefaultArgumentSeparatorChar, setDefaultStringEscapeChar, setStringEscapeChar |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CellFormulaFactory()
| Method Detail |
|---|
public Formula createFormula(String s)
throws ParseException
FormulaFactory
createFormula in class FormulaFactorys - the formula string
ParseException
public Formula createFormula(String s,
FormulaContext context)
throws ParseException
FormulaFactoryFormulaContext.
createFormula in class FormulaFactorys - the formula stringcontext - the formula context
ParseException
public Formula createFormula(String s,
FormulaContext context,
boolean allowErrorFormula)
throws ParseException
FormulaFactoryFormulaContext.
createFormula in class FormulaFactorys - the formula stringcontext - the formula contextallowErrorFormula - allow create the error formula
ParseExceptionpublic void addFunction(Function function)
FormulaFactory
addFunction in class FormulaFactoryfunction - the functionpublic void removeFunction(String name)
FormulaFactory
removeFunction in class FormulaFactoryname - the function namepublic Function getFunction(String name)
FormulaFactory
getFunction in class FormulaFactoryname - the function name
public String[] getAllFunctionNames()
FormulaFactory
getAllFunctionNames in class FormulaFactorypublic CellFunctionType[] getSupportedCellFunctionTypes()
public String[] getCellFunctionNamesByType(CellFunctionType type)
type - the specified type
public void setArgumentSeparatorChar(char argumentSeparatorChar)
setArgumentSeparatorChar in class FormulaFactorypublic FormulaContext createFormulaContext()
FormulaFactory
createFormulaContext in class FormulaFactory
|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||