This is NOT part of any supported API. 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.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | JavacMessages.
This provides a way for the JavacMessager to retrieve a ResourceBundle from another module such as jdk.javadoc. |
| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private List | |
| pack-priv Context | |
| private List | |
| private Locale | |
| private static ResourceBundle | |
| private static final String | |
| private static JavacMessages | |
| private JCDiagnostic. | |
| private DiagnosticFormatter | |
| public static final Context. | messagesKey
The context key for the JavacMessages object. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | JavacMessages(String
the name to identify the resource bundle of localized messages. bundleName)Creates a JavacMessages object. |
| public | JavacMessages(String
the name to identify the resource bundle of localized messages. bundleName, Locale locale)Creates a JavacMessages object. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(String bundleName)
Implements com. Add a new resource bundle to the list that is searched for localized messages. |
| public void | |
| public List | |
| public Locale | |
| public static ResourceBundle | |
| pack-priv static String | getDefaultLocalizedString(String key, Object... args)
Returns a localized string from the compiler's default bundle. |
| pack-priv static JavacMessages | |
| pack-priv JCDiagnostic. | |
| public String | getLocalizedString(String key, Object... args)
Gets the localized string corresponding to a key, formatted with a set of args. |
| public String | |
| public String | getLocalizedString(Locale l, String key, Object... args)
Implements com. Get a localized formatted string. |
| public String | |
| private static String | |
| private String | |
| private void | |
| public static JavacMessages | |
| public void |
| bundleCache | back to summary |
|---|---|
| private Map<Locale, SoftReference<List<ResourceBundle>>> bundleCache | |
| bundleHelpers | back to summary |
|---|---|
| private List<JavacMessages. | |
| context | back to summary |
|---|---|
| pack-priv Context context | |
| currentBundles | back to summary |
|---|---|
| private List<ResourceBundle> currentBundles | |
| currentLocale | back to summary |
|---|---|
| private Locale currentLocale | |
| defaultBundle | back to summary |
|---|---|
| private static ResourceBundle defaultBundle | |
| defaultBundleName | back to summary |
|---|---|
| private static final String defaultBundleName | |
| defaultMessages | back to summary |
|---|---|
| private static JavacMessages defaultMessages | |
| diagFactory | back to summary |
|---|---|
| private JCDiagnostic. | |
| diagFormatter | back to summary |
|---|---|
| private DiagnosticFormatter<JCDiagnostic> diagFormatter | |
| messagesKey | back to summary |
|---|---|
| public static final Context. The context key for the JavacMessages object. | |
| JavacMessages | back to summary |
|---|---|
| public JavacMessages(Context context) Creates a JavacMessages object.
| |
| JavacMessages | back to summary |
|---|---|
| public JavacMessages(String bundleName) throws MissingResourceException Creates a JavacMessages object.
| |
| JavacMessages | back to summary |
|---|---|
| public JavacMessages(String bundleName, Locale locale) throws MissingResourceException Creates a JavacMessages object.
| |
| JavacMessages | back to summary |
|---|---|
| public JavacMessages() throws MissingResourceException | |
| add | back to summary |
|---|---|
| public void add(String bundleName) throws MissingResourceException Implements com. Doc from com. Add a new resource bundle to the list that is searched for localized messages.
| |
| add | back to summary |
|---|---|
| public void add(JavacMessages. | |
| getBundles | back to summary |
|---|---|
| public List | |
| getCurrentLocale | back to summary |
|---|---|
| public Locale getCurrentLocale() | |
| getDefaultBundle | back to summary |
|---|---|
| public static ResourceBundle getDefaultBundle() | |
| getDefaultLocalizedString | back to summary |
|---|---|
| pack-priv static String getDefaultLocalizedString(String key, Object... args) Returns a localized string from the compiler's default bundle. | |
| getDefaultMessages | back to summary |
|---|---|
| pack-priv static JavacMessages getDefaultMessages()
Deprecated
| |
| getDiagFactory | back to summary |
|---|---|
| pack-priv JCDiagnostic. | |
| getLocalizedString | back to summary |
|---|---|
| public String getLocalizedString(String key, Object... args) Gets the localized string corresponding to a key, formatted with a set of args. | |
| getLocalizedString | back to summary |
|---|---|
| public String getLocalizedString(JCDiagnostic. | |
| getLocalizedString | back to summary |
|---|---|
| public String getLocalizedString(Locale l, String key, Object... args) Implements com. Doc from com. Get a localized formatted string.
| |
| getLocalizedString | back to summary |
|---|---|
| public String getLocalizedString(Locale l, JCDiagnostic. | |
| getLocalizedString | back to summary |
|---|---|
| private static String getLocalizedString(List<ResourceBundle> bundles, String key, Object... args) | |
| getLocalizedString | back to summary |
|---|---|
| private String getLocalizedString(List<ResourceBundle> bundles, JCDiagnostic. | |
| initOptions | back to summary |
|---|---|
| private void initOptions(Options options) | |
| instance | back to summary |
|---|---|
| public static JavacMessages instance(Context context) Get the JavacMessages instance for this context. | |
| setCurrentLocale | back to summary |
|---|---|
| public void setCurrentLocale(Locale locale) | |
| Modifier and Type | Method and Description |
|---|---|
| public ResourceBundle | Returns: ResourceBundlethe requested bundle's locale locale)Gets the ResourceBundle. |
| getResourceBundle | back to summary |
|---|---|
| public ResourceBundle getResourceBundle(Locale locale) Gets the ResourceBundle.
| |