コード例 #1
0
 /**
  * {@inheritDoc}
  *
  * @generated
  */
 @Override
 public @Nullable Boolean isEquivalentToInternal(@NonNull CGValuedElement thatValue) {
   if (this == thatValue) {
     return Boolean.TRUE;
   }
   if (booleanValue) {
     if (thatValue.isTrue()) {
       return Boolean.TRUE;
     } else if (thatValue.isFalse()) {
       return Boolean.FALSE;
     }
   } else {
     if (thatValue.isTrue()) {
       return Boolean.FALSE;
     } else if (thatValue.isFalse()) {
       return Boolean.TRUE;
     }
   }
   if (thatValue.isConstant()) {
     return Boolean.FALSE;
   } else {
     return null;
   }
 }
コード例 #2
0
 @Override
 public boolean isTrue() {
   return (conditionExpression != null) && conditionExpression.isTrue();
 }
コード例 #3
0
 @Override
 public boolean isFalse() {
   return (conditionExpression != null)
       && conditionExpression.isConstant()
       && !conditionExpression.isTrue();
 }