Package de.neuland.jade4j.parser.node
Class AttrsNode
java.lang.Object
de.neuland.jade4j.parser.node.Node
de.neuland.jade4j.parser.node.AttrsNode
- All Implemented Interfaces:
Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected LinkedList<String> protected LinkedList<Attr> protected Nodeprotected booleanprivate static final String[]private boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttributes(String src) private voidaddAttributesToMap(HashMap<String, String> newAttributes, ArrayList<String> classes, ArrayList<Boolean> classEscaping, Attr attribute, JadeModel model, JadeTemplate template) private StringattributeValueToString(Object value) protected LinkedHashMap<String, String> attrs(JadeModel model, JadeTemplate template, LinkedList<Attr> attrs) private StringattrsToString(LinkedHashMap<String, String> attrs, JadeTemplate template) clone()private ObjectevaluateExpression(ExpressionString attribute, JadeModel model, ExpressionHandler expressionHandler) getAttribute(String key) private StringgetInterpolatedAttributeValue(String name, Object attribute, boolean escaped, JadeModel model, JadeTemplate template) booleanbooleanbooleanisSelfClosing(JadeTemplate template) booleanisTerse(JadeTemplate template) booleansetAttribute(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 Details
-
selfClosingTags
-
attributes
-
attributeBlocks
-
attributeNames
-
selfClosing
protected boolean selfClosing -
codeNode
-
textOnly
private boolean textOnly
-
-
Constructor Details
-
AttrsNode
public AttrsNode()
-
-
Method Details
-
setAttribute
-
getAttribute
-
attributeValueToString
-
clone
- Overrides:
clonein classNode- Throws:
CloneNotSupportedException
-
addAttributes
-
setSelfClosing
public void setSelfClosing(boolean selfClosing) -
isSelfClosing
public boolean isSelfClosing() -
setTextOnly
public void setTextOnly(boolean textOnly) -
isTextOnly
public boolean isTextOnly() -
setCodeNode
-
getCodeNode
-
hasCodeNode
public boolean hasCodeNode() -
visitAttributes
-
attrsToString
-
attrs
protected LinkedHashMap<String,String> attrs(JadeModel model, JadeTemplate template, LinkedList<Attr> attrs) -
addAttributesToMap
private void addAttributesToMap(HashMap<String, String> newAttributes, ArrayList<String> classes, ArrayList<Boolean> classEscaping, Attr attribute, JadeModel model, JadeTemplate template) throws ExpressionException- Throws:
ExpressionException
-
evaluateExpression
private Object evaluateExpression(ExpressionString attribute, JadeModel model, ExpressionHandler expressionHandler) throws ExpressionException - Throws:
ExpressionException
-
getInterpolatedAttributeValue
private String getInterpolatedAttributeValue(String name, Object attribute, boolean escaped, JadeModel model, JadeTemplate template) throws JadeCompilerException - Throws:
JadeCompilerException
-
isTerse
-
isSelfClosing
-