
com.google.sitebricks.rendering.control.XmlDirectiveWidget Maven / Gradle / Ivy
The newest version!
package com.google.sitebricks.rendering.control;
import com.google.sitebricks.Renderable;
import com.google.sitebricks.Respond;
import com.google.sitebricks.compiler.EvaluatorCompiler;
import com.google.sitebricks.compiler.ExpressionCompileException;
import com.google.sitebricks.compiler.Parsing;
import com.google.sitebricks.compiler.Token;
import com.google.sitebricks.rendering.SelfRendering;
import net.jcip.annotations.ThreadSafe;
import java.util.Collections;
import java.util.List;
import java.util.Set;
/**
* For stuff like Doctype decls at the top of a file.
*/
@ThreadSafe
@SelfRendering
class XmlDirectiveWidget implements Renderable {
private final List tokens;
XmlDirectiveWidget(String template, EvaluatorCompiler compiler) throws ExpressionCompileException {
this.tokens = Parsing.tokenize(template, compiler);
}
public void render(Object bound, Respond respond) {
respond.write("");
}
public Set collect(Class clazz) {
return Collections.emptySet();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy