| java.lang.Object com.sun.tools.javac.util.Messages
Messages | public class Messages (Code) | | Support for localized messages.
This is NOT part of any API supported by Sun Microsystems. If
you write code that depends on this, you do so at your own risk.
This code and its internal interfaces are subject to change or
deletion without notice.
|
Messages | public Messages(Context context)(Code) | | Creates a Messages object.
|
Messages | public Messages(String bundleName) throws MissingResourceException(Code) | | Creates a Messages object.
Parameters: bundle - the name to identify the resource buundle of localized messages. |
add | public void add(String bundleName) throws MissingResourceException(Code) | | Add a new resource bundle to the list that is searched for localized messages.
Parameters: bundle - the name to identify the resource bundle of localized messages. |
add | public void add(ResourceBundle bundle)(Code) | | Add a new resource bundle to the list that is searched for localized messages.
Resource bundles will be searched in reverse order in which they are added.
Parameters: bundle - the bundle of localized messages. |
getDefaultLocalizedString | static String getDefaultLocalizedString(String key, Object... args)(Code) | | Gets a localized string from the compiler's default bundle.
|
getLocalizedString | public String getLocalizedString(String key, Object... args)(Code) | | Gets the localized string corresponding to a key, formatted with a set of args.
|
instance | public static Messages instance(Context context)(Code) | | Get the Messages instance for this context.
|
|
|