public final class GoogMsgRefNode extends AbstractSoyNode implements SoyNode.StandaloneNode
goog.getMsg).
Important: Do not use outside of Soy code (treat as superpackage-private).
SoyNode.BlockCommandNode, SoyNode.BlockNode, SoyNode.CommandNode, SoyNode.ConditionalBlockNode, SoyNode.ExprHolderNode, SoyNode.Kind, SoyNode.LocalVarBlockNode, SoyNode.LocalVarInlineNode, SoyNode.LocalVarNode, SoyNode.LoopNode, SoyNode.MsgBlockNode, SoyNode.MsgPlaceholderInitialNode, SoyNode.MsgSubstUnitNode, SoyNode.ParentSoyNode<N extends SoyNode>, SoyNode.RenderUnitNode, SoyNode.SplitLevelTopNode<N extends SoyNode>, SoyNode.StandaloneNode, SoyNode.StatementNodeSPACES| Constructor and Description |
|---|
GoogMsgRefNode(int id,
SourceLocation sourceLocation,
String renderedGoogMsgVarName,
com.google.common.collect.ImmutableList<String> escapingDirectiveNames) |
| Modifier and Type | Method and Description |
|---|---|
GoogMsgRefNode |
clone()
Copies this node.
|
com.google.common.collect.ImmutableList<String> |
getEscapingDirectiveNames()
Returns the escaping directives, applied from left to right.
|
SoyNode.Kind |
getKind()
Returns this node's kind (corresponding to this node's specific type).
|
SoyNode.BlockNode |
getParent()
Gets this node's parent.
|
String |
getRenderedGoogMsgVarName()
Returns the JS var name of the rendered goog msg.
|
String |
toSourceString()
Builds a Soy source string that could be the source for this node.
|
getId, getSourceLocation, setId, toStringcouldHaveSyntaxVersionAtLeast, getNearestAncestor, getSyntaxVersionBound, hasAncestor, maybeSetSyntaxVersionBound, setParent, toTreeStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcouldHaveSyntaxVersionAtLeast, getNearestAncestor, getSourceLocation, getSyntaxVersionBound, hasAncestor, maybeSetSyntaxVersionBound, setParent, toTreeStringpublic GoogMsgRefNode(int id,
SourceLocation sourceLocation,
String renderedGoogMsgVarName,
com.google.common.collect.ImmutableList<String> escapingDirectiveNames)
id - The id for this node.sourceLocation - The node's source location.renderedGoogMsgVarName - The JS var name of the rendered goog msg.public SoyNode.Kind getKind()
SoyNodepublic String getRenderedGoogMsgVarName()
public String toSourceString()
NodetoSourceString in interface Nodepublic SoyNode.BlockNode getParent()
NodegetParent in interface NodegetParent in interface SoyNodegetParent in interface SoyNode.StandaloneNodegetParent in class AbstractSoyNodepublic GoogMsgRefNode clone()
NodeAll clone() overrides should follow this contract:
{@literal @}Override public T clone() {
return new T(this);
}
NOTE: this means we do not ultimately delegate to Object.clone(), ever.
TODO(lukes): The usecases for a clone method are few and far between. Making the AST nodes immutable (or at least unmodifiable) would be preferable to maintaining our clone() methods.
public com.google.common.collect.ImmutableList<String> getEscapingDirectiveNames()