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

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

public static class MessageFormatParser.ArgumentChunk
extends MessageFormatParser.TemplateChunk

Represents an argument in a template string.


Constructor Summary
MessageFormatParser.ArgumentChunk(int argNumber, java.lang.String format, java.lang.String subformat)
           
 
Method Summary
 int getArgumentNumber()
           
 java.lang.String getFormat()
           
 java.lang.String getString()
           
 java.lang.String getSubFormat()
           
 java.lang.String toString()
           
 
Methods inherited from class com.google.gwt.i18n.rebind.MessageFormatParser.TemplateChunk
isLiteral
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageFormatParser.ArgumentChunk

public MessageFormatParser.ArgumentChunk(int argNumber,
                                         java.lang.String format,
                                         java.lang.String subformat)
Method Detail

getArgumentNumber

public int getArgumentNumber()

getFormat

public java.lang.String getFormat()

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.

getSubFormat

public java.lang.String getSubFormat()

toString

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