
public static class MessageFormatUtils.StringChunk extends MessageFormatUtils.TemplateChunk
| Constructor and Description |
|---|
StringChunk() |
StringChunk(String str) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(MessageFormatUtils.TemplateChunkVisitor visitor) |
void |
append(String str) |
protected String |
getStringValue(boolean quote)
Returns the optionally quoted string value of this chunk as represented
in a MessgeFormat string.
|
boolean |
isLiteral() |
String |
toString() |
getAsMessageFormatString, getString, quoteMessageFormatChars, quoteMessageFormatCharspublic StringChunk()
public StringChunk(String str)
public void accept(MessageFormatUtils.TemplateChunkVisitor visitor) throws MessageFormatUtils.VisitorAbortException
accept in class MessageFormatUtils.TemplateChunkMessageFormatUtils.VisitorAbortExceptionpublic void append(String str)
public boolean isLiteral()
isLiteral in class MessageFormatUtils.TemplateChunkprotected String getStringValue(boolean quote)
MessageFormatUtils.TemplateChunkgetStringValue in class MessageFormatUtils.TemplateChunkquote - true if the result should be quotedCopyright © 2018. All rights reserved.