public class ConcatExpression extends Object implements Expression
| Constructor and Description |
|---|
ConcatExpression(Expression... expressions)
Creates a new string concatenation for the given expressions
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Expression expr) |
Expression |
copy()
Creates a deep copy of the expression which can be modified without affecting the original expression.
|
Object |
eval(LocalRenderContext ctx)
Evaluates the expression into an object using the given context.
|
Class<?> |
getType()
Returns the Java class of the objects yielded by this expression.
|
boolean |
isConstant()
Determines if the expression is constant.
|
Expression |
propagateVisitor(ExpressionVisitor visitor)
Visits all child nodes and then the node itself.
|
Expression |
reduce()
Tries to optimize the expression by pre-concatenating adjacent constant operands.
|
String |
toString() |
public ConcatExpression(Expression... expressions)
expressions - the list of expressions to evaluate and concatenate.public void add(Expression expr)
public Expression copy()
Expressioncopy in interface Expressionpublic Expression propagateVisitor(ExpressionVisitor visitor)
ExpressionpropagateVisitor in interface Expressionvisitor - the visitor to invoke for all child nodes and on the node itselfpublic Expression reduce()
reduce in interface Expressionpublic boolean isConstant()
ExpressionisConstant in interface Expressionpublic Object eval(LocalRenderContext ctx)
Expressioneval in interface Expressionctx - the current rendering contextpublic Class<?> getType()
ExpressiongetType in interface ExpressionCopyright © 2018. All rights reserved.