public class DotExpression extends ExpressionBase
Constructor and Description |
---|
DotExpression()
Ctor.
|
DotExpression(Expression innerExpression)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(DotExpressionItem item)
Add a method to the chain of methods after the dot.
|
void |
add(java.lang.String methodName,
java.util.List<Expression> parameters)
Add a method to the chain of methods after the dot.
|
void |
add(java.lang.String name,
java.util.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.
|
java.util.List<DotExpressionItem> |
getChain()
Returns the method chain of all methods after the dot.
|
ExpressionPrecedenceEnum |
getPrecedence()
Returns precedence.
|
void |
toPrecedenceFreeEPL(java.io.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(DotExpressionItem item)
item
- item to addpublic void add(java.lang.String methodName, java.util.List<Expression> parameters)
methodName
- to addparameters
- parameters to methodpublic void add(java.lang.String name, java.util.List<Expression> parameters, boolean isProperty)
name
- nameparameters
- parameter expressionsisProperty
- property flagpublic java.util.List<DotExpressionItem> getChain()
public ExpressionPrecedenceEnum getPrecedence()
Expression
public void toPrecedenceFreeEPL(java.io.StringWriter writer)
ExpressionBase
toPrecedenceFreeEPL
in class ExpressionBase
writer
- is the output to use