public abstract class HtmlTagNode extends AbstractParentSoyNode<SoyNode.StandaloneNode> implements SoyNode.StandaloneNode
TagName.
The first child is guaranteed to be the tag name, any after that are guaranteed to be in attribute context. There is always at least one child.
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| Modifier | Constructor and Description |
|---|---|
protected |
HtmlTagNode(HtmlTagNode orig,
CopyState copyState) |
protected |
HtmlTagNode(int id,
TagName tagName,
SourceLocation sourceLocation) |
| Modifier and Type | Method and Description |
|---|---|
SoyNode.ParentSoyNode<SoyNode.StandaloneNode> |
getParent()
Gets this node's parent.
|
HtmlAttributeNode |
getPhNameNode()
Returns a direct child attribute node for a
phname attribute, or null if there
is no such attribute. |
TagName |
getTagName() |
addChild, addChild, addChildren, addChildren, appendSourceStringForChildren, clearChildren, getChild, getChildIndex, getChildren, numChildren, removeChild, removeChild, replaceChild, replaceChildgetId, getSourceLocation, setId, toStringcouldHaveSyntaxVersionAtLeast, equals, getNearestAncestor, getSyntaxVersionUpperBound, hasAncestor, hashCode, maybeSetSyntaxVersionUpperBound, setParentclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopy, getId, getKind, setIdcouldHaveSyntaxVersionAtLeast, getNearestAncestor, getSourceLocation, getSyntaxVersionUpperBound, hasAncestor, maybeSetSyntaxVersionUpperBound, setParent, toSourceStringprotected HtmlTagNode(int id,
TagName tagName,
SourceLocation sourceLocation)
protected HtmlTagNode(HtmlTagNode orig, CopyState copyState)
public final SoyNode.ParentSoyNode<SoyNode.StandaloneNode> getParent()
NodegetParent in interface NodegetParent in interface SoyNodegetParent in interface SoyNode.StandaloneNodegetParent in class AbstractSoyNodepublic final TagName getTagName()
@Nullable public HtmlAttributeNode getPhNameNode()
phname attribute, or null if there
is no such attribute.
The phname attribute has special handling within msg tags, where it is used
to allow users to specify their own placeholders.