Class DefaultEqualityExpr
java.lang.Object
org.jaxen.expr.DefaultExpr
org.jaxen.expr.DefaultBinaryExpr
org.jaxen.expr.DefaultTruthExpr
org.jaxen.expr.DefaultEqualityExpr
- All Implemented Interfaces:
Serializable, BinaryExpr, EqualityExpr, Expr
- Direct Known Subclasses:
DefaultEqualsExpr, DefaultNotEqualsExpr
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEvaluate the expression in the given context, and return the result.protected abstract booleanevaluateObjectObject(Object lhs, Object rhs) private booleanevaluateObjectObject(Object lhs, Object rhs, Navigator nav) private BooleanevaluateSetSet(List lhsSet, List rhsSet, Navigator nav) toString()Methods inherited from class DefaultTruthExpr
bothAreBoolean, bothAreSets, eitherIsBoolean, eitherIsNumber, eitherIsSet, isBoolean, isSet, setIsEmptyMethods inherited from class DefaultBinaryExpr
getLHS, getOperator, getRHS, getText, setLHS, setRHS, simplifyMethods inherited from class DefaultExpr
convertToIterator, convertToListMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface BinaryExpr
getLHS, getOperator, getRHS
-
Constructor Details
-
DefaultEqualityExpr
-
-
Method Details
-
toString
- Overrides:
toStringin classDefaultTruthExpr
-
evaluate
Description copied from interface:ExprEvaluate the expression in the given context, and return the result. The result will be ajava.lang.Doublefor expressions that return a number, ajava.lang.Stringfor expressions that return a string, ajava.lang.Booleanfor expressions that return a boolean, and ajava.util.Listfor expressions that return a node-set. In the latter case, the elements of the list are the actual objects from the source document model. Copies are not made.- Specified by:
evaluatein interfaceExpr- Parameters:
context- the context in which the expression is evaluated- Returns:
- an object representing the result of the evaluation
- Throws:
JaxenException
-
evaluateObjectObject
-