public abstract class AttrsNode extends Node
| Modifier and Type | Field and Description |
|---|---|
protected LinkedList<String> |
attributeBlocks |
protected List<String> |
attributeNames |
protected LinkedList<Attr> |
attributes |
protected Node |
codeNode |
protected boolean |
selfClosing |
| Constructor and Description |
|---|
AttrsNode() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributes(String src) |
protected Map<String,String> |
attrs(PugModel model,
PugTemplate template,
LinkedList<Attr> attrs) |
AttrsNode |
clone() |
String |
getAttribute(String key) |
LinkedList<Attr> |
getAttributes() |
Node |
getCodeNode() |
boolean |
hasCodeNode() |
boolean |
isSelfClosing() |
protected boolean |
isSelfClosingTag() |
boolean |
isTextOnly() |
AttrsNode |
setAttribute(String key,
Object value,
boolean escaped) |
void |
setCodeNode(Node codeNode) |
void |
setSelfClosing(boolean selfClosing) |
void |
setTextOnly(boolean textOnly) |
protected String |
visitAttributes(PugModel model,
PugTemplate template) |
execute, getBlock, getColumn, getFileName, getLineNumber, getName, getNodes, getValue, hasBlock, hasNodes, isTextNode, pollNode, push, setBlock, setColumn, setFileName, setLineNumber, setName, setNodes, setValueprotected LinkedList<Attr> attributes
protected LinkedList<String> attributeBlocks
protected boolean selfClosing
protected Node codeNode
public AttrsNode clone() throws CloneNotSupportedException
clone in class NodeCloneNotSupportedExceptionpublic void addAttributes(String src)
public void setSelfClosing(boolean selfClosing)
public boolean isSelfClosing()
public void setTextOnly(boolean textOnly)
public boolean isTextOnly()
public void setCodeNode(Node codeNode)
public Node getCodeNode()
public boolean hasCodeNode()
protected String visitAttributes(PugModel model, PugTemplate template)
protected Map<String,String> attrs(PugModel model, PugTemplate template, LinkedList<Attr> attrs)
protected boolean isSelfClosingTag()
public LinkedList<Attr> getAttributes()
Copyright © 2024. All rights reserved.