public interface Expression
Modifier and Type | Field and Description |
---|---|
static int |
EVAL_ADD |
static int |
EVAL_AND |
static int |
EVAL_DIV |
static int |
EVAL_MOD |
static int |
EVAL_MUL |
static int |
EVAL_NONE |
static int |
EVAL_OR |
static int |
EVAL_SUB |
static java.lang.Integer |
FALSE |
static java.lang.Integer |
TRUE |
Modifier and Type | Method and Description |
---|---|
java.lang.Number |
evaluate()
returns the value of the expression
|
int |
getOperation()
returns the operation id of the expression
|
java.lang.String |
getText()
returns the original text of the expression
|
boolean |
isNegative()
returns the isNegative flag of the expression
|
boolean |
isNumeric()
returns true if the expression is numeric or false otherwise
|
void |
negate()
sets the isNegative flag to true
|
void |
setOperation(int op)
sets the operation to the expression
|
int |
size()
returns total number of the items in the expression
|
static final int EVAL_NONE
static final int EVAL_ADD
static final int EVAL_SUB
static final int EVAL_MUL
static final int EVAL_DIV
static final int EVAL_MOD
static final int EVAL_AND
static final int EVAL_OR
static final java.lang.Integer TRUE
static final java.lang.Integer FALSE
java.lang.Number evaluate()
int getOperation()
void setOperation(int op)
int size()
boolean isNumeric()
boolean isNegative()
void negate()
java.lang.String getText()