Class DefaultOrExpr
java.lang.Object
org.jaxen.expr.DefaultExpr
org.jaxen.expr.DefaultBinaryExpr
org.jaxen.expr.DefaultTruthExpr
org.jaxen.expr.DefaultLogicalExpr
org.jaxen.expr.DefaultOrExpr
- All Implemented Interfaces:
Serializable, BinaryExpr, Expr, LogicalExpr
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class DefaultTruthExpr
bothAreBoolean, bothAreSets, eitherIsBoolean, eitherIsNumber, eitherIsSet, isBoolean, isSet, setIsEmptyMethods 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, getRHS
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
DefaultOrExpr
-
-
Method Details
-
getOperator
Description copied from interface:BinaryExprReturns the operator for the binary expression such as "+" or "div".- Specified by:
getOperatorin interfaceBinaryExpr- Specified by:
getOperatorin classDefaultBinaryExpr- Returns:
- the operator for the expression
-
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.- Parameters:
context- the context in which the expression is evaluated- Returns:
- an object representing the result of the evaluation
- Throws:
JaxenException
-