|
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.Operator
Used to store the internal representation of a Operator.
An operator combines terms and produces a result. In Excel, there are many predefined operators that support both mathematical and logical operations.
When you combine several operators into a single formula, Microsoft Excel performs the operations in the following order:
Field Summary | |
static int |
CARET
|
static int |
COMPARISON
|
static int |
CONCATIONATION
|
static int |
DIVIDE
|
static int |
EXPONENT
|
static int |
MINUS
|
static int |
MODULO
|
static int |
PLUS
|
static int |
TIMES
|
int |
type
|
Fields inherited from class corpus.excel.FormulaComponent |
formula |
Fields inherited from class corpus.excel.Component |
haltOnErrors |
Constructor Summary | |
Operator(java.lang.String operator)
|
Method Summary | |
int |
getType()
returns the type of this operator |
static Operator |
highestPrecedence(java.util.Vector operators)
Works through the input vector and returns the first highest precedent operator found. |
boolean |
ifUnaryOperator()
A unary operator is an operator that requires only one term. |
boolean |
isBinaryOperator()
A binary operator is an operator that requires two terms. |
boolean |
isNegative()
|
int |
length()
|
static void |
main(java.lang.String[] args)
|
void |
setNegative()
|
void |
setSubtraction()
|
java.lang.String |
toHTMLString()
Converts information about this component into an HTML formatted String. |
java.lang.String |
toString()
Converts information about this component into a String. |
Methods inherited from class corpus.excel.FormulaComponent |
getReferingFormula, parseTree |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int PLUS
public static final int MINUS
public static final int TIMES
public static final int DIVIDE
public static final int MODULO
public static final int EXPONENT
public static final int COMPARISON
public static final int CONCATIONATION
public static final int CARET
public int type
Constructor Detail |
public Operator(java.lang.String operator)
Method Detail |
public void setNegative()
public void setSubtraction()
public boolean isNegative()
public int getType()
public boolean isBinaryOperator()
public boolean ifUnaryOperator()
public java.lang.String toString()
Component
toString
in class Component
public java.lang.String toHTMLString()
toHTMLString
in class Component
public static Operator highestPrecedence(java.util.Vector operators)
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 |