com.sun.tools.javac.api
Class Formattable.LocalizedString

java.lang.Object
  extended by com.sun.tools.javac.api.Formattable.LocalizedString
All Implemented Interfaces:
Formattable
Enclosing interface:
Formattable

public static class Formattable.LocalizedString
extends java.lang.Object
implements Formattable


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sun.tools.javac.api.Formattable
Formattable.LocalizedString
 
Field Summary
(package private)  java.lang.String key
           
 
Constructor Summary
Formattable.LocalizedString(java.lang.String key)
           
 
Method Summary
 java.lang.String getKind()
          Retrieve a pretty name of this object's kind
 java.lang.String toString()
           
 java.lang.String toString(java.util.Locale l, Messages messages)
          Used to obtain a localized String representing the object accordingly to a given locale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

key

java.lang.String key
Constructor Detail

Formattable.LocalizedString

public Formattable.LocalizedString(java.lang.String key)
Method Detail

toString

public java.lang.String toString(java.util.Locale l,
                                 Messages messages)
Description copied from interface: Formattable
Used to obtain a localized String representing the object accordingly to a given locale

Specified by:
toString in interface Formattable
Parameters:
l - locale in which the object's representation is to be rendered
messages - messages object used for localization
Returns:
a locale-dependent string representing the object

getKind

public java.lang.String getKind()
Description copied from interface: Formattable
Retrieve a pretty name of this object's kind

Specified by:
getKind in interface Formattable
Returns:
a string representing the object's kind

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object