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; }
public static boolean isTrue(Expression child) { if (child != null) { return child == BOOLEAN_EXPRESSIONS[Determinism.values().length + child.getDeterminism().ordinal()]; } return false; }
public static boolean isFalse(Expression child) { if (child != null) { return child == BOOLEAN_EXPRESSIONS[child.getDeterminism().ordinal()]; } return false; }