public class CoalesceExpression extends ExpressionBase
Constructor and Description |
---|
CoalesceExpression()
Ctor - for use to create an expression tree, without child expression.
|
CoalesceExpression(Expression exprOne,
Expression exprTwo,
Expression... moreExpressions)
Ctor.
|
CoalesceExpression(String propertyOne,
String propertyTwo,
String... moreProperties)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
CoalesceExpression |
add(Expression expression)
Add an expression to include in the computation.
|
CoalesceExpression |
add(Object object)
Add a constant to include in the computation.
|
CoalesceExpression |
add(String propertyName)
Add a property to include in the computation.
|
ExpressionPrecedenceEnum |
getPrecedence()
Returns precedence.
|
void |
toPrecedenceFreeEPL(StringWriter writer)
Renders the expressions and all it's child expression, in full tree depth, as a string in
language syntax.
|
addChild, getChildren, getTreeObjectName, renderAggregation, setChildren, setTreeObjectName, toEPL, toPrecedenceFreeEPL, toPrecedenceFreeEPL
public CoalesceExpression()
Use add methods to add child expressions to acts upon.
public CoalesceExpression(String propertyOne, String propertyTwo, String... moreProperties)
propertyOne
- the first property in the expressionpropertyTwo
- the second property in the expressionmoreProperties
- optional more properties in the expressionpublic CoalesceExpression(Expression exprOne, Expression exprTwo, Expression... moreExpressions)
exprOne
- provides the first value in the expressionexprTwo
- provides the second value in the expressionmoreExpressions
- optional more expressions that are part of the functionpublic CoalesceExpression add(Object object)
object
- constant to addpublic CoalesceExpression add(Expression expression)
expression
- to addpublic CoalesceExpression add(String propertyName)
propertyName
- is the name of the propertypublic ExpressionPrecedenceEnum getPrecedence()
Expression
public void toPrecedenceFreeEPL(StringWriter writer)
ExpressionBase
toPrecedenceFreeEPL
in class ExpressionBase
writer
- is the output to use