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.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 |
|---|---|
HtmlAttributeNode |
getDirectAttributeNamed(String attrName)
Returns an attribute with the given static name if it is a direct child.
|
SoyNode.ParentSoyNode<SoyNode.StandaloneNode> |
getParent()
Gets this node's parent.
|
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 getDirectAttributeNamed(String attrName)