public class AndOperator extends BinaryOperator
The implementation of the and operator
| Modifier and Type | Field and Description |
|---|---|
static AndOperator |
SINGLETON |
| Constructor and Description |
|---|
AndOperator()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Object |
apply(Object pLeft,
Object pRight)
Applies the operator to the given value
|
String |
getOperatorSymbol()
Returns the symbol representing the operator
|
boolean |
shouldCoerceToBoolean()
Returns true if the operator expects its arguments to be coerced
to Booleans.
|
boolean |
shouldEvaluate(Object pLeft)
Returns true if evaluation is necessary given the specified Left
value.
|
public static final AndOperator SINGLETON
public AndOperator()
public String getOperatorSymbol()
getOperatorSymbol in class BinaryOperatorpublic Object apply(Object pLeft, Object pRight) throws ELException
apply in class BinaryOperatorELExceptionpublic boolean shouldEvaluate(Object pLeft)
shouldEvaluate in class BinaryOperatorpublic boolean shouldCoerceToBoolean()
shouldCoerceToBoolean in class BinaryOperatorCopyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.