|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExpressionModel
Method Summary | |
---|---|
void |
addBinaryOperator(Operator operator,
int priority)
Add a binary operator |
void |
addExpressionElement(ExpressionElement expressionElement,
int priority)
Add expression element to the model. |
void |
addUnaryOperator(Operator operator)
Add unary operator to the model |
java.util.List |
getBinaryOperators(int priority)
Get the list of binary operator for a given priority. |
ExpressionElement |
getExpressionElement(int priority)
Get expression element for a given priority. |
ExpressionElement |
getExpressionElement(java.lang.String name)
Get expression element for a given name. |
int |
getMaxExpressionElementPriority()
Get the max element priority. |
int |
getMaxOperatorPriority()
Get the max binary operator priority. |
java.lang.String |
getName()
get the name of the expression model |
Operator |
getOperator(java.lang.String name)
Get the named operator. |
int |
getOperatorLevel(Operator operator)
Get the level associated to a given operator. |
java.util.List |
getUnaryOperators()
Get the list of unary operators. |
Method Detail |
---|
java.lang.String getName()
void addUnaryOperator(Operator operator) throws ModelException
operator
- operator to add
ModelException
- if operator is not an unary operatorvoid addBinaryOperator(Operator operator, int priority) throws ModelException
operator
- operator to addpriority
- operator priority (from 1 to ... depend of your model)
ModelException
- if operator is not a binary operatorvoid addExpressionElement(ExpressionElement expressionElement, int priority) throws ModelException
expressionElement
- element to add.priority
- order to manage element (from 1 to ...)
ModelException
- if priority is not consecutive to others priority.int getMaxOperatorPriority()
int getMaxExpressionElementPriority()
java.util.List getUnaryOperators()
java.util.List getBinaryOperators(int priority)
priority
- priority operator to get.
ExpressionElement getExpressionElement(int priority)
priority
- priority expression element to get.
null
if not found.ExpressionElement getExpressionElement(java.lang.String name)
name
- name of expression element to get.
null
if not found.Operator getOperator(java.lang.String name)
name
- name of the operator.
null
otherwise.int getOperatorLevel(Operator operator)
operator
- operator to get the level.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |