Debian Codegraph @

rhino/testsrc/tests/src/com/netscape/javascript/qa/lc3/bool/Boolean_002.java

raw symbols SCIP
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5 package com.netscape.javascript.qa.lc3.bool;
6
7 /**
8 * 3.4 Preferred Argument Conversions
9 * 3.4.2 Boolean.
10 * Given a
11 *
12 */
13
14 public class Boolean_002 {
15 public int BOOLEAN = 0;
16 public int BOOLEAN_OBJECT = 1;
17 public int OBJECT = 2;
18 public int STRING = 4;
19 public int LONG = 8;
20 public int INT = 16;
21 public int SHORT = 32;
22 public int CHAR = 64;
23 public int BYTE = 128;
24 public int DOUBLE = 256;
25 public int FLOAT = 512;
26
27 public int ambiguous( float arg ) {
28 return FLOAT;
29 }
30
31 public int ambiguous( double arg ) {
32 return DOUBLE;
33 }
34
35 public int ambiguous( byte arg ) {
36 return BYTE;
37 }
38
39 public int ambiguous( char arg ) {
40 return CHAR;
41 }
42
43 public int ambiguous( short arg ) {
44 return SHORT;
45 }
46
47 public int ambiguous( int arg ) {
48 return INT;
49 }
50
51 public int ambiguous( long arg ) {
52 return LONG;
53 }
54
55 public int ambiguous( String arg ) {
56 return STRING;
57 }
58
59 public int ambiguous( Object arg ) {
60 return OBJECT;
61 }
62
63 public int ambiguous( Boolean arg ) {
64 return BOOLEAN_OBJECT;
65 }
66 public int expect() {
67 return BOOLEAN_OBJECT;
68 }
69
70 }