public static class

MessageFormatParser.StringChunk

extends MessageFormatParser.TemplateChunk
java.lang.Object
   ↳ com.google.gwt.i18n.rebind.MessageFormatParser.TemplateChunk
     ↳ com.google.gwt.i18n.rebind.MessageFormatParser.StringChunk

Class Overview

Represents a literal string portion of a template string.

Summary

Public Constructors
MessageFormatParser.StringChunk()
MessageFormatParser.StringChunk(String str)
Public Methods
void accept(MessageFormatParser.TemplateChunkVisitor visitor)
void append(String str)
boolean isLiteral()
String toString()
Protected Methods
String getStringValue(boolean quote)
Returns the optionally quoted string value of this chunk as represented in a MessgeFormat string.
[Expand]
Inherited Methods
From class com.google.gwt.i18n.rebind.MessageFormatParser.TemplateChunk
From class java.lang.Object

Public Constructors

public MessageFormatParser.StringChunk ()

public MessageFormatParser.StringChunk (String str)

Public Methods

public void accept (MessageFormatParser.TemplateChunkVisitor visitor)

Throws
UnableToCompleteException

public void append (String str)

public boolean isLiteral ()

public String toString ()

Protected Methods

protected String getStringValue (boolean quote)

Returns the optionally quoted string value of this chunk as represented in a MessgeFormat string.

Parameters
quote true if the result should be quoted
Returns
  • optionally quoted MessageFormat string