com.google.gwt.i18n.rebind
Class MessageFormatParser.StringChunk

java.lang.Object
  extended by com.google.gwt.i18n.rebind.MessageFormatParser.TemplateChunk
      extended by com.google.gwt.i18n.rebind.MessageFormatParser.StringChunk
Enclosing class:
MessageFormatParser

public static class MessageFormatParser.StringChunk
extends MessageFormatParser.TemplateChunk

Represents a literal string portion of a template string.


Constructor Summary
MessageFormatParser.StringChunk()
           
MessageFormatParser.StringChunk(java.lang.String str)
           
 
Method Summary
 void append(java.lang.String str)
           
 java.lang.String getString()
           
 boolean isLiteral()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageFormatParser.StringChunk

public MessageFormatParser.StringChunk()

MessageFormatParser.StringChunk

public MessageFormatParser.StringChunk(java.lang.String str)
Method Detail

append

public void append(java.lang.String str)

getString

public java.lang.String getString()
Overrides:
getString in class MessageFormatParser.TemplateChunk
Returns:
the string as this chunk would be represented in a MessageFormat template. Note that this is distinct from toString in that the latter is intend for human consumption.

isLiteral

public boolean isLiteral()
Overrides:
isLiteral in class MessageFormatParser.TemplateChunk

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object