diff options
Diffstat (limited to 'theme-compiler/src/com/vaadin/sass/tree/SimpleNode.java')
-rw-r--r-- | theme-compiler/src/com/vaadin/sass/tree/SimpleNode.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/theme-compiler/src/com/vaadin/sass/tree/SimpleNode.java b/theme-compiler/src/com/vaadin/sass/tree/SimpleNode.java new file mode 100644 index 0000000000..39a5d17b48 --- /dev/null +++ b/theme-compiler/src/com/vaadin/sass/tree/SimpleNode.java @@ -0,0 +1,24 @@ +package com.vaadin.sass.tree; + +/** + * A simple BlockNode where input text equals output. <b>Note : </b> ignores any + * possible children so only use it when you are sure no child nodes will be + * applied. + * + * @author Sebastian Nyholm @ Vaadin Ltd + * + */ +public class SimpleNode extends Node { + + private final String text; + + public SimpleNode(String text) { + this.text = text; + + } + + @Override + public String toString() { + return text; + } +} |