public final class XidNode extends AbstractCommandNode implements SoyNode.StandaloneNode, SoyNode.StatementNode
Important: Do not use outside of Soy code (treat as superpackage-private).
Modifier and Type | Class and Description |
---|---|
static class |
XidNode.Builder
Builder for
XidNode . |
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.StatementNode
SPACES
Modifier and Type | Method and Description |
---|---|
XidNode |
clone()
Copies this node.
|
SoyNode.Kind |
getKind()
Returns this node's kind (corresponding to this node's specific type).
|
SoyNode.BlockNode |
getParent()
Gets this node's parent.
|
String |
getRenamedText(SoyIdRenamingMap idRenamingMap) |
String |
getText()
Returns the text of the identifier.
|
buildTagStringHelper, buildTagStringHelper, getCommandName, getCommandText, getTagString, toSourceString
getId, getSourceLocation, setId, setSourceLocation, toString
couldHaveSyntaxVersionAtLeast, getNearestAncestor, getSyntaxVersionBound, hasAncestor, maybeSetSyntaxVersionBound, setParent, toTreeString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getId, getSourceLocation, setId, setSourceLocation
couldHaveSyntaxVersionAtLeast, getNearestAncestor, getSyntaxVersionBound, hasAncestor, maybeSetSyntaxVersionBound, setParent, toSourceString, toTreeString
public XidNode(int id, String commandText)
id
- The id for this node.commandText
- The command text.public SoyNode.Kind getKind()
SoyNode
public String getText()
public String getRenamedText(SoyIdRenamingMap idRenamingMap)
public SoyNode.BlockNode getParent()
Node
getParent
in interface Node
getParent
in interface SoyNode
getParent
in interface SoyNode.StandaloneNode
getParent
in class AbstractSoyNode
public XidNode clone()
Node
All 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.