0x0b
js_object-Boolean
最終更新:
0x0b
-
view
Boolean オブジェクト (Boolean Objects)
15.6.1 関数として呼出される Boolean コンストラクタ (The Boolean Constructor Called as a Function)
Boolean がコンストラクタとしてではなく関数として呼出されるとき、型変換を行う。
15.6.1.1 Boolean (value)
15.6.1.1 Boolean (value)
ToBoolean(value) により算出される (Boolean オブジェクトではない) ブーリアン値を返す。
15.6.2 Boolean コンストラクタ (The Boolean Constructor)
15.6.2 Boolean コンストラクタ (The Boolean Constructor)
Boolean が new 式の一部として呼出されるとき、それはコンストラクタである: それは新規に生成されるオブジェクトを初期化する。
15.6.2.1 new Boolean (value)
15.6.2.1 new Boolean (value)
新規に生成されるオブジェクトの Prototype プロパティはオリジナルの Boolean プロトタイプオブジェクトで、 Boolean.prototype (セクション 15.6.3.1) の初期値である。
新規に構築される Boolean オブジェクトの Class プロパティは、 "Boolean" に設定される。
新規に構築される Boolean オブジェクトの Value プロパティは、 ToBoolean(value) に設定される。
15.6.3 Boolean コンストラクタのプロパティ (Properties of the Boolean Constructor)
新規に構築される Boolean オブジェクトの Class プロパティは、 "Boolean" に設定される。
新規に構築される Boolean オブジェクトの Value プロパティは、 ToBoolean(value) に設定される。
15.6.3 Boolean コンストラクタのプロパティ (Properties of the Boolean Constructor)
Boolean コンストラクタの内部 Prototype プロパティの初期値は、 Function プロトタイプオブジェクト (セクション 15.3.4) である。
内部プロパティと length プロパティ (値は 1) の他に、 Boolean コンストラクタは次のプロパティを持つ:
15.6.3.1 Boolean.prototype
内部プロパティと length プロパティ (値は 1) の他に、 Boolean コンストラクタは次のプロパティを持つ:
15.6.3.1 Boolean.prototype
Boolean.prototype の初期値は、 Boolean プロトタイプオブジェクト (セクション 15.6.4) である。
このプロパティは、属性 { DontEnum, DontDelete, ReadOnly } である。
15.6.4 Boolean プロトタイプオブジェクトのプロパティ (Properties of the Boolean Prototype Object)
このプロパティは、属性 { DontEnum, DontDelete, ReadOnly } である。
15.6.4 Boolean プロトタイプオブジェクトのプロパティ (Properties of the Boolean Prototype Object)
Boolean プロトタイプオブジェクトはそれ自身が Boolean オブジェクト (Class は "Boolean") で、値が false である。
Boolean プロトタイプオブジェクトの内部 Prototype プロパティの値は Object プロトタイプオブジェクト (セクション 15.2.3.1) である。
Boolean プロトタイプオブジェクトのプロパティである関数の以降の説明において、フレーズ "この Boolean オブジェクト" は、関数呼び出しの this 値であるオブジェクトを参照する; this 値が内部 Class プロパティの値が "Boolean" であるオブジェクトでなければ、例外 TypeError が投げられる。 Also, フレーズ "このブーリアン値" は、この Boolean オブジェクトに表現されるブーリアン値、すなわち、この Boolean オブジェクトの内部 Value プロパティの値を参照する。
15.6.4.1 Boolean.prototype.constructor
Boolean プロトタイプオブジェクトの内部 Prototype プロパティの値は Object プロトタイプオブジェクト (セクション 15.2.3.1) である。
Boolean プロトタイプオブジェクトのプロパティである関数の以降の説明において、フレーズ "この Boolean オブジェクト" は、関数呼び出しの this 値であるオブジェクトを参照する; this 値が内部 Class プロパティの値が "Boolean" であるオブジェクトでなければ、例外 TypeError が投げられる。 Also, フレーズ "このブーリアン値" は、この Boolean オブジェクトに表現されるブーリアン値、すなわち、この Boolean オブジェクトの内部 Value プロパティの値を参照する。
15.6.4.1 Boolean.prototype.constructor
Boolean.prototype.constructor の初期値は、組込み Boolean コンストラクタである。
15.6.4.2 Boolean.prototype.toString ( )
15.6.4.2 Boolean.prototype.toString ( )
このブーリアン値が true ならば、文字列 "true" が返される。そうでなければ、このブーリアン値は false でなければならず、文字列 "false" が返される。
toString 関数は汎用的ではない; this 値が Boolean オブジェクトでなければ、例外 TypeError を投げる。それゆえ、他の種類のオブジェクトにメソッドとして転用できない。
15.6.4.3 Boolean.prototype.valueOf ( )
toString 関数は汎用的ではない; this 値が Boolean オブジェクトでなければ、例外 TypeError を投げる。それゆえ、他の種類のオブジェクトにメソッドとして転用できない。
15.6.4.3 Boolean.prototype.valueOf ( )
このブーリアン値を返す。
valueOf 関数は汎用的ではない; this 値が Boolean オブジェクトでなければ、例外 TypeError を投げる。それゆえ、他の種類のオブジェクトにメソッドとして転用できない。
15.6.5 Boolean インスタンスのプロパティ (Properties of Boolean Instances)
valueOf 関数は汎用的ではない; this 値が Boolean オブジェクトでなければ、例外 TypeError を投げる。それゆえ、他の種類のオブジェクトにメソッドとして転用できない。
15.6.5 Boolean インスタンスのプロパティ (Properties of Boolean Instances)
Boolean インスタンスは、 Boolean プロトタイプオブジェクトから継承するプロパティの上に特別なプロパティを持たない。