|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.esper.client.soda.ExpressionBase
net.esper.client.soda.ArithmaticExpression
public class ArithmaticExpression
Arithmatic expression for addition, subtraction, multiplication, division and modulo.
| Constructor Summary | |
|---|---|
ArithmaticExpression(Expression left,
String operator,
Expression right)
Ctor. |
|
ArithmaticExpression(String operator)
Ctor. |
|
| Method Summary | |
|---|---|
ArithmaticExpression |
add(Expression expression)
Add an expression to include in the computation. |
ArithmaticExpression |
add(Object object)
Add a constant to include in the computation. |
ArithmaticExpression |
add(String propertyName)
Add a property to include in the computation. |
String |
getOperator()
Returns the arithmatic operator. |
void |
toEQL(StringWriter writer)
Renders the expressions and all it's child expression, in full tree depth, as a string in language syntax. |
| Methods inherited from class net.esper.client.soda.ExpressionBase |
|---|
addChild, getChildren |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArithmaticExpression(String operator)
operator - can be any of '-', '+', '*', '/' or '%' (modulo).
public ArithmaticExpression(Expression left,
String operator,
Expression right)
left - the left hand sideoperator - can be any of '-', '+', '*', '/' or '%' (modulo).right - the right hand side| Method Detail |
|---|
public String getOperator()
public ArithmaticExpression add(Object object)
object - constant to add
public ArithmaticExpression add(Expression expression)
expression - to add
public ArithmaticExpression add(String propertyName)
propertyName - is the name of the property
public void toEQL(StringWriter writer)
Expression
writer - is the output to use
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||