public final class MapLiteralNode extends AbstractParentExprNode
Important: Do not use outside of Soy code (treat as superpackage-private).
ExprNode.ConstantNode, ExprNode.Kind, ExprNode.OperatorNode, ExprNode.ParentExprNode, ExprNode.PrimitiveNodeSPACES| Constructor and Description |
|---|
MapLiteralNode(List<ExprNode> alternatingKeysAndValues,
SourceLocation sourceLocation) |
| Modifier and Type | Method and Description |
|---|---|
MapLiteralNode |
copy(CopyState copyState)
See
Node.copy(CopyState) for a description of the copy contract. |
ExprNode.Kind |
getKind()
Gets this node's kind (corresponding to this node's specific type).
|
String |
toSourceString()
Builds a Soy source string that could be the source for this node.
|
addChild, addChild, addChildren, addChildren, appendSourceStringForChildren, clearChildren, getChild, getChildIndex, getChildren, getType, numChildren, removeChild, removeChild, replaceChild, replaceChild, setTypegetParent, getSourceLocationcouldHaveSyntaxVersionAtLeast, equals, getNearestAncestor, getSyntaxVersionUpperBound, hasAncestor, hashCode, maybeSetSyntaxVersionUpperBound, setParent, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcouldHaveSyntaxVersionAtLeast, getNearestAncestor, getSourceLocation, getSyntaxVersionUpperBound, hasAncestor, maybeSetSyntaxVersionUpperBound, setParentpublic MapLiteralNode(List<ExprNode> alternatingKeysAndValues, SourceLocation sourceLocation)
alternatingKeysAndValues - The keys and values (alternating) in this map.public ExprNode.Kind getKind()
ExprNodepublic String toSourceString()
Nodepublic MapLiteralNode copy(CopyState copyState)
ExprNodeNode.copy(CopyState) for a description of the copy contract.