public class AndOperation extends BooleanOperation
leftExpression, rightExpression| Constructor and Description |
|---|
AndOperation(Expression leftExpression,
Expression rightExpression)
Creates a new and operation for the given operands.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
isConstant()
Determines if the expression is constant.
|
Expression |
reduce()
Reduces and optimizes the expression if possible.
|
String |
toString() |
eval, getType, propagateVisitorpublic AndOperation(Expression leftExpression, Expression rightExpression)
leftExpression - the left operandrightExpression - the right operandpublic Expression reduce()
Expressionreduce in interface Expressionreduce in class BooleanOperationpublic boolean isConstant()
Expressionpublic Expression copy()
Expressionpublic Object eval(LocalRenderContext ctx)
Expressionctx - the current rendering contextCopyright © 2018. All rights reserved.