public class DotExpression extends ExpressionBase
Constructor and Description |
---|
DotExpression()
Ctor.
|
DotExpression(Expression innerExpression)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(String methodName,
List<Expression> parameters)
Add a method to the chain of methods after the dot.
|
void |
add(String methodName,
List<Expression> parameters,
boolean isProperty)
Add a method to the chain of methods after the dot, indicating the this segment is a property and does not need parenthesis and won't have paramaters.
|
List<DotExpressionItem> |
getChain()
Returns the method chain of all methods after the dot.
|
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 DotExpression()
public DotExpression(Expression innerExpression)
innerExpression
- the expression in parenthesispublic void add(String methodName, List<Expression> parameters)
methodName
- to addparameters
- parameters to methodpublic void add(String methodName, List<Expression> parameters, boolean isProperty)
methodName
- method nameparameters
- parameter expressionsisProperty
- property flagpublic List<DotExpressionItem> getChain()
public ExpressionPrecedenceEnum getPrecedence()
Expression
public void toPrecedenceFreeEPL(StringWriter writer)
ExpressionBase
toPrecedenceFreeEPL
in class ExpressionBase
writer
- is the output to use