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,
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 AndOperator SINGLETON
public String getOperatorSymbol()
getOperatorSymbol
in class BinaryOperator
public Object apply(Object pLeft, Object pRight, Object pContext, Logger pLogger) throws ELException
apply
in class BinaryOperator
ELException
public boolean shouldEvaluate(Object pLeft)
shouldEvaluate
in class BinaryOperator
public boolean shouldCoerceToBoolean()
shouldCoerceToBoolean
in class BinaryOperator
Copyright © 2016 JBoss by Red Hat. All rights reserved.