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 boolean
buffer
private static java.lang.String[]
inlineTags
private Node
textNode
-
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.String
bufferName(JadeTemplate template, JadeModel model)
boolean
canInline()
private boolean
everyIsInline(java.util.LinkedList<Node> nodes)
void
execute(IndentWriter writer, JadeModel model, JadeTemplate template)
Node
getTextNode()
boolean
hasTextNode()
boolean
isBuffer()
private boolean
isEmpty()
boolean
isInline()
private boolean
isInline(Node node)
void
setBuffer(boolean buffer)
void
setTextNode(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:
execute
in 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)
-
-