|
Spreadsheet Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--corpus.excel.Component | +--corpus.excel.FormulaComponent | +--corpus.excel.Function
Used to store the internal representation of a Function.
FunctionParser
,
Serialized FormField Summary |
Fields inherited from class corpus.excel.FormulaComponent |
formula |
Fields inherited from class corpus.excel.Component |
haltOnErrors |
Constructor Summary | |
Function(java.lang.String name)
|
|
Function(java.lang.String name,
java.lang.String argument)
|
Method Summary | |
boolean |
compare(Function f)
|
static int[] |
countCatagory(Function[] funs)
Takes an array of functions and counts how many occupy each of the different categories. |
java.lang.String |
getArguments()
|
java.lang.String |
getCatagory()
Figures out which catagory this function belongs to. |
java.util.Vector |
getElements()
|
java.lang.String |
getName()
|
boolean |
isDATABASE()
|
boolean |
isDATEANDTIME()
|
boolean |
isENGINEERING()
|
boolean |
isFINANCIAL()
|
boolean |
isINFORMATION()
|
boolean |
isLOGICAL()
|
boolean |
isLOOKUPANDREFERENCE()
|
boolean |
isMATHANDTRIG()
|
boolean |
isSTATISTICAL()
|
boolean |
isTEXT()
|
int |
length()
Unlike of parseOneElement() type parsers, this one must perform multiple matches. |
static void |
main(java.lang.String[] args)
|
javax.swing.tree.DefaultMutableTreeNode |
parseTree()
Creates a parseTree for this FormulaComponent and any of its sub components. |
void |
setElements(java.util.Vector elements)
Sets the sub elements to those parsed by the FormulaParser. |
static java.util.Vector[] |
sortCatagory(Function[] funs)
Takes an array of functions and sorts them into an array of vectors based on catagory. |
java.lang.String |
toHTMLString()
Converts information about this component into an HTML formatted String. |
java.lang.String |
toString()
THE LENGTH OF THE RETURNED STRING SHOULD MATCH THE LENGTH OF THE PARSED INPUT! |
Methods inherited from class corpus.excel.FormulaComponent |
getReferingFormula |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Function(java.lang.String name)
public Function(java.lang.String name, java.lang.String argument)
Method Detail |
public void setElements(java.util.Vector elements)
public java.util.Vector getElements()
public java.lang.String toString()
toString
in class Component
public java.lang.String toHTMLString()
toHTMLString
in class Component
public javax.swing.tree.DefaultMutableTreeNode parseTree()
parseTree
in class FormulaComponent
public java.lang.String getName()
public java.lang.String getArguments()
public boolean compare(Function f)
public java.lang.String getCatagory()
public static int[] countCatagory(Function[] funs)
public static java.util.Vector[] sortCatagory(Function[] funs)
public boolean isLOOKUPANDREFERENCE()
public boolean isINFORMATION()
public boolean isFINANCIAL()
public boolean isENGINEERING()
public boolean isDATEANDTIME()
public boolean isDATABASE()
public boolean isMATHANDTRIG()
public boolean isSTATISTICAL()
public boolean isTEXT()
public boolean isLOGICAL()
public int length()
public static void main(java.lang.String[] args) throws gnu.regexp.REException
gnu.regexp.REException
|
Spreadsheet Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |