|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.i18n.rebind.MessageFormatParser
public class MessageFormatParser
Helper class for parsing MessageFormat-style format strings.
| Nested Class Summary | |
|---|---|
static class |
MessageFormatParser.ArgumentChunk
Represents an argument in a template string. |
static class |
MessageFormatParser.StringChunk
Represents a literal string portion of a template string. |
static class |
MessageFormatParser.TemplateChunk
Represents a parsed chunk of a template. |
| Constructor Summary | |
|---|---|
MessageFormatParser()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
assemble(java.lang.Iterable<MessageFormatParser.TemplateChunk> parts)
Generate a MessageFormat-style string representing the supplied components, properly quoting any special characters in string literal portions. |
static java.util.List<MessageFormatParser.TemplateChunk> |
parse(java.lang.String template)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MessageFormatParser()
| Method Detail |
|---|
public static java.lang.String assemble(java.lang.Iterable<MessageFormatParser.TemplateChunk> parts)
parts - list of TemplateChunks to assemble
public static java.util.List<MessageFormatParser.TemplateChunk> parse(java.lang.String template)
throws java.text.ParseException
java.text.ParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||