/* */ package org.jaxen.expr;
/* */
/* */ import java.util.
List;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ abstract class
DefaultTruthExpr
/* */ extends
DefaultBinaryExpr
/* */ {
/* */
DefaultTruthExpr(
Expr lhs,
Expr rhs) {
/* 59 */ super(
lhs,
rhs);
/* */ }
/* */
/* */
/* */
/* */ public
String toString() {
/* 65 */ return "[(DefaultTruthExpr): " +
getLHS() + ", " +
getRHS() + "]";
/* */ }
/* */
/* */
/* */
/* */ protected boolean
bothAreSets(
Object lhs,
Object rhs) {
/* 71 */ return (
lhs instanceof
List &&
rhs instanceof
List);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ protected boolean
eitherIsSet(
Object lhs,
Object rhs) {
/* 79 */ return (
lhs instanceof
List ||
rhs instanceof
List);
/* */ }
/* */
/* */
/* */
/* */
/* */ protected boolean
isSet(
Object obj) {
/* 86 */ return
obj instanceof
List;
/* */ }
/* */
/* */
/* */ protected boolean
setIsEmpty(
List set) {
/* 91 */ return (
set == null ||
set.
size() == 0);
/* */ }
/* */
/* */
/* */
/* */ protected boolean
eitherIsBoolean(
Object lhs,
Object rhs) {
/* 97 */ return (
lhs instanceof
Boolean ||
rhs instanceof
Boolean);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ protected boolean
bothAreBoolean(
Object lhs,
Object rhs) {
/* 105 */ return (
lhs instanceof
Boolean &&
rhs instanceof
Boolean);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ protected boolean
eitherIsNumber(
Object lhs,
Object rhs) {
/* 113 */ return (
lhs instanceof
Number ||
rhs instanceof
Number);
/* */ }
/* */ }
/* Location: /Users/tommy/.m2/repository/jaxen/jaxen/1.1.1/jaxen-1.1.1.jar!/org/jaxen/expr/DefaultTruthExpr.class
* Java compiler version: 2 (46.0)
* JD-Core Version: 1.1.3
*/