|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.javascript.jscomp.EmptyMessageBundle
public class EmptyMessageBundle
An implementation of MessageBundle that has no translations.
| Constructor Summary | |
|---|---|
EmptyMessageBundle()
|
|
| Method Summary | |
|---|---|
Iterable<JsMessage> |
getAllMessages()
Returns an empty list of messages. |
JsMessage |
getMessage(String id)
Returns null, to indicate it has no message replacements. |
JsMessage.IdGenerator |
idGenerator()
Gets a dummy message ID generator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmptyMessageBundle()
| Method Detail |
|---|
public JsMessage.IdGenerator idGenerator()
idGenerator in interface MessageBundlepublic JsMessage getMessage(String id)
getMessage in interface MessageBundleid - the id of the message being replaced; the key is message ID
generated by JsMessage.IdGenerator
public Iterable<JsMessage> getAllMessages()
getAllMessages in interface MessageBundle
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||