public class DotExpressionItem extends Object implements Serializable
Each item represent an individual chain item and may either be a method name with method parameters, or a (nested) property name typically with an empty list of parameters or for mapped properties a non-empty list of parameters.
Type | Property and Description |
---|---|
boolean |
is
Gets the value of the property property.
|
Constructor and Description |
---|
DotExpressionItem()
Ctor.
|
DotExpressionItem(String name,
List<Expression> parameters,
boolean isProperty)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns method name or nested property name.
|
List<Expression> |
getParameters()
Returns method parameters or parameters for mapped properties or empty list if this item represents a simple nested property.
|
boolean |
isProperty()
Gets the value of the property property.
|
protected static void |
render(List<DotExpressionItem> chain,
StringWriter writer,
boolean prefixDot)
Render to EPL.
|
void |
setName(String name)
Sets the method name or nested property name.
|
void |
setParameters(List<Expression> parameters)
Sets method parameters or parameters for mapped properties or empty list if this item represents a simple nested property.
|
void |
setProperty(boolean property)
Set to true if this dot-item is a property name.
|
public DotExpressionItem()
public DotExpressionItem(String name, List<Expression> parameters, boolean isProperty)
name
- the property (or nested property) or method nameparameters
- are optional and should only be provided if this chain item is a method;
Parameters are expressions for parameters to the method (use only for methods and not for properties unless mapped property).isProperty
- true if this is a nested property namepublic String getName()
public void setName(String name)
name
- method name or nested property name to setpublic List<Expression> getParameters()
public void setParameters(List<Expression> parameters)
parameters
- expressions to setpublic boolean isProperty()
public void setProperty(boolean property)
property
- true for property, false for methodprotected static void render(List<DotExpressionItem> chain, StringWriter writer, boolean prefixDot)
chain
- chain to renderwriter
- writer to output toprefixDot
- indicator whether to prefix with "."