Package de.neuland.pug4j.parser.node
Class AttrsNode
- java.lang.Object
-
- de.neuland.pug4j.parser.node.Node
-
- de.neuland.pug4j.parser.node.AttrsNode
-
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
CallNode,FilterNode,IncludeFilterNode,TagNode
public abstract class AttrsNode extends Node
-
-
Field Summary
Fields Modifier and Type Field Description protected LinkedList<String>attributeBlocksprotected List<String>attributeNamesprotected LinkedList<Attr>attributesprotected NodecodeNodeprotected booleanselfClosing
-
Constructor Summary
Constructors Constructor Description AttrsNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttributes(String src)protected LinkedHashMap<String,String>attrs(PugModel model, PugTemplate template, LinkedList<Attr> attrs)AttrsNodeclone()StringgetAttribute(String key)LinkedList<Attr>getAttributes()NodegetCodeNode()booleanhasCodeNode()booleanisSelfClosing()protected booleanisSelfClosingTag()booleanisTextOnly()AttrsNodesetAttribute(String key, Object value, boolean escaped)voidsetCodeNode(Node codeNode)voidsetSelfClosing(boolean selfClosing)voidsetTextOnly(boolean textOnly)protected StringvisitAttributes(PugModel model, PugTemplate template)-
Methods inherited from class de.neuland.pug4j.parser.node.Node
execute, getBlock, getColumn, getFileName, getLineNumber, getName, getNodes, getValue, hasBlock, hasNodes, isTextNode, pollNode, push, setBlock, setColumn, setFileName, setLineNumber, setName, setNodes, setValue
-
-
-
-
Field Detail
-
attributes
protected LinkedList<Attr> attributes
-
attributeBlocks
protected LinkedList<String> attributeBlocks
-
selfClosing
protected boolean selfClosing
-
codeNode
protected Node codeNode
-
-
Method Detail
-
clone
public AttrsNode clone() throws CloneNotSupportedException
- Overrides:
clonein classNode- Throws:
CloneNotSupportedException
-
addAttributes
public void addAttributes(String src)
-
setSelfClosing
public void setSelfClosing(boolean selfClosing)
-
isSelfClosing
public boolean isSelfClosing()
-
setTextOnly
public void setTextOnly(boolean textOnly)
-
isTextOnly
public boolean isTextOnly()
-
setCodeNode
public void setCodeNode(Node codeNode)
-
getCodeNode
public Node getCodeNode()
-
hasCodeNode
public boolean hasCodeNode()
-
visitAttributes
protected String visitAttributes(PugModel model, PugTemplate template)
-
attrs
protected LinkedHashMap<String,String> attrs(PugModel model, PugTemplate template, LinkedList<Attr> attrs)
-
isSelfClosingTag
protected boolean isSelfClosingTag()
-
getAttributes
public LinkedList<Attr> getAttributes()
-
-