public final class TemplateBasicNode extends TemplateNode
Important: Do not use outside of Soy code (treat as superpackage-private).
TemplateNode.SoyFileHeaderInfoSoyNode.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.StatementNodeMAX_PRIORITYSPACES| Modifier and Type | Method and Description |
|---|---|
TemplateBasicNode |
clone()
Copies this node.
|
SoyNode.Kind |
getKind()
Returns this node's kind (corresponding to this node's specific type).
|
boolean |
isOverride()
Returns whether this template overrides another (always false for syntax version V2).
|
clearSoyDocStrings, createStackTraceElement, getAllParams, getAutoescapeMode, getContentKind, getCssBaseNamespace, getDelPackageName, getInjectedParams, getMaxLocalVariableTableSize, getParams, getParent, getPartialTemplateName, getRequiredCssNamespaces, getSoyDoc, getSoyDocDesc, getSoyFileHeaderInfo, getTemplateName, getTemplateNameForUserMsgs, getVisibility, setMaxLocalVariableTableSize, toSourceStringaddChild, addChild, addChildren, addChildren, appendSourceStringForChildren, appendTreeStringForChildren, clearChildren, getChild, getChildIndex, getChildren, numChildren, removeChild, removeChild, replaceChild, replaceChild, toTreeStringbuildTagStringHelper, buildTagStringHelper, getCommandName, getCommandText, getTagStringgetId, getSourceLocation, setId, setSourceLocation, toStringcouldHaveSyntaxVersionAtLeast, getNearestAncestor, getSyntaxVersionBound, hasAncestor, maybeSetSyntaxVersionBound, setParentequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCommandName, getCommandText, getTagStringgetId, getSourceLocation, setId, setSourceLocationaddChild, addChild, addChildren, addChildren, appendSourceStringForChildren, appendTreeStringForChildren, clearChildren, getChild, getChildIndex, getChildren, numChildren, removeChild, removeChild, replaceChild, replaceChildcouldHaveSyntaxVersionAtLeast, getNearestAncestor, getSyntaxVersionBound, hasAncestor, maybeSetSyntaxVersionBound, setParent, toTreeStringpublic SoyNode.Kind getKind()
SoyNodepublic boolean isOverride()
public TemplateBasicNode 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.