prompto.css.CssCode Maven / Gradle / Ivy
The newest version!
package prompto.css;
import prompto.expression.IExpression;
import prompto.transpiler.Transpiler;
import prompto.utils.CodeWriter;
public class CssCode implements ICssValue {
IExpression expression;
public CssCode(IExpression expression) {
this.expression = expression;
}
@Override
public void toDialect(CodeWriter writer) {
writer.append("{");
expression.toDialect(writer);
writer.append("}");
}
@Override
public String toString() {
return "{" + expression.toString() + "}";
}
@Override
public void toString(StringBuilder sb) {
sb.append("{");
sb.append(expression.toString());
sb.append("}");
}
@Override
public void declare(Transpiler transpiler) {
this.expression.declare(transpiler);
}
@Override
public void transpile(Transpiler transpiler) {
this.expression.transpile(transpiler);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy