Class.DesiredAssertionStatus Method

Definition

Returns the assertion status that would be assigned to this class if it were to be initialized at the time this method is invoked.

[Android.Runtime.Register("desiredAssertionStatus", "()Z", "")]
public bool DesiredAssertionStatus ();
[<Android.Runtime.Register("desiredAssertionStatus", "()Z", "")>]
member this.DesiredAssertionStatus : unit -> bool

Returns

the desired assertion status of the specified class.

Attributes

Remarks

Returns the assertion status that would be assigned to this class if it were to be initialized at the time this method is invoked. If this class has had its assertion status set, the most recent setting will be returned; otherwise, if any package default assertion status pertains to this class, the most recent setting for the most specific pertinent package default assertion status is returned; otherwise, if this class is not a system class (i.e., it has a class loader) its class loader's default assertion status is returned; otherwise, the system class default assertion status is returned.

Added in 1.4.

Java documentation for java.lang.Class.desiredAssertionStatus().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to