Package de.neuland.jade4j.parser.node
Class AttrsNode
- java.lang.Object
-
- de.neuland.jade4j.parser.node.Node
-
- de.neuland.jade4j.parser.node.AttrsNode
-
-
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(JadeModel model, JadeTemplate template, LinkedList<Attr> attrs)AttrsNodeclone()StringgetAttribute(String key)NodegetCodeNode()booleanhasCodeNode()booleanisSelfClosing()booleanisSelfClosing(JadeTemplate template)booleanisTerse(JadeTemplate template)booleanisTextOnly()AttrsNodesetAttribute(String key, Object value, boolean escaped)voidsetCodeNode(Node codeNode)voidsetSelfClosing(boolean selfClosing)voidsetTextOnly(boolean textOnly)protected StringvisitAttributes(JadeModel model, JadeTemplate template)-
Methods inherited from class de.neuland.jade4j.parser.node.Node
execute, getBlock, getFileName, getLineNumber, getName, getNodes, getValue, hasBlock, hasNodes, pollNode, push, setBlock, 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(JadeModel model, JadeTemplate template)
-
attrs
protected LinkedHashMap<String,String> attrs(JadeModel model, JadeTemplate template, LinkedList<Attr> attrs)
-
isTerse
public boolean isTerse(JadeTemplate template)
-
isSelfClosing
public boolean isSelfClosing(JadeTemplate template)
-
-