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, propagateVisitor
public AndOperation(Expression leftExpression, Expression rightExpression)
leftExpression
- the left operandrightExpression
- the right operandpublic Expression reduce()
Expression
reduce
in interface Expression
reduce
in class BooleanOperation
public boolean isConstant()
Expression
public Expression copy()
Expression
public Object eval(LocalRenderContext ctx)
Expression
ctx
- the current rendering contextCopyright © 2018. All rights reserved.