public class MsgUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MsgUtils.MsgPartsAndIds
Value class for the return value of
buildMsgPartsAndComputeMsgId(). |
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.collect.ImmutableList<SoyMsgPart> |
buildMsgParts(MsgNode msgNode)
Builds the list of SoyMsgParts for the given MsgNode.
|
static MsgUtils.MsgPartsAndIds |
buildMsgPartsAndComputeMsgIdForDualFormat(MsgNode msgNode)
Builds the list of SoyMsgParts and computes the unique message id for the given MsgNode,
assuming a specific dual format.
|
static long |
computeMsgIdForDualFormat(MsgNode msgNode)
Computes the unique message id for the given MsgNode, assuming a specific dual format.
|
public static com.google.common.collect.ImmutableList<SoyMsgPart> buildMsgParts(MsgNode msgNode)
msgNode - The message parsed from the Soy source.public static MsgUtils.MsgPartsAndIds buildMsgPartsAndComputeMsgIdForDualFormat(MsgNode msgNode)
idUsingBracedPhs in the return value is simply set to -1L.msgNode - The message parsed from the Soy source.MsgPartsAndIds object, assuming a specific dual format, with field
idUsingBracedPhs set to -1L.public static long computeMsgIdForDualFormat(MsgNode msgNode)
msgNode - The message parsed from the Soy source.