equal
deleted
inserted
replaced
23 * have any questions. |
23 * have any questions. |
24 */ |
24 */ |
25 |
25 |
26 package com.sun.tools.javac.api; |
26 package com.sun.tools.javac.api; |
27 |
27 |
28 import java.util.ResourceBundle; |
28 import java.util.Locale; |
29 |
29 |
30 /** |
30 /** |
31 * This interface must be implemented by any javac class that has non-trivial |
31 * This interface must be implemented by any javac class that has non-trivial |
32 * formatting needs (e.g. where toString() does not apply because of localization). |
32 * formatting needs (e.g. where toString() does not apply because of localization). |
33 * |
33 * |
37 |
37 |
38 /** |
38 /** |
39 * Used to obtain a localized String representing the object accordingly |
39 * Used to obtain a localized String representing the object accordingly |
40 * to a given locale |
40 * to a given locale |
41 * |
41 * |
42 * @param bundle resource bundle class used for localization |
42 * @param locale locale in which the object's representation is to be rendered |
|
43 * @param messages messages object used for localization |
43 * @return a locale-dependent string representing the object |
44 * @return a locale-dependent string representing the object |
44 */ |
45 */ |
45 public String toString(ResourceBundle bundle); |
46 public String toString(Locale locale, Messages messages); |
46 /** |
47 /** |
47 * Retrieve a pretty name of this object's kind |
48 * Retrieve a pretty name of this object's kind |
48 * @return a string representing the object's kind |
49 * @return a string representing the object's kind |
49 */ |
50 */ |
50 String getKind(); |
51 String getKind(); |