public class OrOperator extends BinaryOperator
The implementation of the or operator
| Modifier and Type | Field and Description |
|---|---|
static OrOperator |
SINGLETON |
| Constructor and Description |
|---|
OrOperator()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Object |
apply(Object pLeft,
Object pRight,
Object pContext,
Logger pLogger)
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 OrOperator SINGLETON
public String getOperatorSymbol()
getOperatorSymbol in class BinaryOperatorpublic Object apply(Object pLeft, Object pRight, Object pContext, Logger pLogger) throws ELException
apply in class BinaryOperatorELExceptionpublic boolean shouldEvaluate(Object pLeft)
shouldEvaluate in class BinaryOperatorpublic boolean shouldCoerceToBoolean()
shouldCoerceToBoolean in class BinaryOperatorCopyright © 2017 JBoss, a division of Red Hat, Inc.. All Rights Reserved.