public static interface SoyNode.MsgSubstUnitNode extends SoyNode.StandaloneNode
MsgPlaceholderNode, MsgSelectNode, or
MsgPluralNode.SoyNode.BlockCommandNode, SoyNode.BlockNode, SoyNode.CommandNode, SoyNode.ConditionalBlockNode, SoyNode.ExprHolderNode, SoyNode.Kind, SoyNode.LocalVarBlockNode, SoyNode.LocalVarInlineNode, SoyNode.LocalVarNode, SoyNode.MsgBlockNode, SoyNode.MsgPlaceholderInitialNode, SoyNode.MsgSubstUnitNode, SoyNode.ParentSoyNode<N extends SoyNode>, SoyNode.RenderUnitNode, SoyNode.SplitLevelTopNode<N extends SoyNode>, SoyNode.StandaloneNode, SoyNode.StatementNode| Modifier and Type | Method and Description |
|---|---|
String |
getBaseVarName()
Returns the base var name for this substitution unit.
|
SoyNode.MsgBlockNode |
getParent()
Gets this node's parent.
|
boolean |
shouldUseSameVarNameAs(SoyNode.MsgSubstUnitNode other)
Returns whether this substitution unit should use the same var name as another substitution
unit.
|
copy, getId, getKind, setIdcouldHaveSyntaxVersionAtLeast, getNearestAncestor, getSourceLocation, getSyntaxVersionUpperBound, hasAncestor, maybeSetSyntaxVersionUpperBound, setParent, toSourceStringSoyNode.MsgBlockNode getParent()
NodeString getBaseVarName()
Note: This isn't quite correct semantically. It's conceivable that a new type of substitution unit in the future could have multiple vars. But until that happens, this simpler model is sufficient.
boolean shouldUseSameVarNameAs(SoyNode.MsgSubstUnitNode other)
other - The other substitution unit to check against.