public final class ExprRootNode extends AbstractParentExprNode
Important: Do not use outside of Soy code (treat as superpackage-private).
This node should always have exactly one child.
ExprNode.ConstantNode, ExprNode.Kind, ExprNode.OperatorNode, ExprNode.ParentExprNode, ExprNode.PrimitiveNodeSPACES| Constructor and Description |
|---|
ExprRootNode(ExprNode child)
Creates a new instance with the given node as the child.
|
| Modifier and Type | Method and Description |
|---|---|
ExprRootNode |
copy(CopyState copyState)
See
Node.copy(CopyState) for a description of the copy contract. |
ExprNode |
getChild(int index)
Gets the child at the given index.
|
ExprNode.Kind |
getKind()
Gets this node's kind (corresponding to this node's specific type).
|
ExprNode |
getRoot() |
String |
toSourceString()
Builds a Soy source string that could be the source for this node.
|
static List<ExprNode> |
unwrap(Iterable<ExprRootNode> exprs) |
static List<ExprRootNode> |
wrap(Iterable<? extends ExprNode> exprs) |
addChild, addChild, addChildren, addChildren, appendSourceStringForChildren, clearChildren, 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 ExprRootNode(ExprNode child)
child - The child to add to the new node.public static List<ExprNode> unwrap(Iterable<ExprRootNode> exprs)
public static List<ExprRootNode> wrap(Iterable<? extends ExprNode> exprs)
public ExprNode.Kind getKind()
ExprNodepublic ExprNode getRoot()
public ExprNode getChild(int index)
ParentNodegetChild in interface ParentNode<ExprNode>getChild in class AbstractParentExprNodeindex - The index of the child to get.public String toSourceString()
Nodepublic ExprRootNode copy(CopyState copyState)
ExprNodeNode.copy(CopyState) for a description of the copy contract.