Package de.neuland.jade4j.parser.node
Class TagNode
- java.lang.Object
-
- de.neuland.jade4j.parser.node.Node
-
- de.neuland.jade4j.parser.node.AttrsNode
-
- de.neuland.jade4j.parser.node.TagNode
-
- All Implemented Interfaces:
java.lang.Cloneable
public class TagNode extends AttrsNode
-
-
Field Summary
Fields Modifier and Type Field Description private booleanbufferprivate static java.lang.String[]inlineTagsprivate NodetextNode-
Fields inherited from class de.neuland.jade4j.parser.node.AttrsNode
attributeBlocks, attributeNames, attributes, codeNode, selfClosing
-
-
Constructor Summary
Constructors Constructor Description TagNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.StringbufferName(JadeTemplate template, JadeModel model)booleancanInline()private booleaneveryIsInline(java.util.LinkedList<Node> nodes)voidexecute(IndentWriter writer, JadeModel model, JadeTemplate template)NodegetTextNode()booleanhasTextNode()booleanisBuffer()private booleanisEmpty()booleanisInline()private booleanisInline(Node node)voidsetBuffer(boolean buffer)voidsetTextNode(Node textNode)-
Methods inherited from class de.neuland.jade4j.parser.node.AttrsNode
addAttributes, attrs, clone, getAttribute, getCodeNode, hasCodeNode, isSelfClosing, isSelfClosing, isTerse, isTextOnly, setAttribute, setCodeNode, setSelfClosing, setTextOnly, visitAttributes
-
Methods inherited from class de.neuland.jade4j.parser.node.Node
getBlock, getFileName, getLineNumber, getName, getNodes, getValue, hasBlock, hasNodes, pollNode, push, setBlock, setFileName, setLineNumber, setName, setNodes, setValue
-
-
-
-
Field Detail
-
textNode
private Node textNode
-
inlineTags
private static final java.lang.String[] inlineTags
-
buffer
private boolean buffer
-
-
Method Detail
-
setTextNode
public void setTextNode(Node textNode)
-
getTextNode
public Node getTextNode()
-
hasTextNode
public boolean hasTextNode()
-
isInline
public boolean isInline()
-
isInline
private boolean isInline(Node node)
-
everyIsInline
private boolean everyIsInline(java.util.LinkedList<Node> nodes)
-
canInline
public boolean canInline()
-
execute
public void execute(IndentWriter writer, JadeModel model, JadeTemplate template) throws JadeCompilerException
- Specified by:
executein classNode- Throws:
JadeCompilerException
-
isEmpty
private boolean isEmpty()
-
bufferName
private java.lang.String bufferName(JadeTemplate template, JadeModel model)
-
isBuffer
public boolean isBuffer()
-
setBuffer
public void setBuffer(boolean buffer)
-
-