|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.client.soda.ExpressionBase
com.espertech.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 |
toEPL(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 com.espertech.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 sideMethod 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 toEPL(StringWriter writer)
Expression
writer
- is the output to use
|
© 2007 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |