Пример #1
0
 public static boolean isBooleanFalseOrNull(Expression child) {
   if (child != null) {
     return child == BOOLEAN_EXPRESSIONS[child.getDeterminism().ordinal()]
         || child
             == TYPED_NULL_EXPRESSIONS[
                 PBoolean.INSTANCE.ordinal()
                     + PDataType.values().length * child.getDeterminism().ordinal()];
   }
   return false;
 }
Пример #2
0
 public static boolean isTrue(Expression child) {
   if (child != null) {
     return child
         == BOOLEAN_EXPRESSIONS[Determinism.values().length + child.getDeterminism().ordinal()];
   }
   return false;
 }
Пример #3
0
 public static boolean isFalse(Expression child) {
   if (child != null) {
     return child == BOOLEAN_EXPRESSIONS[child.getDeterminism().ordinal()];
   }
   return false;
 }