Logo Search packages:      
Sourcecode: xulrunner version File versions  Download package

com::netscape::javascript::qa::lc3::bool::Boolean_005 Class Reference

List of all members.


Detailed Description

3.4 Preferred Argument Conversions 3.4.2 Boolean. Given a Java object that has several ambiguous methods, if JavaScript calls the ambiguous method with a boolean, the order of preference should be as follows, regardless of the order in which the methods are declared. boolean java.lang.Boolean java.lang.Object java.lang.String long, int, short, char, byte double, float

In this case, the expected result depends on the specific method that is invoked. Invoking with using explicit method invocation results in a runtime error.

Definition at line 22 of file Boolean_005.java.


Public Member Functions

int ambiguous (long arg)
int ambiguous (int arg)
int ambiguous (short arg)
int ambiguous (char arg)
int ambiguous (byte arg)
int ambiguous (double arg)
int ambiguous (float arg)

Public Attributes

int BOOLEAN = 0
int BOOLEAN_OBJECT = 1
int BYTE = 128
int CHAR = 64
int DOUBLE = 256
int FLOAT = 512
int INT = 16
int LONG = 8
int OBJECT = 2
int SHORT = 32
int STRING = 4

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index