/** * {@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; } }
/** * {@inheritDoc} * * @generated */ @Override public boolean isConstant() { return source.isConstant() && argument.isConstant(); }
@Override public boolean isFalse() { return (conditionExpression != null) && conditionExpression.isConstant() && !conditionExpression.isTrue(); }