public final class ProtoInitNode extends AbstractParentExprNode
Important: Do not use outside of Soy code (treat as superpackage-private).
ExprNode.Kind, ExprNode.OperatorNode, ExprNode.ParentExprNode, ExprNode.PrimitiveNode| Constructor and Description |
|---|
ProtoInitNode(String protoName,
Iterable<String> paramNames,
SourceLocation sourceLocation) |
| Modifier and Type | Method and Description |
|---|---|
ProtoInitNode |
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 |
getParamName(int i) |
com.google.common.collect.ImmutableList<String> |
getParamNames()
Returns the list of proto initialization call param names.
|
String |
getProtoName()
Returns the name of the fully qualified proto.
|
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 ProtoInitNode(String protoName, Iterable<String> paramNames, SourceLocation sourceLocation)
protoName - The fully qualified name of the proto.paramNames - An iterable of proto initialization arg param names.sourceLocation - The node's source location.public ExprNode.Kind getKind()
ExprNodepublic String getProtoName()
public com.google.common.collect.ImmutableList<String> getParamNames()
Each param name corresponds to each of this node's children, which are the param values.
public String getParamName(int i)
public String toSourceString()
NodeNote: Some nodes do not have a direct mapping to Soy source (such as nodes created during some optimization passes). Thus this method may not always be supported.
public ProtoInitNode copy(CopyState copyState)
ExprNodeNode.copy(CopyState) for a description of the copy contract.