Home » openjdk-7 » com.sun.tools » javac » api » [javadoc | source]
com.sun.tools.javac.api
public interface: Formattable [javadoc | source]

All Known Implementing Classes:
    KindName, Token, LocalizedString

This interface must be implemented by any javac class that has non-trivial formatting needs (e.g. where toString() does not apply because of localization).

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.

Nested Class Summary:
static class  Formattable.LocalizedString   
Method from com.sun.tools.javac.api.Formattable Summary:
getKind,   toString
Method from com.sun.tools.javac.api.Formattable Detail:
 public String getKind()
    Retrieve a pretty name of this object's kind
 public String toString(Locale locale,
    Messages messages)
    Used to obtain a localized String representing the object accordingly to a given locale