Debian Codegraph @

rhino/testsrc/tests/src/com/netscape/javascript/qa/lc3/string/String_005.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.string;
6
7 /**
8 * 3.4 Preferred Argument Conversions
9 *
10 */
11
12 public class String_005 {
13 public String BOOLEAN = "BOOLEAN";
14 public String BOOLEAN_OBJECT = "BOOLEAN_OBJECT";
15 public String DOUBLE_OBJECT = "DOUBLE_OBJECT";
16 public String OBJECT = "OBJECT";
17 public String STRING = "STRING";
18 public String LONG = "LONG";
19 public String INT = "INT";
20 public String SHORT = "SHORT";
21 public String CHAR = "CHAR";
22 public String BYTE = "BYTE";
23 public String DOUBLE = "DOUBLE";
24 public String FLOAT = "FLOAT";
25
26 public String ambiguous( boolean arg ) {
27 return BOOLEAN;
28 }
29
30 public String ambiguous( Boolean arg ) {
31 return BOOLEAN_OBJECT;
32 }
33
34 public String ambiguous( Double arg ) {
35 return DOUBLE_OBJECT;
36 }
37
38 public String expect() {
39 return BOOLEAN;
40 }
41 }