Class Overview
Helper class for parsing MessageFormat-style format strings.
Summary
Nested Classes |
class |
MessageFormatParser.ArgumentChunk |
Represents an argument in a template string. |
class |
MessageFormatParser.DefaultTemplateChunkVisitor |
Default implementation of TemplateChunkVisitor -- other implementations
should extend this if possible to avoid breakage when new TemplateChunk
subtypes are added. |
class |
MessageFormatParser.StaticArgChunk |
Represents a static argument, which is used to remove markup from
translator view without having to supply it at each callsite. |
class |
MessageFormatParser.StringChunk |
Represents a literal string portion of a template string. |
class |
MessageFormatParser.TemplateChunk |
Represents a parsed chunk of a template. |
interface |
MessageFormatParser.TemplateChunkVisitor |
Visitor for template chunks. |
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
public
MessageFormatParser
()
Public Methods
Generate a MessageFormat-style string representing the supplied components,
properly quoting any special characters in string literal portions.
Note that additional quoting may be required depending on how it will be
used, such as backslash-escaping double quotes if it will be used in a
generated string constant.
Parameters
parts
| list of TemplateChunks to assemble |